Add P1-T10 and P4-T2: document and fix Xcode first-approval timing race in broker mode#138
Merged
Conversation
…ce in broker mode
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds two new open tasks to
SPECS/Workplan.mdidentified during live multi-client broker+Web UI testing (Zed + Claude Code):P1-T10 — Document Xcode first-approval timing race in Troubleshooting & Known Issues
When broker mode is used for the first time, Xcode shows a per-process approval dialog. MCP clients that connect before approval is granted receive an empty
tools/listand cache it permanently, showing 0 tools with a green connected indicator and no actionable error. Documents root cause, correct first-time setup sequence, and recovery steps.P4-T2 — Cache
tools/listin broker and gate client responses on upstream readinessFix the underlying race by: (1) blocking client requests until the upstream completes a successful
initializeround-trip, retrying with backoff if upstream exits early; (2) caching thetools/listresponse after upstream init so all clients receive tools instantly without per-client upstream round-trips. Eliminates the Xcode approval timing race without requiring any user intervention.Type of Change
Quality Gates
make test- All tests pass with ≥90% coveragemake lint- No linting errorsmake format- Code is properly formattedmake typecheck- Type checking passesmake doccheck- Documentation is synced with DocC (if docs changed)Documentation Sync
Testing
Checklist