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.
This commit is contained in:
Brennan Benson
2026-07-14 23:13:49 -07:00
parent 919a9f7991
commit 67ca25e406
@@ -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<keyof WorkspaceSessionState, FieldOwnership>
// Why: a new WorkspaceSessionState field must be classified above or the split