From 67ca25e406cf59a1e3b520bca2c1bc4f45ea8a44 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Tue, 14 Jul 2026 23:13:49 -0700 Subject: [PATCH] Classify agentSessionCaptureVersion in the host-split ownership table (#5356) The new WorkspaceSessionState field must be classified in the exhaustive FIELD_OWNERSHIP table or the compile-time guard (and CI typecheck) fails. It is a session-level capability stamp, not worktree/tab keyed, so it rides the local blob; main re-stamps each host session on write. --- src/renderer/src/lib/workspace-session-host-split.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/lib/workspace-session-host-split.ts b/src/renderer/src/lib/workspace-session-host-split.ts index 2be516f48cc..0df194c1548 100644 --- a/src/renderer/src/lib/workspace-session-host-split.ts +++ b/src/renderer/src/lib/workspace-session-host-split.ts @@ -69,7 +69,10 @@ const FIELD_OWNERSHIP = { remoteSessionIdsByTabId: 'tabKeyed', browserPagesByWorkspace: 'browserWorkspaceKeyed', markdownFrontmatterVisible: 'fileKeyed', - sleepingAgentSessionsByPaneKey: 'sleepingAgentKeyed' + sleepingAgentSessionsByPaneKey: 'sleepingAgentKeyed', + // Session-level capability stamp — not worktree/tab keyed. Stays in the local + // blob; main re-stamps each host session on write (#5356). + agentSessionCaptureVersion: 'global' } as const satisfies Record // Why: a new WorkspaceSessionState field must be classified above or the split