From 7e4b54d701bc145af7592b59d1a303e9f9655242 Mon Sep 17 00:00:00 2001 From: Tim Olson Date: Mon, 20 Apr 2026 16:16:32 -0400 Subject: [PATCH] top-level agent workspace update fix --- gateway/src/harness/agent-harness.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gateway/src/harness/agent-harness.ts b/gateway/src/harness/agent-harness.ts index 1163b7b8..af6bf6b9 100644 --- a/gateway/src/harness/agent-harness.ts +++ b/gateway/src/harness/agent-harness.ts @@ -902,7 +902,13 @@ export class AgentHarness { 'main', this.mcpClient, 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