Repository navigation
Description
Filed against @openclaw/voice-call@2026.6.10 (also present in 2026.6.5).
Summary
The voice_call tool's get_status action (and the legacy mode: "status" path) only checks the in-memory call manager via rt.manager.getCall(callId) || rt.manager.getCallByProviderCallId(callId). There is no fallback to the persisted call store when the in-memory record has been evicted.
This causes get_status to report { found: false } for calls that completed successfully and have a full transcript persisted to disk — the agent has no way to retrieve the conversation that happened.
Root cause
In dist/index.js:
case "get_status": {
const callId = normalizeOptionalString(rawParams.callId) ?? "";
const call = rt.manager.getCall(callId) || rt.manager.getCallByProviderCallId(callId);
return json(call ? { found: true, call } : { found: false });
}rt.manager.getCall() is an in-memory lookup. Once a call exits the manager's active map (cleanup after completion, gateway restart, or simply enough time passing), this returns undefined regardless of whether a persisted record exists.
Meanwhile, the full call record — including a complete turn-by-turn transcript — is independently persisted under plugin_state_entries (plugin_id=voice-call) as base64-encoded, chunked JSON blobs keyed like event:<seq6>:<sequence>:<uuid>:chunk:NNNN. This data is confirmed present and complete (verified manually via direct SQLite query) for calls where get_status reports found: false.
Repro
- Initiate an outbound call via
voice_call(initiate_call). - Let the call complete naturally.
- Wait — even a few minutes is enough, and a gateway restart in between guarantees it — then call
get_statuswith the samecallId. - Observe:
{ found: false }, despite the call having completed normally and a full transcript existing in the plugin's persisted SQLite state.
Impact
Any agent workflow that says "call me and report back what I said" silently fails at the reporting step. The agent has no way to know the call succeeded or to retrieve what was said — it can only report that the call status is unknown, which reads to the end user as if voice memory/transcription doesn't work at all, when in fact the data is sitting right there in the plugin's own store.
Suggested fix
get_status (and mode: "status") should fall back to querying the persisted call store (the same one transcripts are written to) when the in-memory manager lookup misses, before returning found: false. Alternatively, expose a dedicated get_transcript action that reads directly from the persisted store by callId, independent of in-memory manager state, since transcripts are clearly intended to survive past the live call lifecycle (they're written incrementally during the call as discrete event chunks).
Happy to provide the decoded persisted record structure if useful for reproducing.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 24, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 24, 2026, 7:12 PM ET / 23:12 UTC.
Summary
Keep open: current main and latest release still have the reported voice-call status gap. The agent tool and gateway status method only check active in-memory call maps, while terminal calls are persisted and then removed from those maps, so a completed call can have stored transcript state and still return
found: false.Reproducibility: yes. from source inspection: complete or restart past a call so active maps no longer contain it, then query
get_statuswhile plugin-state history still has the record. I did not place a live call in this read-only review, so this is source-reproducible rather than live-reproduced.Next step
A single focused repair can be attempted in the voice-call plugin because the source path, missing fallback, and regression coverage are clear.
Review details
Best possible solution:
Keep the existing voice-call tool and gateway surfaces, and add a bounded persisted-record lookup for status misses by call id or provider call id inside the voice-call plugin.
Do we have a high-confidence way to reproduce the issue?
Yes from source inspection: complete or restart past a call so active maps no longer contain it, then query
get_statuswhile plugin-state history still has the record. I did not place a live call in this read-only review, so this is source-reproducible rather than live-reproduced.Is this the best way to solve the issue?
Yes: reusing the existing persisted call record store on status misses is the narrowest maintainable fix. A new
get_transcriptaction may be useful later, but it is not needed to repair the broken existing status behavior.AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 3ab8d6aa609a.
Label changes
Label justifications:
P2: This is a normal-priority voice-call plugin bug with a clear source-level cause and limited surface area.impact:message-loss: The agent-facing status path can report a completed call as missing even when transcript data was persisted.impact:session-state: The failure is drift between active in-memory call state and persisted voice-call state after finalization or restart.Evidence reviewed
Acceptance criteria:
What I checked:
voice_callget_statusaction normalizescallId, checksrt.manager.getCall(callId) || rt.manager.getCallByProviderCallId(callId), and returns{ found: false }on a miss without reading persisted history. (extensions/voice-call/index.ts:761, 3ab8d6aa609a)voicecall.statusgateway method returns active calls without an id, but withcallIdorsidit only checks the active manager lookups before returning{ found: false }. (extensions/voice-call/index.ts:618, 3ab8d6aa609a)getCallreadsactiveCalls,getCallByProviderCallIdresolves through the provider-call active map, and persisted history is exposed separately throughgetCallHistory. (extensions/voice-call/src/manager.ts:429, 3ab8d6aa609a)finalizeCallpersists the terminal call record, then deletes the call fromactiveCallsand removes the provider-call mapping, creating the reported persisted-but-not-found state. (extensions/voice-call/src/manager/lifecycle.ts:30, 3ab8d6aa609a)getCallHistoryFromStorereads the plugin-state backed call record events and returns retained history rows, so the likely fix is wiring a persisted lookup into status rather than adding a new storage system. (extensions/voice-call/src/manager/store.ts:379, 3ab8d6aa609a)get_statustest asserts the active stub result, while stale persisted history is only used for the speak error path, leaving this status regression uncovered. (extensions/voice-call/index.test.ts:652, 3ab8d6aa609a)Likely related people:
8ecbf83c678ccd27cc76542a179e1bc89779a87d, and the issue timeline mentions this handle for the voice-call surface. (role: recent area contributor; confidence: high; commits: 8ecbf83c678c; files:extensions/voice-call/index.ts,extensions/voice-call/src/manager.ts,extensions/voice-call/src/manager/lifecycle.ts)extensions/voice-call/index.ts,extensions/voice-call/src/manager.ts,extensions/voice-call/src/manager/lifecycle.ts)extensions/voice-call/src/manager.ts,extensions/voice-call/src/manager.restore.test.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.NiTeCoMM-code commentedon Jul 3, 2026
Update from the original reporter after reviewing PR activity to date.
Where the candidate fixes stand:
A wrinkle since these PRs were written: #97870 may have mooted the fallback-only approach for the impact reported here.
#97870 merged read-scoped status payload redaction — status reads now project through
toVoiceCallStatus, which omits the transcript (see the runtime proof in #96727: the after-fix status JSON contains call state and timestamps only). If that redaction applies to the agent-facingget_statustool surface, then a persisted-store fallback alone restoresfound: truebut still doesn't let the agent retrieve what was said — the "call me and report back" workflow keeps failing.That would make the second option in my original suggestion the load-bearing one: a dedicated
get_transcriptaction that reads from the persisted store by callId, with whatever redaction policy fits that surface (transcript text in-scope for the agent's own call; phone numbers/provider IDs can stay redacted).5 remaining items
fix(voice-call): resolve completed calls from the persisted store on …
fix(voice-call): resolve completed calls from the persisted store on …