Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 34e5857

Browse files
committed
Complete IPC reconnection system with comprehensive error handling
- Resolve async cycle issues with boxed future hack for response_reader_task - Enable reader task 'parting gift' reconnection for immediate recovery - Simplify clear_connection_and_reconnect to return () with internal error handling - Document write failure race condition edge case with rationale for acceptance - Add comprehensive comments explaining concurrency model and recovery mechanisms Architecture now provides multiple recovery points: 1. Reader task parting gift (immediate background reconnection) 2. Every MCP operation calls ensure_connection() (safety net) 3. Exponential backoff handles extension restart timing Status: Complete reconnection system ready for integration testing
1 parent 45eed5e commit 34e5857

File tree

2 files changed

+214
-147
lines changed

2 files changed

+214
-147
lines changed

server/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ schemars = { workspace = true }
2828
# Async runtime
2929
tokio = { workspace = true }
3030

31+
# Async utilities
32+
futures = "0.3"
33+
3134
# UUID generation for IPC message tracking
3235
uuid = { workspace = true }
3336

0 commit comments

Comments
 (0)