@@ -408,6 +408,9 @@ export class Config {
408408 title : workspace . title ,
409409 projectName,
410410 projectPath,
411+ parentWorkspaceId : workspace . parentWorkspaceId ,
412+ agentType : workspace . agentType ,
413+ taskStatus : workspace . taskStatus ,
411414 // GUARANTEE: All workspaces must have createdAt (assign now if missing)
412415 createdAt : workspace . createdAt ?? new Date ( ) . toISOString ( ) ,
413416 // GUARANTEE: All workspaces must have runtimeConfig (apply default if missing)
@@ -454,6 +457,9 @@ export class Config {
454457
455458 // Preserve any config-only fields that may not exist in legacy metadata.json
456459 metadata . aiSettings ??= workspace . aiSettings ;
460+ metadata . parentWorkspaceId ??= workspace . parentWorkspaceId ;
461+ metadata . agentType ??= workspace . agentType ;
462+ metadata . taskStatus ??= workspace . taskStatus ;
457463
458464 // Migrate to config for next load
459465 workspace . id = metadata . id ;
@@ -474,6 +480,9 @@ export class Config {
474480 name : workspaceBasename ,
475481 projectName,
476482 projectPath,
483+ parentWorkspaceId : workspace . parentWorkspaceId ,
484+ agentType : workspace . agentType ,
485+ taskStatus : workspace . taskStatus ,
477486 // GUARANTEE: All workspaces must have createdAt
478487 createdAt : new Date ( ) . toISOString ( ) ,
479488 // GUARANTEE: All workspaces must have runtimeConfig
@@ -499,6 +508,9 @@ export class Config {
499508 name : workspaceBasename ,
500509 projectName,
501510 projectPath,
511+ parentWorkspaceId : workspace . parentWorkspaceId ,
512+ agentType : workspace . agentType ,
513+ taskStatus : workspace . taskStatus ,
502514 // GUARANTEE: All workspaces must have createdAt (even in error cases)
503515 createdAt : new Date ( ) . toISOString ( ) ,
504516 // GUARANTEE: All workspaces must have runtimeConfig (even in error cases)
0 commit comments