Repository navigation
fix(autoresearch): complete RP2040 RPC watchdog handshake - #3641
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe RPC client now supports returning on asynchronous acknowledgements. The deliberate-hang example emits and flushes its acknowledgement before resetting, the watchdog soak uses acknowledgement-only completion, and RP2040 environments receive strict VCOM port fingerprints with corresponding tests. ChangesWatchdog recovery and RP2040 port detection
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant RpcClient
participant WatchdogSoak
participant AutoResearchRemoteControl
participant AutoResearch
WatchdogSoak->>RpcClient: send deliberateHang with return_on_ack=True
RpcClient->>AutoResearchRemoteControl: invoke asynchronous deliberateHang
AutoResearchRemoteControl->>AutoResearch: execute handler
AutoResearch->>AutoResearch: flush RPC acknowledgement
AutoResearch-->>RpcClient: return JSON-RPC ACK
RpcClient-->>WatchdogSoak: return successful RpcResponse
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Completes the RP2040 AutoResearch RPC watchdog handshake by returning on the async acknowledgement before the intentional hang, while preserving strict response correlation. Includes the Pico runtime VID/PID mapping and no-port stock BOOTSEL flow already on this branch. Validation: uv run --no-sync pytest ci/tests/test_autoresearch_phases.py -q (91 passed).
Summary by CodeRabbit
New Features
Bug Fixes