Skip to content

fix(serve): race on tool-output guard globals - #312

Merged
jkyberneees merged 1 commit into
mainfrom
fix/tool-output-guard-race
Oct 9, 2026
Merged

jkyberneees merged 1 commit into
mainfrom
fix/tool-output-guard-race

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Fixes the data race failing the test job on main (TestServe_Cancel_CannotCrossSessions): SetToolOutputGuard wrote the package globals per WS connection while another session's loop read them. Adds an RWMutex + snapshot reader and a concurrent regression test.

🤖 Generated with Claude Code

SetToolOutputGuard runs per WebSocket connection while other sessions scan
tool output; the unsynchronized globals raced under -race in CI.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
odek 5c036e3 Commit Preview URL

Branch Preview URL
Oct 09 2026, 11:18 AM

@jkyberneees
jkyberneees merged commit b6b8e2b into main Oct 9, 2026
10 checks passed
@jkyberneees
jkyberneees deleted the fix/tool-output-guard-race branch October 9, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant