-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix/fix: resolve MCP tools race condition causing 'completion 无法解析' error #5534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0de7ae8
fix: resolve MCP tools race condition causing 'completion 无法解析' error
idiotsj ec9f740
perf: add timeout and better error handling for MCP initialization
idiotsj 4924739
refactor: simplify MCP init orchestration and improve log security
idiotsj 2cfe428
fix: prevent initialized MCP clients from being cleaned up on timeout
idiotsj 38e99cf
fix: restore task cancellation on timeout per review feedback
idiotsj 5fab8aa
fix: separate init signal from client lifetime in MCP task wrapper
idiotsj b810dfb
security: redact sensitive MCP config from debug logs
idiotsj e2da013
refactor: use McpClientInfo dataclass and MCP_INIT_TIMEOUT constant
idiotsj df1e9f3
fix: handle CancelledError and clean up wait_tasks on timeout
idiotsj fdcbdd4
fix: align enable_mcp_server with new wrapper API and fix security/co…
idiotsj a16d05c
refactor: register mcp_client_event only after successful init in ena…
idiotsj a058bef
fix: harden MCP init state handling and timeout parsing
zouyonghe 7b40501
fix: improve MCP timeout and post-init error observability
zouyonghe 072a75d
refactor: simplify MCP init lifecycle orchestration
zouyonghe 55a64d6
refactor: simplify MCP init flow and cap timeout values
zouyonghe 7f39a0a
fix: refine mcp timeout handling and lifecycle task tracking
zouyonghe 807fb4a
fix: harden mcp shutdown and timeout source logging
zouyonghe 88274d9
refactor: simplify mcp runtime registry and timeout flow
zouyonghe a8e0b9d
fix: keep mcp init summary return contract
zouyonghe 09e6174
refactor: streamline mcp lifecycle and init errors
zouyonghe 6902a99
refactor: unify mcp lifecycle wait handling
zouyonghe bcab236
refactor: simplify mcp runtime ownership and timeout resolution
zouyonghe 9524878
fix: harden mcp shutdown waiting and startup signaling
zouyonghe 9221f3b
refactor: streamline mcp lifecycle and shutdown errors
idiotsj 24b8379
refactor: harden mcp runtime access and shutdown
idiotsj e69ff0c
fix: ensure mcp client cleanup and clarify views
idiotsj 146c743
refactor: cache mcp client view and guard startup
idiotsj 424aa5b
refactor: simplify mcp init cleanup and runtime lock
idiotsj ef8e254
refactor: reduce mcp runtime duplication
idiotsj 1e93ce4
refactor: reuse mcp cleanup and client view
idiotsj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.