Skip to content

Fix MCP request lifecycle races - #2684

Merged
Widthdom merged 14 commits into
mainfrom
codex/fix-issue1736-1737-1738-1742
May 25, 2026
Merged

Fix MCP request lifecycle races#2684
Widthdom merged 14 commits into
mainfrom
codex/fix-issue1736-1737-1738-1742

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Make MCP running state visible across threads and serialize stdout frame writes.
  • Add bounded MCP request timeouts, including batch items, while isolating timed transport requests from the shared DB connection.
  • Drain stdio EOF in-flight work with bounded post-cancel settling and add a bilingual changelog fragment.

Validation

  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~McpServerTests"
  • dotnet test CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • codex adversarial review: No blocking/actionable issues found.

Notes

Fixes #1736
Fixes #1737
Fixes #1738
Fixes #1742

@Widthdom
Widthdom merged commit ddbe578 into main May 25, 2026
10 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue1736-1737-1738-1742 branch May 25, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment