feat: add flag to disable workspace agent context sync - #28522
Merged
Conversation
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.
Contributor
Docs previewCheck 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. |
kylecarbs
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.