Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
The Gateway acknowledges an unsupported node.event request with only {ok:true}, which makes the request look handled even though no event owner accepted it.
Steps to reproduce
- Start an isolated development Gateway from current
mainon a free port. - Connect and pair a node WebSocket client.
- Send
node.eventwith an unknown event name such astest.unsupported. - Observe the RPC payload
{ok:true}.
Expected behavior
The existing NodeEventResult contract should report an intentional non-outcome: {ok:true,event:"test.unsupported",handled:false,reason:"unsupported_event"}.
Actual behavior
The node-event dispatcher returns undefined for an unknown event. The RPC adapter converts that into {ok:true}, omitting the event name, handled state, and reason.
OpenClaw version
Current main at 9386ac096632509203dc94086d86d7b3de8bc30d.
Operating system
macOS 26; reproduced with an isolated Gateway and real WebSocket client.
Install method
Source checkout.
Model
N/A (Gateway control-plane RPC; no model involved).
Provider / routing chain
N/A (paired node WebSocket directly to the Gateway).
Additional provider/model setup details
N/A.
Logs
AssertionError: expected { ok: true } to deeply equal {
ok: true,
event: "test.unsupported",
handled: false,
reason: "unsupported_event"
}Screenshots, recordings, and evidence
The regression is deterministic through the paired-node Gateway integration suite. The pre-fix run received exactly {ok:true}; the repaired owner and RPC suites pass 85/85 tests.
Impact and severity
Affected: node clients using the generic node.event RPC.
Severity: Low, but misleading—the response claims success without recording that no handler accepted the event.
Frequency: Every unsupported event name.
Consequence: clients cannot distinguish an applied event from an unsupported one using the declared result contract.
Additional information
The NodeEventResult schema already contains event, handled, and optional reason; no protocol, schema, or version change is required.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Aug 14, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 14, 2026, 11:54 AM ET / 15:54 UTC.
Summary
Current main still emits the misleading bare acknowledgment for an unsupported node event. This is a narrow, source-proven Gateway bug, but its
maintainerlabel requires owner-managed handling rather than automated repair routing.Reproducibility: yes. from current source: send any schema-valid unknown event through a paired-node
node.eventRPC; the default dispatcher result is absent and the adapter emits{ok:true}.Next step
The protected
maintainerlabel requires owner-managed handling even though the code repair is otherwise small and clear.Review details
Best possible solution:
Return
{ok:true,event,handled:false,reason:"unsupported_event"}from the dispatcher default and cover it with direct dispatcher and paired-node WebSocket regression assertions.Do we have a high-confidence way to reproduce the issue?
Yes, from current source: send any schema-valid unknown event through a paired-node
node.eventRPC; the default dispatcher result is absent and the adapter emits{ok:true}.Is this the best way to solve the issue?
Yes. Repairing the dispatcher’s default branch preserves the existing result contract while leaving intentional known-event no-op behavior unchanged.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
undefinedexits for known event-specific no-op or invalid-payload paths; the repair should change only the unsupported-event default, not broaden the change through the RPC adapter.Codex review notes: model internal, reasoning high; reviewed against 9386ac096632.
Label changes
Label changes:
P2: Unsupported events deterministically return a misleading result, but the affected scope is limited to generic paired-node Gateway clients.impact:other: The issue is an incorrect Gateway control-plane RPC outcome that does not match a more specific owned impact category.maturity:stable: The primary owner is the M4 Stable Gateway runtime’s RPC APIs and Events surface, and the existing protocol schema defines the broken result contract.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.Label justifications:
P2: Unsupported events deterministically return a misleading result, but the affected scope is limited to generic paired-node Gateway clients.impact:other: The issue is an incorrect Gateway control-plane RPC outcome that does not match a more specific owned impact category.maturity:stable: The primary owner is the M4 Stable Gateway runtime’s RPC APIs and Events surface, and the existing protocol schema defines the broken result contract.Evidence reviewed
What I checked:
{ok:true}; therefore a valid unknown event produces the reported bare acknowledgment on current main. (src/gateway/server-node-events.ts:1224, 9386ac096632)eventandhandled; no schema or protocol-version change is needed for the repair. (packages/gateway-protocol/src/schema/nodes.ts:64, 9386ac096632)test/e2e/qa-lab/runtime/gateway-node-control-plane.e2e.test.ts:254, 9386ac096632)qa/maturity-scores.yaml:22, 9386ac096632)src/gateway/server-methods/nodes.event.ts:154, 37a63fbf450e)Likely related people:
src/gateway/server-node-events.ts,src/gateway/server-methods/nodes.event.ts,packages/gateway-protocol/src/schema/nodes.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix(gateway): report unsupported node events (#123719)
steipete commentedon Aug 14, 2026
Fixed on
mainby #123719 in 2b31cf114ba48e5367ae3ceb3d1582e6c9172b68.The dispatcher default now returns the existing structured non-outcome for unsupported events, while recognized event branches remain unchanged. Proof: 85/85 focused owner and paired-node Gateway tests, clean post-rebase changed gate and autoreview, and exact-head CI 31816922171 with
openclaw/ci-gategreen.fix(gateway): report unsupported node events (openclaw#123719)