Skip to content

Fix streaming and MCP reconnect races#19

Merged
kylepelham merged 1 commit into
masterfrom
fix-streaming-races
Jul 25, 2026
Merged

Fix streaming and MCP reconnect races#19
kylepelham merged 1 commit into
masterfrom
fix-streaming-races

Conversation

@kylepelham

Copy link
Copy Markdown
Owner

Summary

  • keep startup from creating a second global SSE event pump and duplicating streamed deltas
  • reject stale MCP connection attempts before they can replace the active client, status, or tool cache
  • add deterministic regression coverage for both lifecycle races

Validation

  • bun run test (117 passed)
  • bun run typecheck
  • bun run test:engine
  • cargo test --manifest-path src-tauri/Cargo.toml (17 passed)
  • bun run build
  • rebuilt the patched engine and produced a native NSIS package

@kylepelham
kylepelham merged commit 62cdad3 into master Jul 25, 2026
1 check passed
@kylepelham
kylepelham deleted the fix-streaming-races branch July 25, 2026 23:51
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