Repository navigation
fix(serve): say what startup waits for and which MCP servers failed - #531
Merged
Merged
Conversation
serve connects the configured MCP servers before it accepts requests (up to 60 s for one that never answers) and printed nothing meanwhile; a server that did not connect was dropped silently. It now prints the wait and one warning per failed server. Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
From the same source audit as #527–#530.
whycodes serveconnects the configured MCP servers before it binds, so one server that never answers delays every endpoint, health included, by up to 60 s. It printed nothing during that wait, and a server that failed to connect was dropped without a word.Not changed
serve still waits for the servers before accepting requests. Accepting first means installing the tools into an agent that is already shared with running requests, and replacing that agent would drop state it holds (the steering inbox, activated tools). The wait is bounded at 60 s per server since the start timeout was added; this PR only makes it visible.
Verification
Unit test for both message helpers; clippy and the budget scripts pass. No line in a 100%-floor crate changed (one constant in
whycodes-agentbecamepub).🤖 Generated with Claude Code