Repository navigation
fix(voice-call): retain state runtime for deferred streams - #147689
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. Reviewed September 13, 2026, 11:15 PM ET / September 14, 2026, 03:15 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR retains Voice Call’s storage runtime for deferred callbacks and corrects QA Gateway targeting, media-stream URLs, and timeout diagnostics. Merge readiness⛔ Blocked before merge - 1 item remains The fix remains necessary on inspected main, and no blocking defect was found. The previous migration concern is cleared: the patch preserves the existing persistence contract. Priority: P2 Review scores
Verification
How this fits togetherVoice Call connects CLI commands, agent tools, carrier webhooks, and media streams to a shared call manager. That manager persists call records through the plugin’s SQLite storage runtime before publishing call-state changes. flowchart TD
A[CLI and agent tools] --> C[Voice Call manager]
B[Webhooks and media streams] --> C
D[Plugin registration] --> E[Retained storage runtime]
C --> E
E --> F[Existing SQLite call records]
C --> G[Call state and voice responses]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +40, Tests +53. Total +93 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep deferred call operations bound to their existing plugin runtime while preserving the current storage format and shutdown lifecycle. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure path: deferred callbacks can lose the ambient plugin-instance runtime before opening call storage. The retained-runtime test isolates that condition; this review did not execute it. Is this the best way to solve the issue? Yes. Passing the already-supplied runtime through the existing manager and storage operations is a focused repair that preserves the durable contract and avoids a competing storage owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b087e603a5c9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Compatibility proof: this patch does not change the Voice Call SQLite schema, stored record shape, namespaces, storage paths, serialization, retention, or migration behavior. It only retains the already-supplied storage runtime through deferred callbacks; the full child-Gateway scenario passed with persisted calls across CLI, RPC, tool, webhook, and WebSocket paths. The data-model compatibility checkbox is therefore not applicable. @clawsweeper please re-review the exact head. |
|
@clawsweeper re-review Compatibility proof: this patch does not change the Voice Call persisted schema, namespace, serialization, retention, or migration set. It passes the already-supplied |
|
🦞🧹 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:
|
b3166b0 to
640791b
Compare
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
* commit '8e6fe8e02ddb51bfec4e80071f0f2adcae4cf098': (47 commits) refactor: simplify Gateway health response parsing (#147834) fix: avoid Gateway stalls when renaming sessions (#147869) refactor(plugins): reuse worker optional-method validation (#147925) refactor(infra): remove unreachable firewall diagnostic fallback (#147882) fix(ui): open attached automations from session hovercards (#147749) refactor(reply): share usage-bar numeric coercion (#147863) fix(doctor): report warnings for keyed agent configs (#123058) perf(plugins): reuse complete registry comparisons (#147893) fix(workboard): await lifecycle sweep completion in tests (#147950) fix: reduce stalls when browsing large session inventories (#147911) refactor(onboard): share custom model definition (#147915) feat(ios): collapse completed chat work above replies (#148002) fix(voice-call): retain state runtime for deferred streams (#147689) test(qa): compare Telegram entities semantically (#147752) fix(plugins): preserve runtime scope for deferred CLI actions (#147688) test(qa): keep Slack progress marker visible (#147748) test(qa): finish channel picker prompts (#147730) test(tui): handle auth restriction prompt (#147729) fix(qa): retain onboarding prompts across redraw bursts (#147687) fix(qa): seed Teams ambiguous timeout deterministically (#147686) ...
* commit '069710f909f0a7158777d0fc0bf1eab84e20c699': (45 commits) refactor(infra): consolidate update campaign reset ownership (openclaw#146555) refactor: simplify Gateway health response parsing (openclaw#147834) fix: avoid Gateway stalls when renaming sessions (openclaw#147869) refactor(plugins): reuse worker optional-method validation (openclaw#147925) refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882) fix(ui): open attached automations from session hovercards (openclaw#147749) refactor(reply): share usage-bar numeric coercion (openclaw#147863) fix(doctor): report warnings for keyed agent configs (openclaw#123058) perf(plugins): reuse complete registry comparisons (openclaw#147893) fix(workboard): await lifecycle sweep completion in tests (openclaw#147950) fix: reduce stalls when browsing large session inventories (openclaw#147911) refactor(onboard): share custom model definition (openclaw#147915) feat(ios): collapse completed chat work above replies (openclaw#148002) fix(voice-call): retain state runtime for deferred streams (openclaw#147689) test(qa): compare Telegram entities semantically (openclaw#147752) fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688) test(qa): keep Slack progress marker visible (openclaw#147748) test(qa): finish channel picker prompts (openclaw#147730) test(tui): handle auth restriction prompt (openclaw#147729) fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687) ...
* commit '4ddb9ed21245eaca9f243e555a5ec070aaaf0dad': (113 commits) fix: avoid Gateway stalls when renaming sessions (openclaw#147869) refactor(plugins): reuse worker optional-method validation (openclaw#147925) refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882) fix(ui): open attached automations from session hovercards (openclaw#147749) refactor(reply): share usage-bar numeric coercion (openclaw#147863) fix(doctor): report warnings for keyed agent configs (openclaw#123058) perf(plugins): reuse complete registry comparisons (openclaw#147893) fix(workboard): await lifecycle sweep completion in tests (openclaw#147950) fix: reduce stalls when browsing large session inventories (openclaw#147911) refactor(onboard): share custom model definition (openclaw#147915) feat(ios): collapse completed chat work above replies (openclaw#148002) fix(voice-call): retain state runtime for deferred streams (openclaw#147689) test(qa): compare Telegram entities semantically (openclaw#147752) fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688) test(qa): keep Slack progress marker visible (openclaw#147748) test(qa): finish channel picker prompts (openclaw#147730) test(tui): handle auth restriction prompt (openclaw#147729) fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687) fix(qa): seed Teams ambiguous timeout deterministically (openclaw#147686) refactor(mcp): load OAuth only when credentials are needed (openclaw#147884) ...
Summary
Why
Maturity run 34681094383 exposed two stacked failures in
voice-call-cli-rpc-agent-tool: the child CLI targeted the ambient Gateway, then realtime WebSocket admission lost the plugin-scoped state runtime after registration. The latter prevented call persistence and bridge creation.Verification
voice-call-cli-rpc-agent-toolQA scenario against a real child Gatewaypnpm check:changedSource run: https://github.com/openclaw/openclaw/actions/runs/34681094383
Persisted-data compatibility
No persisted data model changes. The patch keeps the existing Voice Call namespace, schema, serialization, retention, and migration set unchanged. It only threads the already-created
ManagedPluginRuntimeinto the same store operations so deferred callbacks resolve the same runtime owner as synchronous paths. Existing call records remain readable without migration; the child-Gateway E2E exercised persistence and restore across three calls.