fix: add flag to disable workspace agent context sync (cherry-pick #28522) by sreya · Pull Request #28524 · coder/coder · GitHub
Skip to content

fix: add flag to disable workspace agent context sync (cherry-pick #28522) - #28524

Merged
mtojek merged 1 commit into
release/2.36from
backport-28522-2.36
Aug 25, 2026
Merged

fix: add flag to disable workspace agent context sync (cherry-pick #28522)#28524
mtojek merged 1 commit into
release/2.36from
backport-28522-2.36

Conversation

@sreya

@sreya sreya commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Clean cherry-pick of #28522 (26de6140fb) onto release/2.36.

Adds CODER_DISABLE_WORKSPACE_AGENT_CONTEXT_SYNC / --disable-workspace-agent-context-sync. When set, PushContextState rejects agent context pushes with a dRPC Unimplemented code before any validation or database work; deployed agents translate that into ErrPushUnimplemented and stop their push loop for the life of the connection. This gives large deployments a server-only kill switch for context sync database write load, with no agent updates or workspace restarts required.

Validated on this branch: go build, TestPushContextState (unit), TestWorkspaceAgentPushContextState* (end-to-end over real dRPC), CLI and enterprise golden-file tests.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@sreya sreya changed the title feat: add flag to disable workspace agent context sync (cherry-pick #28522) fix: add flag to disable workspace agent context sync (cherry-pick #28522) Aug 25, 2026
@sreya
sreya requested a review from mtojek August 25, 2026 01:10
@sreya
sreya marked this pull request as ready for review August 25, 2026 01:10
@sreya
sreya requested a review from a team as a code owner August 25, 2026 01:10
@mtojek
mtojek merged commit f1f331b into release/2.36 Aug 25, 2026
62 of 63 checks passed
@mtojek
mtojek deleted the backport-28522-2.36 branch August 25, 2026 06:34
@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