Skip to content

feat: add flag to disable workspace agent context sync - #28522

Merged
sreya merged 1 commit into
mainfrom
disable-agent-ctx
Aug 25, 2026
Merged

feat: add flag to disable workspace agent context sync#28522
sreya merged 1 commit into
mainfrom
disable-agent-ctx

Conversation

@sreya

@sreya sreya commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Adds CODER_DISABLE_WORKSPACE_AGENT_CONTEXT_SYNC (--disable-workspace-agent-context-sync). When set, ContextAPI.PushContextState rejects agent pushes with a dRPC Unimplemented code. The agent's DRPCPusher already translates that code into ErrPushUnimplemented, which cleanly terminates its RunPush loop for the life of the connection, exactly as if coderd predated Agent API v2.10. This gives large deployments a kill switch for the context sync database write load without agent rebuilds or workspace restarts.

The local agent context manager keeps running so agentsocket and MCP consumers are unaffected; only server-side persistence stops.

Adds CODER_DISABLE_WORKSPACE_AGENT_CONTEXT_SYNC (--disable-workspace-agent-context-sync).
When set, ContextAPI.PushContextState rejects agent pushes with a dRPC
Unimplemented code. The agent's DRPCPusher already translates that code
into ErrPushUnimplemented, which cleanly terminates its RunPush loop for
the life of the connection, exactly as if coderd predated Agent API
v2.10. This gives large deployments a kill switch for the context sync
database write load without agent rebuilds or workspace restarts.

The local agent context manager keeps running so agentsocket and MCP
consumers are unaffected; only server-side persistence stops.
@sreya
sreya requested a review from kylecarbs August 25, 2026 00:23
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

@sreya
sreya merged commit 26de614 into main Aug 25, 2026
73 of 74 checks passed
@sreya
sreya deleted the disable-agent-ctx branch August 25, 2026 00:58
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants