Repository navigation
Conversation
|
🦞👀 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. |
|
Codex review: blocked before merge. What this changesThe PR gives realtime voice consultations tracked Gateway root admission before they start session effects. Example: An allowed FaceTime caller asks what events are happening in Rome after the plugin startup request has finished.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR fixes a current shared-runtime bug, and I found no introduced correctness defects. Reviewed head: Before merge
FindingsNone. Agent review detailsHow this fits togetherFaceTime, Voice Call, meeting bridges, and browser Talk delegate questions to the shared consultation runtime, which prepares session work, executes the agent, and returns speakable text. flowchart TD
A[Voice bridge callback] --> C[Shared consult owner]
B[Browser Talk admitted turn] --> C
C --> D[Gateway root admission]
D --> E[Session effect admission]
E --> F[Configured agent]
F --> G[Speakable tool result]
Technical reviewBest possible solution: Keep admission in the shared consultation owner, preserving live-root nesting and releasing newly acquired roots on every terminal path. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically rejects consultations carrying a released root before agent execution, matching the affected-release report and supplied before/after evidence; this read-only review ran no target code. Is this the best way to solve the issue? Admission belongs at the shared consultation boundary, and this patch reuses the existing admission API while preserving the separate browser Talk lifecycle and existing sender and tool authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b56baaec9b8b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +35, Tests +244. Total +279 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed November 27, 2026, 2:10 AM ET / 07:10 UTC (Revision 4). |
8a612b7 to
8fbc75d
Compare
|
Follow-up for the clawsweeper review of head 1. [P2] Fixture isolation for the new admission suite — fixed The
2. Real behavior proof through a shipped voice entry point — added Ran a real Gateway child process built from this head's dist with the shipped Voice Call plugin enabled (its shipped The consult admitted, the real embedded agent executed (read the seeded workspace files and produced a structured answer), and the speakable answer was delivered back through the realtime bridge. Honest scope notes (also in the PR body):
Also found while producing this evidence (not caused by this PR, verified identical on origin/main): the official qa-lab scenario CI note: PR body updated (validated with the four-section template + required Evidence fields). Requesting a re-review of @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Real behavior proof added for the review item on head Setup (all real except the disclosed system-boundary mocks): a real Gateway child process spawned from this head's dist ( After (this head, reproduced twice): The consult inherited the released root, admitted under a fresh root, the real embedded agent executed (read the seeded workspace files and produced a structured answer), and the speakable answer was delivered back through the realtime bridge. Before (identical driver, Gateway child built from — the exact reported symptom, on main, through the same shipped entry point. Redactions: stream tokens and loopback ports masked above; call ids are random uuids from the mock carrier. No external IPs, API keys, or phone numbers appear in the captured logs. Boundary disclosure: the telephony carrier is the plugin's shipped The PR body's Evidence section is updated with these logs (validated against the four-section template). Regarding the second before-merge item ("await maintainer action" to approve fork workflows for head @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Live FaceTime check on macOS for this PR (the PR body notes that no macOS/FaceTime hardware was available). Setup: the 2026.11.5 release build with only this PR's production change ported into the dist. The One real inbound FaceTime call. The caller asked the assistant to look up what is on in Rome this week:
There is no Scope: this was a single call, so it is a smoke test of the released-root path on real hardware. It does not cover the Talk nesting or the drain cases, which the PR's tests already cover. The test build has been reverted. This comment was prepared with an AI coding assistant; the timings were read from this machine's Gateway log. |
FaceTime realtime calls always refused openclaw_agent_consult with "Gateway is temporarily unavailable. Please try again shortly." because the consult ran under the released startup root that the plugin service's tool-call callback inherited. The shared consult helper now owns its root admission before any session effect: it nests under a live caller root (the browser Talk contract), opens a fresh independent root when the inherited root is released or absent, and still refuses the consult during a genuine gateway restart drain or suspension. Fixes openclaw#202915
8fbc75d to
080cb2c
Compare
|
Rebased onto current Conflict resolution (main's newer shape preserved). Main split the consult into two entry points — Verification on the rebased head: Real-hardware confirmation added to the Evidence section. @withlightsg ran one real inbound FaceTime call on macOS against a 2026.11.5 release build carrying only this PR's production change (comment): the shipped @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Fixes #202915
What Problem This Solves
openclaw_agent_consulttool with "Gateway is temporarily unavailable. Please try again shortly." while the gateway was healthy, so the caller never got the agent's answer (the voice model hears an error and may invent one instead).extensions/voice-call/src/runtime.ts) and meeting consults (src/meeting-bot/agent-consult.ts); those entry points inherit the same failure shape whenever their consult fires from a callback that outlived its creating request root.Why This Change Was Made
consultRealtimeVoiceAgentnow owns its root admission before any session effect (beginSessionEffect). Under a live caller root the consult nests and counts once (the browser Talk contract insrc/gateway/talk/client-agent-consult.tsis unchanged); under a released or absent root it opens a fresh independent root viatryBeginGatewayRootWorkAdmission; during a genuine gateway restart drain or suspension it still refuses withGatewayDrainingError.realtime voice agent consult root admissionsuite now initializes the same test fixture (stateviacreateOpenClawTestState, fork-session mock, voice-session testing reset) as the sibling runtime suite, so selecting it alone with-tno longer fails on an undefined fixture.User Impact
openclaw_agent_consultinstead of a spurious "gateway unavailable" error while the gateway is running normally.Evidence
gateway-work-admissionmodule, realbeginSessionEffect, real FaceTime talk driver controller), including the released-root propagation the issue reports.origin/main(3435fb5c94f) is refused with the exact reported error.mockcarrier; the realtime provider is a debug fixture kept in/tmp(never in the repo) modeled on the repo's own qa-lab voice-call runtime fixture, differing only in where the consult tool call is emitted from (a released-root continuation instead ofconnect()). Everything above that boundary — the Gateway child process, admission machinery, session effects, the shipped voice-call plugin, and the embedded agent — is real code from this head.onToolCallfrom an async continuation created inside a since-released root, exactly the propagation the issue reports.runEmbeddedAgentis called once, and no consultation root is left active afterwards (success, failure, cancellation, and genuine drain are each asserted). In the real-gateway Voice Call runs, the consult emitted from a released-root continuation through the shipped realtime voice path admits under a fresh root, runs the real embedded agent, and delivers the speakable answer through the realtime bridge (reproduced twice on this head).GatewayDrainingError: Gateway is temporarily unavailable. Please try again shortly.frombeginSessionEffect's subordinate-admission check, and the FaceTime driver submits{"error":"Gateway is temporarily unavailable. Please try again shortly."}as the tool result — the exact reported symptom. The same released-root real-gateway driver run against a Gateway child built fromorigin/main(3435fb5c94f) is refused:-t 'realtime voice agent consult root admission') failed withTypeError: Cannot read properties of undefined(state fixture not initialized in the sibling describe).@openclaw/facetimeplugin calledconsultRealtimeVoiceAgentexactly as released, session-effect admission settled without refusal at 0.09 s, the configured agent ran, and the tool result reached the call at 53.77 s with noGateway is temporarily unavailableanywhere in the log — while the same build without this change refused every consult within ~0.1 s. That is a single-call smoke test of the released-root path on real hardware (it does not cover Talk nesting or drain, which this PR's tests assert). The real-gateway runs used the plugin's shipped mock telephony carrier, a/tmprealtime-provider fixture (disclosed above), and the repo's mock-auth OpenAI provider — system-boundary mocks per the repo's own qa-lab e2e pattern; the released-root failure shape is now also demonstrated end-to-end in a real Gateway (refused on main, answered on this head). The official qa-lab scenarioqa/scenarios/plugins/voice-call-cli-rpc-agent-tool.yamlcurrently fails on main at the realtime step: its fixture issues the stream session with the internal callId while the signed-call boundary (realtime-handler.ts, providerName "twilio") compares the start frame's CallSid with the issuance callId, so the stream is always closed with 1008 "Call identity does not match stream session" (verified identical on origin/main); worth a separate test-infra fix.main(1e6d3f9bd9e, head080cb2c7b72): main has since split the consult into two entry points —consultRealtimeVoiceAgent(channel bridges) and the gateway-onlyconsultRealtimeVoiceAgentInSessionRuntime(browser Talk) — both delegating toconsultRealtimeVoiceAgentInternal. The root admission now lives on that shared internal owner instead of a single wrapper, so both entry points get it at the narrowest point: a live caller root still nests and counts once, a released or absent root opens a fresh independent root, and a genuine drain still refuses. The two conflicting test files re-merged cleanly;src/talk/agent-consult-runtime.test.ts+extensions/facetime/tests/talk-driver.consult.test.tspass on the rebased head (2 vitest shards green), oxfmt/oxlint clean,pnpm tsgo:coreexit 0. Earlier follow-ups: the second added a real-Gateway released-root run from this head's dist (agent answer delivered, reproduced twice) plus the identical driver refused on origin/main, answering the review of8fbc75de; requesting re-review, including of @withlightsg's real-hardware FaceTime confirmation above.