Skip to content

[AI-assisted] Improve active-run control in realtime voice calls - #84231

Merged
steipete merged 5 commits into
openclaw:mainfrom
Solvely-Colin:s/voice-active-run-control
May 24, 2026
Merged

steipete merged 5 commits into
openclaw:mainfrom
Solvely-Colin:s/voice-active-run-control

Conversation

@Solvely-Colin

@Solvely-Colin Solvely-Colin commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR improves realtime voice calls while an embedded OpenClaw consult/tool-backed run is active.

  • adds talk.client.steer and talk.session.steer gateway methods that resolve the active realtime session and queue steering text into the active embedded run
  • centralizes active-run voice control decisions so WebUI realtime, gateway relay, and Discord VC share the same status / steer / cancel / follow-up behavior
  • emits structured realtime tool lifecycle progress so callers can decide whether an event should be spoken, shown, or suppressed
  • fixes cancel/relay edge cases so active provider tool calls receive one terminal result and stale spoken output is interrupted
  • adds focused coverage for the protocol, gateway methods, browser realtime paths, relay paths, and Discord VC active-run control

Real behavior proof

Behavior addressed: Active realtime voice calls can ask for status, cancel, steer, or queue follow-up work while an OpenClaw consult/tool-backed run is active, instead of leaving the caller with no way to influence work that is already running.

Real environment tested: Local OpenClaw dev gateway on macOS with the aiden agent, OpenAI realtime provider, WebUI realtime voice, and Discord VC. The hard log evidence below comes from the gateway file log at /tmp/openclaw/openclaw-2026-05-19.log, redacted for user/channel ids and local paths.

Exact steps or command run after this patch:

  • WebUI realtime voice: opened the Control UI, created realtime talk sessions, ran tool-backed consult calls, then tested status/cancel/steer/follow-up/greeting-style utterances while the consult was active.
  • Discord VC: joined a Discord voice channel, started gpt-realtime-2 bidi voice with consult policy enabled, started a tool-backed consult, then tested steer, status, and cancel while the consult was active.
  • Focused automated proof:
    • node scripts/run-vitest.mjs src/talk/agent-run-control.test.ts src/gateway/protocol/index.test.ts ui/src/ui/chat/realtime-talk-shared.browser-import.test.ts extensions/discord/src/voice/manager.e2e.test.ts ui/src/ui/realtime-talk-consult.test.ts ui/src/ui/realtime-talk-webrtc.test.ts ui/src/ui/realtime-talk-google-live.test.ts ui/src/ui/realtime-talk-gateway-relay.test.ts src/gateway/talk-realtime-relay.test.ts
    • git diff --check

Evidence after fix:

  • WebUI gateway RPC was live after the earlier provider config/auth repair:
    • 2026-05-19T09:17:36.345-04:00 res ok talk.client.create 1098ms
    • 2026-05-19T09:23:15.903-04:00 res ok talk.client.toolCall 71ms
    • 2026-05-19T09:23:55.788-04:00 res ok talk.client.toolCall 53ms
    • The gateway log does not contain the browser-owned WebRTC/Google Live client-side speech UX details, so this PR relies on focused WebUI tests for those client-owned transports.
  • Discord VC real run, consult start, and active-run control:
    • 2026-05-19T11:41:39.071-04:00 discord voice: realtime bridge starting mode=bidi provider=openai model=gpt-realtime-2 voice=cedar consultPolicy=always toolPolicy=owner autoRespond=true interruptResponse=true bargeIn=true
    • 2026-05-19T11:42:13.392-04:00 discord voice: realtime consult requested call=<redacted> voiceSession=agent:aiden:discord:channel:<redacted> supervisorSession=agent:aiden:discord:channel:<redacted> agent=aiden question=Look into the OpenClaw changes ...
    • 2026-05-19T11:42:25.260-04:00 discord voice: realtime active-run control handled mode=steer ok=true active=true reason=none ...
    • 2026-05-19T11:42:32.491-04:00 discord voice: realtime active-run control handled mode=status ok=true active=true reason=none ...
    • 2026-05-19T11:42:41.008-04:00 discord voice: realtime active-run control handled mode=cancel ok=true active=true reason=none ...
    • 2026-05-19T11:42:41.336-04:00 discord voice: realtime consult answer (0 chars) ...
    • 2026-05-19T11:42:41.819-04:00 discord voice: realtime assistant transcript (34 chars): Cancelled the active OpenClaw run.
    • 2026-05-19T11:42:44.405-04:00 discord voice: realtime assistant transcript (71 chars): All set. The run’s cancelled and nothing else is in progress right now.
  • Second Discord VC cancel run:
    • 2026-05-19T11:26:20.798-04:00 discord voice: realtime consult requested call=<redacted> ...
    • 2026-05-19T11:26:25.776-04:00 discord voice: realtime active-run control handled mode=cancel ok=true active=true reason=none ...
    • 2026-05-19T11:26:25.856-04:00 discord voice: realtime model interrupt confirmed server:response.done status=cancelled {"type":"cancelled","reason":"client_cancelled"}
    • 2026-05-19T11:26:26.083-04:00 discord voice: realtime consult answer (0 chars) ...
    • 2026-05-19T11:26:27.015-04:00 discord voice: realtime assistant transcript (34 chars): Cancelled the active OpenClaw run.
  • Aggregate log counts from the same file:
    • active-run control handled mode=steer ok=true active=true: 7
    • active-run control handled mode=status ok=true active=true: 3
    • active-run control handled mode=cancel ok=true active=true: 4
    • model interrupt confirmed server:response.done status=cancelled: 16
    • consult answer (0 chars): 4
    • Cancelled the active OpenClaw run: 4
  • Focused validation passed after review fixes: 16 test files, 241 tests.

Observed result after fix: Discord VC logs show a real active consult accepted steer/status/cancel control while active, cancel interrupted the realtime provider response, the consult returned no stale answer after cancel, and the caller received spoken cancellation/idle acknowledgements. WebUI client-owned transports are covered by focused tests and local manual testing, but the gateway file log only proves session/tool-call RPC activity for that path.

What was not tested: A full pnpm build, full pnpm check, and full test suite were not run in this session. No fresh live WebUI/Discord VC run was repeated after the final branch cleanup; the PR uses the live log evidence captured during branch testing plus focused automated tests on the final clean branch.

Verification

  • node scripts/run-vitest.mjs src/talk/agent-consult-tool.test.ts src/talk/agent-run-control.test.ts src/gateway/protocol/index.test.ts src/gateway/talk-realtime-relay.test.ts src/gateway/server-methods/talk.test.ts ui/src/ui/realtime-talk-consult.test.ts ui/src/ui/realtime-talk-webrtc.test.ts ui/src/ui/realtime-talk-google-live.test.ts ui/src/ui/realtime-talk-gateway-relay.test.ts extensions/discord/src/voice/manager.e2e.test.ts extensions/google-meet/src/voice-call-gateway.test.ts extensions/voice-call/src/runtime.test.ts extensions/voice-call/src/webhook/realtime-handler.test.ts
  • git diff --check
  • scanned the committed diff for personal paths, Crabbox config, auth stores, SSH key paths, and common token patterns; no matches

Copilot AI review requested due to automatic review settings May 19, 2026 16:54
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord app: web-ui App: web-ui gateway Gateway runtime size: XL triage: mock-only-proof Candidate: PR proof only shows tests, mocks, snapshots, lint, typecheck, or CI. labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

Latest ClawSweeper review: 2026-05-24 00:20 UTC / May 23, 2026, 8:20 PM ET.

Workflow note: Future ClawSweeper reviews update this same comment in place.

How this review workflow works
  • 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.

PR Surface
Source +63, Tests +158, Docs +6. Total +227 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 69 6 +63
Tests 4 159 1 +158
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 234 7 +227

Summary
The PR adds a provider action field for realtime openclaw_agent_consult, maps status/cancel/steer/followup actions to native chat commands, documents the behavior, and adds focused tests plus small waitForIdle/test typing cleanups.

Reproducibility: yes. for the review finding: source inspection of the PR head shows the exported args type now requires action while docs and tool schema keep it optional. No live runtime repro was run because this review is read-only.

PR rating
Overall: 🧂 unranked krab
Proof: 🦪 silver shellfish
Patch quality: 🧂 unranked krab
Summary: The PR has useful focused tests, but stale proof and a blocking public SDK compatibility issue keep it below merge-ready quality.

Rank-up moves:

  • Make action optional or split parsed args from public input args, and export action values/types through openclaw/plugin-sdk/realtime-voice if they are public.
  • Refresh redacted current-head runtime proof for WebUI or Discord VC status/cancel/steer/followup after the final branch cleanup.
  • Add or keep focused compatibility coverage for omitted action plus every advertised action.
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

Real behavior proof
Needs stronger real behavior proof before merge: The PR body includes live logs, but they are stale relative to later force-pushes and the body says no fresh live WebUI/Discord VC run was repeated after final branch cleanup; refresh redacted logs, terminal output, or a recording for this head before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Mantis proof suggestion
A short visible Control UI realtime voice proof would materially help confirm the current-head active consult control behavior after the contract repair. A maintainer can ask Mantis to capture proof by posting a new PR comment that starts with the OpenClaw Mantis account mention, followed by:

visual task: verify Control UI realtime voice can request status, cancel, and steer during an active consult without stale spoken output.

Risk before merge

  • The PR makes action required in a public SDK args type while docs/schema say it can be omitted, so existing TypeScript plugin/provider code may fail to compile on upgrade.
  • Voice actions now route provider tool calls into native session commands such as /stop and /steer, so incorrect or stale active-run state can cancel, steer, or suppress the wrong voice interaction.
  • The supplied live logs appear to come from an earlier broader branch; maintainers do not yet have current-head real behavior proof after the final force-pushes.

Maintainer options:

  1. Repair Contract And Refresh Proof (recommended)
    Preserve omitted-action SDK compatibility, export any public action symbols through the realtime-voice SDK, add focused compatibility coverage, and refresh redacted current-head runtime proof before merge.
  2. Accept Required Action After Owner Approval
    A realtime voice or plugin SDK owner can explicitly accept the required args-shape change, but the PR should document the upgrade behavior and still refresh proof.
  3. Pause If Tool Actions Are Not The API
    If maintainers do not want active-run control encoded in openclaw_agent_consult, pause this PR and choose a narrower gateway/session API direction first.

Next step before merge
Human/contributor follow-up is needed because the code repair is small but the real behavior proof must be refreshed in a real voice setup and the SDK API direction may need owner approval.

Security
Cleared: No concrete security or supply-chain regression was found; the diff does not touch dependencies, CI, package resolution, secrets, or privileged install/build paths.

Review findings

  • [P1] Keep consult action optional in the SDK args — src/talk/agent-consult-tool.ts:25
Review details

Best possible solution:

Keep the single consult-tool direction, but make action a compatible optional SDK extension or split parsed args from public input args, export the action values deliberately, and refresh current-head real behavior proof before merge.

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

Yes for the review finding: source inspection of the PR head shows the exported args type now requires action while docs and tool schema keep it optional. No live runtime repro was run because this review is read-only.

Is this the best way to solve the issue?

No, not yet. Reusing the existing consult tool is plausible, but the public SDK contract should stay compatible and current-head voice behavior proof needs to be refreshed before merge.

Label changes:

  • add rating: 🧂 unranked krab: Current PR rating is 🧂 unranked krab because proof is 🦪 silver shellfish, patch quality is 🧂 unranked krab, and The PR has useful focused tests, but stale proof and a blocking public SDK compatibility issue keep it below merge-ready quality.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded realtime Talk improvement with normal priority, but it touches provider-visible behavior and public SDK types.
  • merge-risk: 🚨 compatibility: The diff changes the exported realtime consult args shape in a public plugin SDK subpath.
  • merge-risk: 🚨 message-delivery: Provider tool-call actions are translated into chat commands, so a bad mapping could suppress or misroute spoken follow-up behavior.
  • merge-risk: 🚨 session-state: The new actions can steer or cancel an active embedded run, making stale or wrong session association merge-critical.
  • rating: 🧂 unranked krab: Current PR rating is 🧂 unranked krab because proof is 🦪 silver shellfish, patch quality is 🧂 unranked krab, and The PR has useful focused tests, but stale proof and a blocking public SDK compatibility issue keep it below merge-ready quality.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body includes live logs, but they are stale relative to later force-pushes and the body says no fresh live WebUI/Discord VC run was repeated after final branch cleanup; refresh redacted logs, terminal output, or a recording for this head before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Full review comments:

  • [P1] Keep consult action optional in the SDK args — src/talk/agent-consult-tool.ts:25
    This exported type is re-exported through openclaw/plugin-sdk/realtime-voice, so making action required breaks existing plugin/provider code that constructs { question, context, responseStyle }, even though the schema and docs still say action may be omitted. Keep the public input shape compatible, or split the normalized parsed type from the SDK args and export any new action values deliberately.
    Confidence: 0.88

Overall correctness: patch is incorrect
Overall confidence: 0.82

What I checked:

  • PR head changes exported args shape: The PR head changes RealtimeVoiceAgentConsultArgs so action is required, even though the tool schema still only requires question. (src/talk/agent-consult-tool.ts:25, a8fd93962d49)
  • Public SDK subpath re-exports the args type: openclaw/plugin-sdk/realtime-voice re-exports RealtimeVoiceAgentConsultArgs, so making action required can break TypeScript plugin callers that construct the old { question, context, responseStyle } shape. (src/plugin-sdk/realtime-voice.ts:67, cd102efb701a)
  • Package export makes realtime-voice a public SDK entrypoint: The package exports ./plugin-sdk/realtime-voice with generated type declarations, confirming this is a public plugin-facing contract. (package.json:1009, fa39bef3893d)
  • Docs say action can be omitted: The PR documentation says normal delegation may omit action, which conflicts with the required property in the exported args type. Public docs: docs/nodes/talk.md. (docs/nodes/talk.md:25, a8fd93962d49)
  • Focused tests cover routing but not SDK compatibility: The new tests cover action-to-command routing, but they do not lock the public SDK compatibility path where action is omitted by a typed caller. (src/gateway/server-methods/talk.test.ts:1107, a8fd93962d49)
  • Proof is stale against final head: The PR body supplies logs from May 19, but it also says no fresh live WebUI/Discord VC run was repeated after final branch cleanup; the latest timeline shows multiple force-pushes after the earlier proof labels changed. (a8fd93962d49)

Likely related people:

  • steipete: Peter Steinberger authored the current-main commit that introduced the realtime consult helper, relay, and public realtime-voice SDK barrel now being changed. (role: recent area contributor; confidence: high; commits: cd102efb701a; files: src/talk/agent-consult-tool.ts, src/plugin-sdk/realtime-voice.ts, src/gateway/talk-realtime-relay.ts)
  • VACInc: The related merged realtime Talk stabilization PR changed the same consult and relay surfaces and is linked in this PR's timeline as adjacent work. (role: related feature contributor; confidence: medium; commits: 683ad75b3191; files: src/gateway/talk-realtime-relay.ts, src/talk/agent-consult-tool.ts, ui/src/ui/chat/realtime-talk-gateway-relay.ts)
  • Jason (Json): A recent current-main Discord voice consult diagnostics fix touched the adjacent realtime voice consult path, making this person a useful secondary routing candidate for voice-call behavior. (role: recent adjacent contributor; confidence: medium; commits: f603fa58fec7; files: extensions/discord/src/voice/realtime.ts, extensions/discord/src/voice/manager.e2e.test.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against fa39bef3893d.

@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: mock-only-proof Candidate: PR proof only shows tests, mocks, snapshots, lint, typecheck, or CI. labels May 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a unified “active-run control” path for realtime voice calls so callers can request status, cancel, steer, or queue follow-ups while an embedded tool-backed run is still active (across browser-owned realtime, gateway relay, and Discord VC).

Changes:

  • Add new gateway methods (talk.client.steer, talk.session.steer) plus protocol schemas/tests for structured control results.
  • Introduce shared run-control logic (src/talk/agent-run-control*) and wire it into browser realtime transports, gateway relay, and Discord voice flows.
  • Add focused tests across UI transports, gateway relay, protocol validation, and Discord VC.

Reviewed changes

Copilot reviewed 39 out of 39 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui/src/ui/realtime-talk-webrtc.test.ts Adds WebRTC transport coverage for active-run control speech/interrupt behavior and control tool calls.
ui/src/ui/realtime-talk-google-live.test.ts Adds Google Live transport coverage for active-run control speech/interrupt behavior.
ui/src/ui/realtime-talk-gateway-relay.test.ts Ensures relay tool results are treated as terminal for consult calls (prevents double tool results).
ui/src/ui/realtime-talk-consult.test.ts Adds tests for emitting tool progress, abort result submission, and steering routing/speech behavior.
ui/src/ui/chat/realtime-talk-webrtc.ts Adds auto-control detection + control speech injection and response-create deferral logic for OpenAI WebRTC.
ui/src/ui/chat/realtime-talk-shared.ts Adds shared browser helpers for steering/control tool handling + emits tool progress from chat tool events.
ui/src/ui/chat/realtime-talk-shared.browser-import.test.ts Guards that browser bundle imports shared run-control helpers (not heavier runtime).
ui/src/ui/chat/realtime-talk-google-live.ts Adds auto-control detection + control speech injection and control tool handling for Google Live.
ui/src/ui/chat/realtime-talk-gateway-relay.ts Tracks consult calls by callId; treats server toolResult as terminal and prevents double submitToolResult.
src/talk/agent-run-control.ts Implements core active-run control (status/cancel/steer/followup) against embedded runs + re-exports shared helpers.
src/talk/agent-run-control.test.ts Adds unit tests for classification, tool arg parsing, status sources, cancel/steer/followup outcomes.
src/talk/agent-run-control-shared.ts Adds shared classification, tool schema, status formatting, and result builders for run control.
src/talk/agent-consult-tool.ts Exposes the new control tool alongside the consult tool under non-none policies.
src/talk/agent-consult-tool.test.ts Updates tool policy tests to include the control tool.
src/talk/agent-consult-runtime.test.ts Updates runtime tool exposure tests to include the control tool.
src/plugin-sdk/realtime-voice.ts Exports run-control APIs/types via plugin SDK.
src/gateway/talk-realtime-relay.ts Adds relay-side steering path, tracks active tool calls, broadcasts toolProgress, and submits provider cancel results.
src/gateway/talk-realtime-relay.test.ts Adds tests for linked run clearing, steering progress emission, and cancel provider result submission.
src/gateway/server-methods/talk.test.ts Adds handler tests for talk.client.steer and talk.session.steer routing/validation.
src/gateway/server-methods/talk-shared.ts Updates default realtime instructions to reference the new control tool and steer endpoints.
src/gateway/server-methods/talk-session.ts Adds talk.session.steer and includes control tool when creating realtime sessions.
src/gateway/server-methods/talk-client.ts Adds talk.client.steer and includes control tool for client-owned realtime sessions.
src/gateway/server-methods-list.test.ts Ensures new methods appear in the method listing.
src/gateway/protocol/schema/types.ts Adds exported schema types for steer params and agent control result.
src/gateway/protocol/schema/protocol-schemas.ts Registers new steer params and control result schemas.
src/gateway/protocol/schema/channels.ts Defines steer params schemas and the structured control result schema.
src/gateway/protocol/index.ts Adds validators/exports for steer params and agent control result.
src/gateway/protocol/index.test.ts Adds validation tests for steer params and structured control results.
src/gateway/methods/core-descriptors.ts Registers new gateway methods for scope resolution.
src/gateway/method-scopes.test.ts Adds scope tests for the new methods.
extensions/discord/src/voice/segment.ts Routes STT/TTS voice segments through active-run control before starting a new agent turn.
extensions/discord/src/voice/realtime.ts Adds realtime VC active-run control tool handling, transcript routing, and duplicate control speech suppression.
extensions/discord/src/voice/manager.e2e.test.ts Adds e2e coverage for Discord VC active-run control + consult preamble interruption.
extensions/discord/src/voice/agent-control.ts Introduces shared Discord helper for deciding whether to handle a transcript as active-run control.
docs/web/control-ui.md Documents steer endpoints for realtime Talk control.
docs/plugins/sdk-migration.md Documents new steer endpoint and plugin-sdk realtime-voice capability update.
docs/nodes/talk.md Documents steer semantics and structured rejections.
docs/gateway/protocol.md Documents talk.session.steer and talk.client.steer.
docs/channels/discord.md Documents Discord VC transcript classification for status/cancel/steer/followup while a run is active.

Comment thread src/talk/agent-run-control-shared.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa0eac8309

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gateway/talk-realtime-relay.ts Resolved
@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. labels May 19, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 19, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. 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 May 19, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 19, 2026
@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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels May 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: signal Channel integration: signal gateway Gateway runtime plugin: meeting-notes labels May 24, 2026
@scoootscooob
scoootscooob force-pushed the s/voice-active-run-control branch from cfec255 to 2288fdb Compare May 24, 2026 00:06
@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 May 24, 2026
@steipete
steipete force-pushed the s/voice-active-run-control branch from a8fd939 to 1c3f666 Compare May 24, 2026 01:29
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord app: android App: android app: ios App: ios app: web-ui App: web-ui size: XL and removed channel: matrix Channel integration: matrix channel: signal Channel integration: signal size: M labels May 24, 2026
@steipete

Copy link
Copy Markdown
Contributor

Verification for maintainer merge:

Behavior addressed: realtime Talk/WebUI/Discord voice callers can ask for active OpenClaw run status, cancel an active run, steer it, or queue follow-up work while the consult is still running. Gateway relay cancellation now avoids synthetic forced-consult provider submits and ignores stale duplicate native final submits.
Real environment tested: local macOS checkout plus Blacksmith Testbox and GitHub PR CI.
Exact steps or command run after this patch:

  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
  • node scripts/run-vitest.mjs src/talk/agent-consult-tool.test.ts src/talk/agent-run-control.test.ts src/gateway/protocol/index.test.ts src/gateway/server-methods-list.test.ts src/gateway/method-scopes.test.ts src/gateway/talk-realtime-relay.test.ts src/gateway/server-methods/talk.test.ts
  • node scripts/run-vitest.mjs ui/src/ui/realtime-talk-consult.test.ts ui/src/ui/realtime-talk-webrtc.test.ts ui/src/ui/realtime-talk-google-live.test.ts ui/src/ui/realtime-talk-gateway-relay.test.ts
  • node scripts/run-vitest.mjs extensions/discord/src/voice/agent-control.test.ts extensions/discord/src/voice/manager.e2e.test.ts extensions/google-meet/src/voice-call-gateway.test.ts extensions/voice-call/src/webhook/realtime-handler.test.ts
  • node scripts/run-vitest.mjs extensions/voice-call/src/runtime.test.ts
  • pnpm build
  • git diff --check origin/main...HEAD
  • pnpm check:changed
    Evidence after fix: autoreview clean; focused local tests passed 13 files / 406 tests, 4 files / 41 tests, 4 files / 40 tests, and 1 file / 15 tests; build passed; diff whitespace check passed; Testbox tbx_01ksbse3zq3tkrrjfan05f35ax passed with exit 0; PR CI merge state is CLEAN.
    Observed result after fix: active-run control methods are registered and routed, relay/native cancellation is idempotent, synthetic forced-consult calls are not submitted to providers, and the classifier no longer swallows commands like “update the docs too” as status.
    What was not tested: no manual live realtime provider voice call was run locally; local Android compile was blocked by missing ANDROID_HOME, but PR CI android-build-play, android-test-play, android-test-third-party, macos-swift, and macos-node passed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c3f666a18

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +571 to +575
.catch((error: unknown) => {
emit(
{ relaySessionId, type: "error", message: formatError(error) },
{
type: "session.error",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Forward transcript when relay steering call fails

When auto-control intercepts a user transcript, this branch always returns, so a failure in steerTalkRealtimeRelayAgentRun(...) drops the utterance entirely. In the .catch(...) path we only emit a session.error event and never fall back to bridge.sendUserMessage(question), which means transient steering errors (RPC failure, runtime rejection, etc.) can cause user speech to be swallowed instead of handled normally.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: web-ui App: web-ui channel: discord Channel integration: discord docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants