Repository navigation
feat(rust): add shared gateway client and node host - #116050
Conversation
|
Codex review: blocked before merge. Reviewed September 16, 2026, 1:41 PM ET / 17:41 UTC (Revision 38). ClawSweeper reviewWhat this changesExtracts the Linux desktop’s Gateway transport into a shared Rust library and adds an unpublished node runtime and foreground host. Merge readiness⛔ Blocked before merge - 2 items remain This remains useful, distinct work with no blocking correctness finding. Prior fixes remain intact; the unresolved question is acceptance of the bounded Rust incubation scope. Priority: P2 Review scores
Verification
How this fits togetherThe shared client carries requests and events between native applications and the Gateway. The desktop retains profile and credential ownership, while the node runtime dispatches incoming commands to bounded native handlers. flowchart LR
A[Desktop profiles and credentials] --> B[Shared Rust client]
C[Node identity and command registration] --> B
B <--> D[OpenClaw Gateway]
D --> E[Invocation and cancellation events]
E --> F[Node runtime authority checks]
F --> G[Native handlers and results]
G --> B
Decision needed
Why: The implementation and bounded proof are coherent, but repository placement and ownership acceptance remain explicitly proposed in the linked RFC. Before merge
Agent review detailsSecurityNone. PR surfaceTests +1593, Other +7249. Total +8842 across 19 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one shared Rust transport with application-owned credentials and authority, and limit initial node-runtime adoption to explicitly accepted unpublished incubation. Do we have a high-confidence way to reproduce the issue? Not applicable: this proposes a reusable native runtime rather than reporting a current-main defect; supplied boundary execution covers its principal dispatch and cancellation behavior. Is this the best way to solve the issue? Yes for the bounded technical approach: the desktop consumes the extracted transport while retaining application policy, and publication remains disabled. Monorepo adoption still requires acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3343ccd2a3f9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (37 earlier review cycles; latest 8 shown)
|
ea3c03e to
02c96a1
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
16758e9 to
dd967ff
Compare
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Adds the unpublished shared Gateway client and bounded node-host foundation, with Linux Tauri as the first consumer. Exact-head CI and ClawSweeper review are clean.
Related: #115975
Summary
Re-derives the shared Rust Gateway client and bounded node-host foundation from current OpenClaw
mainrather than replaying the August Tauri extraction.The Linux desktop remains the first consumer, but only TLS, WebSocket, challenge, request correlation, event delivery, heartbeat activity, and transport lifecycle move into
openclaw-gateway-client. Current Tauri ownership of saved/remote Gateway profiles, credential references, route generations, switching/recovery, desktop and sleep leases, Quick Chat recovery, Canvas/accent state, and UI notices is preserved.The exact generic client work is also reviewed in giodl73-repo/openclaw-rust-node#14. OpenClaw remains authoritative for Gateway schemas and behavior.
Position in the series
What this adds
openclaw-gateway-clientopenclaw-node-hostparamsJSONinvocation compatibility for both negotiated protocol versions; andLinux Tauri migration
Boundaries
This does not publish crates, stabilize a public Rust API, replace Tauri or
src/node-host, select product IPC, add Windows integration, or implement worker/session hosting, workspace transfer, host statistics,system.run, PTY, MCP, skills, or plugins.Validation
07c4c67a87e4c1872899da23646debada66cd48a;-D warningspassed;cargo test --locked --all-targetspassed after retaining the rebasedrustlslock edge;git diff --checkpassed; andAuthority proof
The public
CommandRuntime::runpath runs over a real WebSocket session: an allowed invocation completes and records exactly one native effect, then a wire-deliverednode.invoke.cancelreaches the handler cancellation token and suppresses any second native effect. Pre-cancelled, buffered retired-session, and duplex-overflow paths reject before native handler construction.