mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
- HttpTransport: add handleNotification() for fire-and-forget JSON-RPC messages (no response expected). Without this, notifications/initialized hung forever waiting for a response that never came. - McpRouting: detect JSON-RPC notifications (no "id" field) and return 202 Accepted immediately instead of dispatching through handleRequest. Also add 5s timeout on receiveText() for /register to prevent hangs. - TlsInputStream: same multi-record fix as TlsAcceptor handshake — check netIn.position() before reading from stream. HTTP headers and body arriving in the same mux DATA frame caused the body read to block. - TunnelClientImpl: catch ClosedSendChannelException in onBinaryMessage to prevent crash when WebSocket frames arrive after disconnect. - TunnelForegroundService: handle double-wake by disconnecting stale connection before reconnecting. - Increase idle timeout to 30 minutes for testing (was 5 minutes, which caused the connection to drop right when Claude tried tool calls). Verified: Claude connected via OAuth, called echo and device_info tools successfully through the full relay → device → MCP pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||