Skip to content

fix(coderd/x/chatd): avoid request recorder race - #27525

Merged
hugodutka merged 1 commit into
mainfrom
codex/fix-chatd-recorder-race
Jul 27, 2026
Merged

fix(coderd/x/chatd): avoid request recorder race#27525
hugodutka merged 1 commit into
mainfrom
codex/fix-chatd-recorder-race

Conversation

@hugodutka

Copy link
Copy Markdown
Contributor

TestActiveServer_BasicAssistantGenerationAndPromptPreparation could race by reassigning a request recorder captured by concurrent callbacks. Keep the recorder immutable across both scenarios.

Closes coder/internal#1626

@hugodutka
hugodutka marked this pull request as ready for review July 27, 2026 11:56
@hugodutka
hugodutka merged commit b67e1b2 into main Jul 27, 2026
53 of 56 checks passed
@hugodutka
hugodutka deleted the codex/fix-chatd-recorder-race branch July 27, 2026 12:16
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 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.

flake: Data race in coderd/x/chatd - TestActiveServer_BasicAssistantGenerationAndPromptPreparation

2 participants