codex
codex copied to clipboard
fix: improve MCP server initialization error handling #3196 #2346 #2555
• I have signed the CLA by commenting the required sentence and triggered recheck. • Local checks are all green (fmt / clippy / test). • Could you please approve the pending GitHub Actions workflows (first-time contributor), and when convenient, help with one approving review so I can proceed? Thanks!
Summary
- Catch and log task panics during server initialization instead of propagating JoinError
- Handle tool listing failures gracefully, allowing partial server initialization
- Improve error resilience on macOS where init timeouts are more common
Test plan
- [x] Test MCP server initialization with timeout scenarios
- [x] Verify graceful handling of tool listing failures
- [x] Confirm improved error messages and logging
- [x] Test on macOS
Fix issue #3196 #2346 #2555
fix before:
fix improved:
All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.
I have read the CLA Document and I hereby sign the CLA