top-level agent workspace update fix

This commit is contained in:
2026-04-20 16:16:32 -04:00
parent 9736a3b44e
commit 7e4b54d701

View File

@@ -902,7 +902,13 @@ export class AgentHarness {
'main', 'main',
this.mcpClient, this.mcpClient,
this.availableMCPTools, this.availableMCPTools,
this.workspaceManager this.workspaceManager,
undefined, // no image callback
(storeName, newState) => {
this.workspaceManager?.setState(storeName, newState).catch((err) =>
this.config.logger.error({ err, storeName }, 'Failed to sync workspace after main agent mutation')
);
}
); );
// Build shared subagent context // Build shared subagent context