@@ -371,6 +371,9 @@ export class Config {
371371 title : workspace . title ,
372372 projectName,
373373 projectPath,
374+ parentWorkspaceId : workspace . parentWorkspaceId ,
375+ agentType : workspace . agentType ,
376+ taskStatus : workspace . taskStatus ,
374377 // GUARANTEE: All workspaces must have createdAt (assign now if missing)
375378 createdAt : workspace . createdAt ?? new Date ( ) . toISOString ( ) ,
376379 // GUARANTEE: All workspaces must have runtimeConfig (apply default if missing)
@@ -417,6 +420,9 @@ export class Config {
417420
418421 // Preserve any config-only fields that may not exist in legacy metadata.json
419422 metadata . aiSettings ??= workspace . aiSettings ;
423+ metadata . parentWorkspaceId ??= workspace . parentWorkspaceId ;
424+ metadata . agentType ??= workspace . agentType ;
425+ metadata . taskStatus ??= workspace . taskStatus ;
420426
421427 // Migrate to config for next load
422428 workspace . id = metadata . id ;
@@ -437,6 +443,9 @@ export class Config {
437443 name : workspaceBasename ,
438444 projectName,
439445 projectPath,
446+ parentWorkspaceId : workspace . parentWorkspaceId ,
447+ agentType : workspace . agentType ,
448+ taskStatus : workspace . taskStatus ,
440449 // GUARANTEE: All workspaces must have createdAt
441450 createdAt : new Date ( ) . toISOString ( ) ,
442451 // GUARANTEE: All workspaces must have runtimeConfig
@@ -462,6 +471,9 @@ export class Config {
462471 name : workspaceBasename ,
463472 projectName,
464473 projectPath,
474+ parentWorkspaceId : workspace . parentWorkspaceId ,
475+ agentType : workspace . agentType ,
476+ taskStatus : workspace . taskStatus ,
465477 // GUARANTEE: All workspaces must have createdAt (even in error cases)
466478 createdAt : new Date ( ) . toISOString ( ) ,
467479 // GUARANTEE: All workspaces must have runtimeConfig (even in error cases)
0 commit comments