Skip to content

fix(voice-call): close a realtime call when the caller does not answer - #159146

Closed
mnowrot wants to merge 25 commits into
openclaw:mainfrom
mnowrot:fix/voice-call-consent-window-watchdog
Closed

mnowrot wants to merge 25 commits into
openclaw:mainfrom
mnowrot:fix/voice-call-consent-window-watchdog

Conversation

@mnowrot

@mnowrot mnowrot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #159141

What Problem This Solves

Fixes: a realtime voice call is held open indefinitely when the caller does not answer the agent's question, because nothing ever prompts the model to close the call on silence.

User Impact

User impact: the agent now says a short apology and ends the call itself after the caller has been given the intended window to answer, instead of the line being held until an external limit tears it down.

Why This Change Was Made

The model was instructed to allow a short answer window and then apologise and hang up, but silence produced no event to wake it. A bounded watchdog now arms when an assistant turn asks a question (a transcript containing ?), cancels permanently on any caller speech or transcript, and on expiry injects a user message via the same path the forced-consult flow uses, telling the agent the window closed and to apologise and call the end-call tool. It fires at most once per call and is cleared on session close.

Evidence

Live call 75e21e4a-1f30-483c-b7f5-72a8b2f0ccb1: the caller stayed silent after the consent question and the agent apologised and hung up within ~5 s (single firing). pnpm tsgo:extensions passes on the branch.

Review response

Reworked on head 6679c3f4 in response to the review:

  • Limit the timeout to an actual consent question. The watchdog now arms only for the first assistant question seen before any caller response, and never again after the caller has spoken. An ordinary later question can no longer silently end a live call.
  • Handle the timeout when the end-call tool is unavailable. Under native agent delegation the provider is not given the end-call tool, so the injected "call the end-call tool" instruction was unsatisfiable and the line was held open anyway. The handler now asks for the spoken goodbye only when the tool is actually available, and always ends the call directly (manager.endCall, reason timeout) after a grace period so the line is never held.
  • Track responses after the timed question. A caller response that lands after the window already fired is recorded and logged, so "never answered" is distinguishable from "answered late".
  • Merge risk. The watchdog was moved into its own module (src/webhook/realtime-consent-window.ts) so this branch no longer redeclares the shared per-call locals (lastAssistantAudioSentAt, ASSISTANT_SPEECH_TAIL_MS, the per-call maps) that the sibling voice-call fixes also touch. That removes the textual conflict this branch previously created.

Tests added (green, src/webhook/realtime-consent-window.test.ts):

  • fires once on silence after the consent question
  • only arms for the first question before any caller response
  • never fires after the caller has spoken
  • holds the countdown while the agent is still speaking
  • does not fire when the bridge no longer owns the call
  • records a response that arrives after the window fired
  • stops counting down after dispose

Command: node --import ./scripts/tsx.mjs scripts/run-vitest.mjs run extensions/voice-call/src/webhook/realtime-consent-window.test.ts — observed 7 passed.

pnpm tsgo:extensions passes on the branch.

Review response

CI check-lint-core-2 failed on the consent-watchdog change: oxlint prefer-string-includes flagged the regex literal /\?/.test(text).

Fixed in 2666fa65 — replaced with text.includes("?") (identical semantics, no regex).

  • Lint: node scripts/run-oxlint.mjs --tsconfig extensions/tsconfig.json extensions/voice-call/src/webhook/realtime-handler.ts → Found 0 warnings and 0 errors.
  • Types: pnpm tsgo:extensions → exit 0

Review response

Addressed on head 4b1fb29760b in response to Revision 6:

  • Arm only after the consent question is confirmed (P1). The watchdog now arms only when the completed assistant turn is the recording-consent question (isConsentQuestionUtterance(), matching the fixed question text or a consent+record phrasing in src/realtime-consent.ts). A provider that opens with any other turn can no longer have a live call ended on silence.
  • Wait for goodbye playback before forcing hangup (P2). The fixed six-second grace is replaced by playback-aware polling: after the goodbye prompt the handler waits until the goodbye audio has actually started and the pacer has drained (plus the speech tail), bounded by a hard 20 s ceiling so a stalled provider or queued carrier audio cannot hold the line open indefinitely.
  • Return a rejected carrier hangup to the provider (P2). When the direct hangup is rejected or errors, the handler now hands a caller-facing outcome to the provider (tellCallerToHangUp() via the same user-message path the forced-consult flow uses) instead of only logging and leaving the line open.

Tests (green): node scripts/run-vitest.mjs run extensions/voice-call/src/webhook/realtime-handler.test.ts extensions/voice-call/src/webhook/realtime-consent-window.test.ts extensions/voice-call/src/webhook/realtime-audio-pacer.test.ts extensions/voice-call/src/webhook/realtime-handler.lifecycle.test.ts extensions/voice-call/src/realtime-agent-context.test.ts — observed 5 files, 154 passed. Coverage added: watchdog stays disarmed when the opening turn is not the consent question; the close waits for the goodbye and respects the cap; a rejected hangup surfaces to the provider.

Outstanding (needs a maintainer / real-call evidence): a redacted after-fix real-call trace showing the question → silence → completed goodbye → carrier hangup result, and maintainer direction on the opt-in setting. No fabricated proof is included.

Review response

CI check-docs and checks-fast-baseline-ratchets failed on the merged head because the voice-call manifest now declares realtime.consentWindow (enabled, windowMs), which raises the plugin config-surface count 4490 -> 4493 past the tracked budget.

This is an intentional, minimal config addition required by the consent-window watchdog, and no unrelated config was removed, so the budget is consciously raised in docs/.generated/config-baseline.counts.json (plugin 4490 -> 4493) and docs/.generated/config-baseline.sha256 is regenerated.

  • pnpm config:docs:gen → plugin: 4493
  • pnpm config:docs:check → OK docs/.generated/config-baseline.sha256 and docs/.generated/config-baseline.counts.json

(The line-cap warnings for realtime-handler.ts / realtime-handler.test.ts emitted by the same ratchet job are advisory on GitHub Actions and are unchanged from the prior head.)

… answered

The realtime instructions tell the agent to give the caller a five-second window
to answer the opening consent question and then apologise and end the call, but
nothing in the bridge ever wakes the model on silence, so the call simply holds
the line until the maximum call duration (300 s in a live report).

Arm a bounded watchdog when an assistant turn asks a question (a transcript
containing "?") and cancel it on any caller speech or transcript. On expiry,
inject a user message telling the agent the window closed and to apologise
briefly and call the end-call tool. The watchdog fires at most once per call and
is cleared on session close.
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: voice-call Channel integration: voice-call size: S labels Sep 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 5, 2026, 1:15 PM ET / 17:15 UTC (Revision 24).

ClawSweeper review

What this changes

The Voice Call plugin adds an optional recording-consent question and automatically ends calls when the caller leaves that question unanswered.

Merge readiness

⛔ Blocked before merge - 4 items remain

This remains useful work that current main does not provide. Earlier code findings are resolved, and the real-call evidence remains relevant; maintainer acceptance of the consent-only policy and its bounded playback exceptions is still unresolved.

Priority: P2
Reviewed head: c39fe9190e8553856974c4c04ee3d98f603f0939
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, bounded implementation with relevant real-call proof and no remaining discrete correctness findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The pinned Twilio/Google call trace exercises the production consent watchdog through question, silence, goodbye, and bot hangup; the watchdog modules and handler control block match the current head. Native-delegation coverage is supplemental mocked testing. No stored-data format or migration changes are introduced.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The pinned Twilio/Google call trace exercises the production consent watchdog through question, silence, goodbye, and bot hangup; the watchdog modules and handler control block match the current head. Native-delegation coverage is supplemental mocked testing. No stored-data format or migration changes are introduced.
Evidence reviewed 9 items Pinned introduction and clean checkout: Reviewed the merge-base-to-head introduced diff, including production code, tests, manifest, docs, and generated baselines. The checkout is the original PR head, not the test merge; git status remained clean and diff --check passed.
Current main still lacks this capability: The fetched main handler provides disconnect/inactivity termination and the existing end-call tool, but no consent-window watchdog. Its realtime configuration likewise has no consentWindow field. Existing media inactivity detection does not address silent callers whose carrier continues sending audio.
Default compatibility and manifest admission: The runtime schema defaults to enabled:false and windowMs:5000; the manifest now admits the same setting. Added configuration and handler tests cover default-off behavior, activation, and invalid values. No existing stored values or data formats are rewritten.
Findings None None.
Security None None.

How this fits together

Voice Call bridges telephony carrier audio to a realtime voice provider. The new watchdog observes question playback and caller responses, then prompts a goodbye and requests carrier hangup when its answer window expires.

flowchart TD
  A[Opt-in consent setting] --> B[Realtime voice bridge]
  B --> C[Consent question audio]
  C --> D[Carrier playback acknowledgment]
  D --> E[Bounded answer window]
  F[Caller speech] --> E
  E --> G[Goodbye prompt]
  G --> H[Carrier hangup]
Loading

Decision needed

Question Recommendation
Should Voice Call adopt this default-off recording-consent watchdog, including its bounded unconfirmed-playback hangups and the plugin config-budget increase from 4490 to 4493? Approve the bounded opt-in policy: Accept the consent-only scope and budget increase, and document that missing playback acknowledgments or the close ceiling can cause hangup before confirmed playback.

Why: The implementation chooses new call-ending policy and configuration surface; live proof demonstrates operation but cannot establish product acceptance.

Before merge

  • Resolve merge risk (P1) - The opt-in watchdog can end a call without confirmed question or goodbye playback through its no-ack escape and 20-second forced-close ceiling; maintainer acceptance of this tradeoff remains unresolved.
  • Resolve merge risk (P1) - The new consent settings and plugin config-budget increase need explicit approval, including agreement that consent-only behavior is the intended scope of the linked report.
  • Complete next step (P2) - Obtain maintainer approval for the consent-only policy, bounded playback exceptions, and config-budget increase; record the accepted scope and exceptions in the PR and user-facing documentation.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +418, Tests +498, Docs +25, Generated 0. Total +941 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 6 422 4 +418
Tests 8 498 0 +498
Docs 1 25 0 +25
Config 0 0 0 0
Generated 2 3 3 0
Other 0 0 0 0
Total 17 948 7 +941

Review metrics

Metric Value Why it matters
Configuration surface 2 new settings; plugin baseline 4490 → 4493 The default-off policy and budget growth require explicit product approval.
Production versus test growth production +418; tests and test support +498 Production growth implements playback-aware timeout handling; the added coverage protects configuration, timing, and lifecycle behavior.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #159141
Summary: This PR is the explicit implementation candidate for the linked report, with narrower consent-only coverage.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Accept bounded hangup exceptions (recommended)
    Record maintainer approval for the opt-in playback tradeoff and explain its limits in the user-facing consent documentation.
  2. Preserve calls without playback confirmation
    Remove the unconfirmed-playback close paths and let the existing maximum-duration limit handle those calls.

Technical review

Best possible solution:

Keep existing calls default-off and ship an explicitly approved consent-only policy whose documentation states the playback exceptions and narrower scope.

Do we have a high-confidence way to reproduce the issue?

Yes, the linked report supplies a concrete silent-caller scenario, and current-main source lacks a consent timer while carrier media can continue. This reviewer did not execute a current-main call.

Is this the best way to solve the issue?

Unclear pending product acceptance: the default-off consent-specific watchdog is bounded and preserves existing defaults, but it does not implement generic unanswered-question handling.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 516c2a3497f2.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This addresses unnecessary call duration and carrier cost in an optional realtime consent flow.
  • merge-risk: 🚨 availability: Enabled calls can be terminated without confirmed playback when the bounded escape paths apply.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The pinned Twilio/Google call trace exercises the production consent watchdog through question, silence, goodbye, and bot hangup; the watchdog modules and handler control block match the current head. Native-delegation coverage is supplemental mocked testing. No stored-data format or migration changes are introduced.
  • proof: sufficient: Contributor real behavior proof is sufficient. The pinned Twilio/Google call trace exercises the production consent watchdog through question, silence, goodbye, and bot hangup; the watchdog modules and handler control block match the current head. Native-delegation coverage is supplemental mocked testing. No stored-data format or migration changes are introduced.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the merge-base-to-head introduced diff, including production code, tests, manifest, docs, and generated baselines. The checkout is the original PR head, not the test merge; git status remained clean and diff --check passed. (c39fe9190e85)
  • Current main still lacks this capability: The fetched main handler provides disconnect/inactivity termination and the existing end-call tool, but no consent-window watchdog. Its realtime configuration likewise has no consentWindow field. Existing media inactivity detection does not address silent callers whose carrier continues sending audio. (extensions/voice-call/src/webhook/realtime-handler.ts:1260, 516c2a3497f2)
  • Default compatibility and manifest admission: The runtime schema defaults to enabled:false and windowMs:5000; the manifest now admits the same setting. Added configuration and handler tests cover default-off behavior, activation, and invalid values. No existing stored values or data formats are rewritten. (extensions/voice-call/src/realtime-consent.ts:38, c39fe9190e85)
  • Playback tradeoff remains: Without a question playback acknowledgment, the handler resolves its wait after five seconds and adds five seconds to the answer window. Direct hangup proceeds at its 20-second ceiling even without completed goodbye playback. These are intentional bounded escape paths, but no human acceptance appears in the supplied or inspected discussion. (extensions/voice-call/src/webhook/realtime-handler.ts:1003, c39fe9190e85)
  • Positive real-call proof: The redacted Twilio/Google trace at fix(voice-call): close a realtime call when the caller does not answer #159146 (comment) identifies build 0a102b5 and shows a consent question, zero caller utterances, watchdog expiry, a goodbye transcript, openclaw_end_call, and hangup-bot finalization. Its stated scope is the silent-caller path; native delegation and consent refusal were not exercised. (0a102b521852)
  • Proof continuity: Read the pinned proof-build and current-head files through GitHub's contents API. realtime-consent.ts and realtime-consent-window.ts are byte-identical, as is the handler block from lastAssistantAudioSentAt through the consent playback-confirmation helpers. The later main integrations do not invalidate the demonstrated watchdog implementation. Local historical blob comparisons encountered unavailable promisor objects and HTTP 403 fetch failures; pinned GitHub reads supplied the comparison instead. (extensions/voice-call/src/webhook/realtime-handler.ts:950, c39fe9190e85)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record approval for the consent-only policy and config-budget increase, documenting the unconfirmed-playback exceptions.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (23 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-30T06:40:35.090Z sha bfedf84 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-30T15:00:55.731Z sha bfedf84 :: blocked before merge. :: [P2] Place the consent playback mark after the question audio | [P3] Skip consent playback marks when the setting is off
  • reviewed 2026-09-30T15:18:56.302Z sha 232eedc :: needs real behavior proof before merge. :: [P2] Keep the fallback playback mark behind the question audio
  • reviewed 2026-09-30T16:50:22.938Z sha 0a102b5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-30T17:22:23.625Z sha 0a102b5 :: blocked before merge. :: none
  • reviewed 2026-10-05T06:57:25.127Z sha d134d71 :: blocked before merge. :: [P1] [P1] Admit the consent setting in the plugin manifest
  • reviewed 2026-10-05T07:51:59.071Z sha 9f69ada :: blocked before merge. :: none
  • reviewed 2026-10-05T08:24:20.519Z sha 66d2367 :: blocked before merge. :: none

Two problems with the silence watchdog: it re-armed on any question the agent
asked, so a later question could silently end a live call; and when native
agent delegation is active the end-call tool is not exposed to the provider,
so the injected 'call openclaw_end_call' instruction was unsatisfiable and the
line was held open anyway.

Move the watchdog into its own module (realtime-consent-window.ts) so it no
longer redeclares the shared per-call locals and stops conflicting with the
sibling voice-call fixes. It now arms only for the first assistant question
seen before any caller response, permanently disarms once the caller speaks,
records a response that lands after the window already fired, and the handler
ends the call directly when the end-call tool is unavailable instead of
trusting the model to do it.
@mnowrot

mnowrot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The findings from the last review have been addressed on the current head; the PR body now carries a "Review response" section with the reworked behaviour and the after-fix regression tests (names + exact command + observed result). passes on the branch.

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 26, 2026
The consent watchdog's assistant-turn check used a regex literal
(/\?/.test(text)); oxlint's prefer-string-includes rule flags this and
fails the changed-extensions lint lane. Replace with String.includes.
@mnowrot

mnowrot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

The watchdog previously armed whenever the first assistant turn contained a
"?", so any opening question could silently end a live call. Gate arming on
the explicit realtime consent flow instead: add an opt-in
`realtime.consentWindow` config ({enabled, windowMs}), arm the timer only
when it is enabled, and drive the greeting/consent prompt from the same flag.

Also surface the consent question as a shared constant, cover the new flows
in config, agent-context, consent-window, handler, and delegation tests, and
document the consent window in the realtime/streaming guide.
@mnowrot

mnowrot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased head 093fd850bcb reworks the consent watchdog: arming is now gated on an explicit realtime.consentWindow config rather than a "?" in the first assistant turn, so an ordinary opening question can no longer end a live call. Focused voice-call tests are green (5 files, 148 tests).

@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L and removed size: M labels Sep 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 30, 2026
@mnowrot

mnowrot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

Ready for a maintainer look. 🛎️

ClawSweeper's latest pass on head 0a102b521852b28f57da7a5f77461aadde3080a5 set status: 👀 ready for maintainer look with proof: sufficient (rating 🦐 gold shrimp → 🐚 platinum hermit).

@steipete @galiniliev @vincentkoc @obviyus @Patrick-Erichsen — you're the folks with recent extensions/voice-call history. Would one of you mind taking a look when convenient? Happy to make any changes you'd like.

Resolve conflicts onto main's refactored realtime handler and test helpers:
- realtime-handler.ts: keep main's inlined transcript state and unified
  call.speech/call.assistant-speech event path; re-apply the consent-window hooks.
- realtime-handler.test.ts: keep main's createRealtimeConfig/makeCallHarness
  structure; port the consent-window tests onto it.
- realtime-handler.delegation.test.ts: stays deleted; the native-delegation
  consent-timeout test moves to realtime-handler.lifecycle.test.ts.
- realtime-agent-context.test.ts: replace the removed createConfig helper.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 5, 2026
The host validates plugin config against the manifest configSchema before
the plugin loads, and realtime is additionalProperties: false, so the
runtime-only consentWindow schema could not be configured. Declare it in
the manifest and cover admission through the manifest schema.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 5, 2026
The voice-call manifest now declares realtime.consentWindow (enabled,
windowMs), raising the plugin config-surface count 4490 -> 4493.
Regenerate docs/.generated/config-baseline.{counts,sha256} so the
config:docs check and the baseline-ratchet job agree with the new
surface.
…t-window-watchdog

# Conflicts:
#	docs/.generated/config-baseline.counts.json
#	docs/.generated/config-baseline.sha256
Re-generate docs/.generated/config-baseline.{counts,sha256} on the
merged tree so the config:docs check reflects the plugin surface
(4490 -> 4493) on top of current main.
roboclaw-bot added a commit that referenced this pull request Nov 3, 2026
Outbound realtime calls now use the existing speech-idle lifecycle with a
30-second default. Explicit idleHangupMs values override the default; inbound
defaults are unchanged. Calls end on speech inactivity even when the carrier
continues sending silent media.

Reuses provider-session and carrier teardown. Removes the obsolete timer-start
log, for a net reduction of three production lines. Adds 50 regression-test
lines and their dedicated allocation for continuous silence, clicks/echo,
teardown, inbound defaults, and explicit timeout overrides.

Supersedes #159146, thanks @mnowrot.
Validated red on main, then 103 focused tests green on Blacksmith Testbox;
touched-file lint/format passed and autoreview was clean through P2.

Co-authored-by: mnowrot <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Thanks @mnowrot for the report and your work on this! The silent-call issue is fixed in merged #191794 (fc6d8c6), using the existing speech-idle lifecycle, with your co-author credit preserved. Closing this as superseded.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
Outbound realtime calls now use the existing speech-idle lifecycle with a
30-second default. Explicit idleHangupMs values override the default; inbound
defaults are unchanged. Calls end on speech inactivity even when the carrier
continues sending silent media.

Reuses provider-session and carrier teardown. Removes the obsolete timer-start
log, for a net reduction of three production lines. Adds 50 regression-test
lines and their dedicated allocation for continuous silence, clicks/echo,
teardown, inbound defaults, and explicit timeout overrides.

Supersedes openclaw#159146, thanks @mnowrot.
Validated red on main, then 103 focused tests green on Blacksmith Testbox;
touched-file lint/format passed and autoreview was clean through P2.

Co-authored-by: mnowrot <[email protected]>
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
Outbound realtime calls now use the existing speech-idle lifecycle with a
30-second default. Explicit idleHangupMs values override the default; inbound
defaults are unchanged. Calls end on speech inactivity even when the carrier
continues sending silent media.

Reuses provider-session and carrier teardown. Removes the obsolete timer-start
log, for a net reduction of three production lines. Adds 50 regression-test
lines and their dedicated allocation for continuous silence, clicks/echo,
teardown, inbound defaults, and explicit timeout overrides.

Supersedes openclaw#159146, thanks @mnowrot.
Validated red on main, then 103 focused tests green on Blacksmith Testbox;
touched-file lint/format passed and autoreview was clean through P2.

Co-authored-by: mnowrot <[email protected]>

Source: fc6d8c6

Release adaptation: Ported only playback default, obsolete timer log removal, manifest help and focused call-control regressions. Existing speech/media owner and explicit override unchanged. Companion audit has no later PR mentions; later shared docs/config and unrelated voice changes excluded. No schema changes. timeout 60 node scripts/run-vitest.mjs extensions/voice-call/src/webhook/realtime-call-control.test.ts stopped compiled subprocess preparation with SIGTERM/143; no product verdict. Target lint blocked by external shared-install declaration path; exact logs 1-test.log and 1-lint.log. Runtime/typecheck proof remains unverified.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 3d4d79b4d8cd287caf6072507bf35ca6f040e323)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call docs Improvements or additions to documentation merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: realtime agent is never woken when the caller does not answer, so the call holds the line

2 participants