Skip to content

fix(talk): voice consults fail when the chat runs on Claude CLI or a locked native harness - #199379

Merged
roboclaw-bot merged 31 commits into
openclaw:mainfrom
Marvinthebored:fix/talk-consult-cli-auth
Nov 26, 2026
Merged

roboclaw-bot merged 31 commits into
openclaw:mainfrom
Marvinthebored:fix/talk-consult-cli-auth

Conversation

@Marvinthebored

@Marvinthebored Marvinthebored commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #199378

What Problem This Solves

Fixes: Talk voice consults fail with No API key found for provider anthropic when the chat's model runs on Claude CLI, or Model selection is locked when the chat uses a locked native harness, although typed messages work.

User Impact

User impact: Gateway voice consults use the same chat runtime, owner, sender, and tool permissions as typed messages, including Claude CLI and locked Codex. Plugin and channel voice bridges are unchanged.

Why This Change Was Made

Key tenets for review:

  • Route through agentCommandFromGatewayIngress, not the embedded provider runner. Keep exact-source acquisition, controller-input custody, operator authority, operational-instance binding, and terminal-write draining. The command inherits the Talk claim; no second input is reserved.
  • Forward owner, sender, tool caps/bindings, client capabilities, approval reviewer, elevated defaults, and source assertion. Reject provider/model overrides. Abort closes delegated authority immediately.
  • Borrow the published Gateway reply runtime, with command-owned loading when no owner is published. Preserve locked native runtime selection only for this Gateway path; plugin bridges retain their refusal.
  • Treat configured consult thinking as a supported preference, matching fix: Talk falls back to a supported thinking level instead of failing #194184. Use per-run thinking without changing persisted chat preferences; explicit unsupported user thinking still fails.
  • Prepare the agent workspace with typed-turn bootstrap policy so a first voice turn does not falsely report a vanished workspace. Forward session workspace/cwd pins.
  • Consume the settled command owner's visible terminal result, including CLI completions without embedded receipts. Reject recorded errors, error stop reasons, aborts, replaced voice ownership, and stale lifecycle results.
  • Retain private ReplyPayload metadata during projection without changing wire shape or speaking preceding queued answers twice.

Deliberate behavior changes: revoked callers receive the typed-turn delivery-fence rejection rather than model text. Gateway voice consults receive ordinary command-owned model and usage bookkeeping.

Existing test fixtures now mock the command-owner seam, clear workspace attestations when deleting test workspaces, inspect the exec-session pin, and wait for actual backend/finalization boundaries. The test-line allocation covers real-Gateway regressions.

Evidence

Inherited session model — 7933c796f91f

Addresses the review finding on the previous head. Before leasing a runtime, Talk now uses the same Gateway session-model lookup as compaction. It reads a parent selection when the child has no model of its own; a genuinely missing selection still returns the standard no-model error.

The Gateway regression seeds a parent-only Claude CLI model and no agent default, then checks the model and child session at CLI dispatch and the text returned by the consult. CI selected the regression suite and the CI gate passed. The regression uses a stand-in for the CLI process. The same test failed with “No model is configured” when the previous dispatch code was restored.

  • Exact-head live Talk: A child chat created with only a parent key inherited the Claude CLI model. The exec tool returned five top-level Markdown files; the finalized voice transcript said “Five Markdown files at the top level.” A separate locked native Codex chat executed a tool returning the same count; its finalized transcript said “There are five Markdown files in the top level.” Both probes exited 0, captured nonempty PCM audio, and the native runtime lock remained set.
  • Stable upgrade: Started published v2026.11.10 and saved a 1789 ms Talk silence timeout and parent/child sessions. The exact-head build on the same scratch state retained both session IDs, labels, resolved model/runtime, parent linkage, child thinking setting, and Talk timeout. The migrated fixture could not start an xAI relay because xAI was not configured there. The successful live consults ran separately and do not establish post-upgrade voice execution.

Previous review head — ad8d7b5c999e

Updated the CLI steering fixture to match the backend contract, removed duplicated lease-test setup without raising the test-line allowance, and changed the mailbox test to wait for actual backend entry. Formatting, syntax and whitespace checks passed for the final fixture correction. CI for this head is in progress as of the review request; the live voice probes below are historical.

November 25 CI repair — 5f7f141e070c

The published dispatch now reports the standard no-model error before acquiring a model lease. A regression checks that the dispatch lease is released and the command does not start. Talk forwards the caller’s prepared owner flag unchanged and invokes the optional source check only when supplied. The real-command Talk fixtures now configure a chat model separately from their realtime voice provider; they still exercise the command and their original assertions.

All eight changed files passed formatting, syntax, and whitespace checks. Static Auto Review reported no P0 finding on the full candidate; it did not execute the tests. CI for this exact head is the behavioral and typecheck run. No new live speech probe is claimed.

Previous November 25 refresh — 92c41288094b

Integrated main at 08a2c5513181. Both conflicts were in tests: the upstream runner fixture already checks that closing or replacing admission prevents dispatch, so the PR keeps that fixture unchanged. The database-worker test list keeps all upstream entries and adds the four Talk tests; all four exist and are registered exactly once.

The published tree matches the inspected candidate. All 30 changed TypeScript/JavaScript files parsed; git diff --check passed. Auto Review compared the full candidate with 08a2c5513181 and reported no P0 findings (static review, not a full-priority review). CI on this head failed. Production type checks found that dispatch dereferences a possibly absent session model and calls an optional source-authority callback unconditionally. The authority check rejects the Talk adapter deriving senderIsOwner outside admission. Talk terminal-write tests also fail before reaching their assertions because their fixture has no configured model. These failures on the previous head prompted the CI repair above. The earlier Claude CLI and locked Codex speech probes below were not rerun on this head.

Historical candidate (November 19): routing fix only; thinking unchanged from main

  • Exact head 17db728: Build exited 0 in 3m20.7s. Both candidate-only saved-auth Talk probes exited 0 and verified real workspace tool results of five. Claude CLI finalized “There are five: AGENTS, BOOTSTRAP, IDENTITY, SOUL, and USER.” Locked native Codex finalized “There are five Markdown files at the top level.” Both saved nonempty PCM (1,560,946 and 1,635,826 bytes). In-memory diagnostic tracing showed one command-completion callback and successful completion claim per probe (current and completed), each followed by a speakable provider append. CLI deletion/archive and native lock-preserving archival were verified; supervisors self-unloaded. This is standard relay/API and saved-audio evidence, not a new yield, rendered UI, phone, or live-compaction proof.

  • Yielded CLI consultations (review P1): a yielded command settlement now completes through the existing command-owned claim, so a Claude CLI consult that calls sessions_yield can settle its acknowledgment and retain late-result ownership. Exact spoken acknowledgment delivery remains unverified in the live yield probe below. Abort, error, terminal-receipt and current-owner fences are unchanged. RED reproduced on 000cbff with the real Gateway command controller, then GREEN. A real-command embedded-yield regression checks one acknowledgment, one claim and one late append, so there is no double delivery.

  • Thinking: unchanged from main. Voice consults use talk.consultThinkingLevel, else high, for every runtime, exactly as on main. The command owner only normalizes that level to what the selected runtime supports. Earlier revisions of this PR changed this default; that is reverted (no owner decision is needed).

  • Focused suite 111/111 passed on 8a0563d (the mock-only matrix was replaced by one bridge regression); scoped type-aware lint exit 0. Exact-head build passed, exit 0 in 3m51.5s.

  • Fresh 8a0563d saved-auth diagnostic live probes: Claude CLI executed a real workspace count/list returning 5 (AGENTS.md, BOOTSTRAP.md, IDENTITY.md, SOUL.md, USER.md); finalized provider speech: “There are five Markdown files at the top level: AGENTS, BOOTSTRAP, IDENTITY, SOUL, and USER.” Locked native Codex / gpt-6.1-sol executed a real count returning 5; finalized speech: “There are five Markdown files at the top level of my workspace.” Both exit 0; PCM 1,671,346 / 1,731,826 bytes. CLI deletion/archive receipt and native supported archival/history were verified; native runtime/model locks remained set and no active run remained.

  • These two probes used in-memory diagnostic harness instrumentation, not an uninstrumented binary: each recorded command completion, claimAppend with current=true, completed=true, and a speakable provider append. No tracked source or built files were edited. Saved Settings auth was used in place; no login, credential import, downgrade, production change, or deployment. Supervisors self-unloaded. The earlier b34992b standard CLI attempt remains inconclusive, not an established dropped-result regression.

  • Separate historical b34992b yielded-CLI probe: real sessions_spawn and sessions_yield returned yielded status with stored acknowledgment “CLI yield ack”; requester-final later reported five. Exact spoken acknowledgment delivery is not proven: “I hear you” preceded the yield. Speech initially said four before requester-final arrived, then corrected: “Correction: the child agent finished with five Markdown files.” The deleted child’s underlying tool output remains unverified. This is not exact-head yielded acceptance or proof of faithful initial speech. Raw transcripts, detailed traces, and audio remain private.

  • Historical yielded CLI consult (8a0563d, diagnostic tracing): the acknowledgment reached the provider append exactly once (providerAppend {"channel":"speakable","text":"yield ack"}, preceded by claimAppend {"current":true,"completed":true}), and the late result reached it exactly once: "clean yield late result: the child counted 5 top-level markdown files … The exact child tool output, from ls -1 *.md; echo "---"; ls -1 *.md | wc -l, was: AGENTS.md, BOOTSTRAP.md, IDENTITY.md, SOUL.md, USER.md, then a line of three dashes, then 5." There was no duplicate append. Limits: the realtime model spoke a guessed count before the late result arrived, then spoke the delivered result; the child ran with cleanup=delete, so its tool output is shown as relayed in the late result, not read from the deleted child's history.

  • Data-model compatibility from latest stable 2026.11.5 (auth-free): a clean 2026.11.5 install was seeded, with no model calls, with a model-locked native Codex session (modelSelectionLocked/runtimeSelectionLocked true), a chat with thinkingLevel: low, and Talk settings (consultThinkingLevel: medium, silenceTimeoutMs: 1789). It was then stopped, and candidate 8a0563d started on the same state. Every seeded field (session keys, ids, lifecycle revisions, model/provider, both lock flags, thinking level, Talk settings) read back identical (equal: true). The only difference is the runtime capability descriptor the candidate reports (cloud/device placement support), which is expected and is not persisted session data. No login, credential, or production change.

  • Retained-child yield follow-up (8a0563d): actual spawn used cleanup=keep; supported child chat.history directly retained the real exec call (ls -1 *.md) and its five-file output (AGENTS.md, BOOTSTRAP.md, IDENTITY.md, SOUL.md, USER.md). Diagnostic tracing recorded exactly one CLI YIELD ACK provider append after claimAppend current=true, completed=true, and exactly one late-result provider append reporting five. Probe exited 0; supervisors self-unloaded. This closes the deleted-child evidence gap, not faithful initial speech: realtime speech still guessed before correcting to five. Raw history/audio remain private.

Historical merged candidate — 000cbff (November 19)

  • Merged upstream main 5724f95. The eight-file focused suite passed 101/101. Official scoped type-aware lint exited 0; six tracked targets absent from the sparse checkout were skipped, so this is not full-repository lint coverage. Exact candidate build passed in 4m33s. UI CSS/request budgets still print nonfatal warnings; no budget-compliance claim.
  • Retains upstream's admitted-effect contract: a native effect already admitted before device/source revocation completes; the next consult is rejected. Exact embedded operational-instance checks before steering and at effect admission remain intact. Real-controller foreign/stale-owner and CLI foreign-source/signal cases pass unchanged; repeated authority projections remain policy revalidation, not duplicate delivery.
  • Fresh saved-auth Claude CLI and catalog-locked native Codex voice probes both exited 0 on this merged build. Each executed a real tool counting/listing the same five top-level Markdown files and finalized matching spoken count “five.” CLI PCM: 1,626,226 bytes; native PCM: 1,672,306 bytes. Native model/runtime locks were retained through supported archival. The native bash execution and its exec wrapper represent one effect, not two independent executions.
  • Candidate-only TEST supervisor stopped cleanly and self-unloaded after proof. No downgrade, login, credential copying/import, production deployment, or merge. Raw transcripts and audio remain private. This is relay/API speech evidence, not rendered UI/phone or live-compaction acceptance.

Previous integrated candidate — fde8d50 (historical)

  • Merged main 0eabe33. Focused eight-file suite: 101/101 passed; official scoped type-aware lint: exit 0; exact candidate build: exit 0. UI CSS/request budget warnings remain advisory failures, not passing budget evidence.
  • Real-controller tests exposed a pre-existing foreign embedded-owner steering gap that the earlier mocked-controller proof/review missed. The guarded pre-merge run reproduced it. Embedded steering now checks the exact admitted operational instance before dispatch and at effect time. CLI retains its source/operation ownership; the real CLI foreign-source/signal case rejects without native writes.
  • Repeated authority projections are policy revalidation, not repeated delivery. Tests check every projection against current authority and retain exact one-effect assertions (zero effects for rejected owners).
  • Saved-auth live speech on Peter's signed-in TEST Gateway: Claude CLI executed a real workspace count/list tool and finalized “five” with AGENTS, BOOTSTRAP, IDENTITY, SOUL, USER. Catalog-locked native Codex executed a real count and finalized “five.” Both exit 0; PCM 1,631,026 / 1,674,226 bytes. Native model/runtime lock verified before and after; supported archive and archived history verified. “Five” is the file count, not five tool executions.
  • Candidate migrated test state to 2026.11.5. Per operator decision, restored healthy instance on the candidate, not a downgrade to 2026.11.3: readiness 200, saved OpenAI profile status OK, original main model/fallbacks and all Talk settings equal baseline. Bounded supervisor stops cleanly after its TTL. No login, credential import/copying, production deployment, or version-guard bypass.
  • Earlier wrong-entry exit-1 speech attempt is excluded. These are relay/API and saved-audio proofs, not rendered phone/UI or live compaction acceptance. Raw transcripts, auth status and audio remain private.

Historical evidence below — not current-candidate acceptance

Historical repair: 6f7f68c

  • Resolve follow-up readiness from the exact admitted controller operation, not an embedded registration. Use the shared controller steering path, including its fresh caller-policy projection and source-bound final-write checks. Keep cancellation, lifecycle, operation replacement, and one-shot speech checks.
  • Advance the production relay registration only when its exact retained RPC source carries the committed successor. The consultation and relay now agree about which session owns completion.
  • Original 00b6ce70 production code fails two focused regressions: supported CLI follow-up is refused, and the real composed relay cannot claim the successor answer. Patched source passes 44/44 scoped tests. The CLI regression uses real CLI turn admission, tool-policy binding, backend attachment, and steered-transcript custody; the permitted input reaches one native write before claiming the first answer. The relay regression composes the actual consultation runner with the production registration, rather than a boolean stand-in. The command's compaction callback and CLI subprocess are simulated; no live-compaction claim.
  • Scoped official type-aware lint PASS; exact runtime build PASS in 77.2 seconds, with build-info commit matching this head. Worker import budgets remain 203/220 and 67/100.
  • Actual current-head Claude CLI and catalog-locked native Codex each executed real tools returning 5, then finalized matching provider speech. Saved PCM: 1,524,466 and 1,592,626 bytes. CLI session deletion and native lock-preserving archival verified; original test code, full model/fallbacks, and Talk settings independently restored.
  • Immutable sanitized regression, build, speech, and restoration proof. Saved Settings authorization was used in place; the test environment imported no envbundle or credentials.
  • Native Codex voice was proven on the candidate (in-place on an upgraded instance), not on a fresh stable install; the stable→candidate migration is covered by the 15 Nov proof.

Historical successor-only repair: 00b6ce7

  • Follow the command owner's committed successor after foreground compaction. Advance the exact retained RPC source, exec-request identity, and consultation completion owner; correlate receipts with that successor. Keep same-source, operational-run, lifecycle, abort, replacement, and one-shot checks.
  • Regression on the previous adapter/consult failed (expected speech claim true, actual false); the fixed successor/source/current-owner matrix plus real Gateway runtime siblings passed 13/13. The callback regression models the command's committed transition; it does not execute live compaction.
  • Scoped type-aware lint and format/diff checks passed. Exact repair pnpm build:runtime passed, exit 0 in 80.3 seconds, with nice 15 and capped workers. Worker budgets unchanged: 203/220, 67/100. Artifact hashes and clean tracked source recorded.

Immutable sanitized repair runtime and speech proof

  • Actual repaired-head CLI exec and catalog-locked native Codex bash each returned 5 and produced matching finalized provider speech, with saved nonempty PCM (1,430,386 and 1,528,306 bytes). Native lock verified before/after; supported archival verified.
  • Both completed exit 0. Native first attempt ended on a provider stream error; the retained, bounded retry passed. Original test instance restored, readiness 200 verified, complete saved model/fallbacks and Talk settings unchanged. Saved Settings auth used only in place. No credential copying or production changes.

Native Codex voice was proven on the candidate (in-place on an upgraded instance), not on a fresh stable install; the stable→candidate migration is covered by the 15 Nov proof.

Historical exact-head proof: 1614464

Immutable sanitized runtime and speech proof

  • pnpm build:runtime passed, exit 0 in 133.2 seconds, with independently owned frozen dependencies, nice 15, capped native workers, and serial tsdown. Git HEAD, build metadata, and artifact hashes agree; tracked source remained unchanged. Worker budgets passed unchanged: identity 203/220, catalog 67/100. No unrelated worker-GC patch was applied. This is runtime-profile build proof, not a separate package-profile build or full CI.
  • Authenticated OpenAI realtime relay consulted the exact-head Claude CLI chat. A real tool counted 5 top-level Markdown files; the provider finalized the matching spoken answer. Saved PCM: 1,631,986 bytes, SHA256 d2f442a25920ac3148b1567a53896995b9ab5a469527a45778a9796a77da9ced. Exit 0; voice closed and temporary session deleted.
  • Catalog-locked Codex independently reported runtimeSelectionLocked=true. Its typed baseline completed; the voice consult's settled native receipt recorded successful bash, and the provider finalized “Five Markdown files in the top level.” Saved PCM: 1,541,746 bytes, SHA256 c785d9c604851b845ea6c8ff1abeaf1072737fd3c2712cd4d3032a8dc1b96f97. Exit 0; supported archival verified inactive with the lock retained.
  • Raw logs, final transcripts, tool/terminal evidence, PCM bytes/hashes, and runtime artifact hashes were independently checked against the sanitized summary before publication. Raw logs/audio remain private. Original isolated test Gateway restored and readiness 200 verified; main model and fallbacks retained. No production change, credential copying, or deployment.
  • Exact-tree focused runtime/speech tests: 7/7. Targeted direct-answer/history-retention siblings: 2/2; 20 other history cases not selected. Scoped type-aware lint, SDK boundary preparation, formatting, and diff checks passed. Integration adopts upstream hidden-input history semantics while retaining command runtime and completion guards.

Earlier regression and upgrade evidence

  • Completion follow-up source: 366916e675fd3a846b4c36c1140a16dc3ec9c048. Before repair, the CLI completion regression failed; after repair, separate scoped runs passed 29/29 routing/custody/requester-final and 3/3 terminal-write cases. Receipt-present/absent CLI completion, abort, and replacement are covered.
  • Cross-family review found an incomplete CLI settlement could carry visible text. The new real-Gateway regression failed before repair; completion now rejects recorded errors and error stop reasons. The focused 7/7 suite includes this regression. An empty-payload probe was already rejected by the command owner as empty_result; no extra classifier was added.
  • Earlier patched-candidate relay proofs covered Claude CLI, native Codex, and locked Codex. Earlier upgrade proof migrated a clean published 2026.11.3 fixture using offline Doctor (exit 0), retaining session identity/model/runtime and Talk settings, including 1789 ms silence timeout. These older proofs are not exact-head upgrade acceptance.

These are synthetic relay/API, saved-audio, and API/state checks, not rendered UI or phone acceptance. UI compilation completed with advisory budget warnings; no UI performance or layout acceptance is claimed.

CI note (historical): Fork Actions are disabled; existing run 43725447728 is queued with zero jobs. It was not redispatched. Skipped upstream draft jobs and accepted dispatches are not CI proof. No merge or deployment.

AI-assisted. Codex source review found no P0–P2 issues. Independent cross-family review is complete; its confirmed incomplete-settlement finding is repaired below.

Test-line allocation

This PR adds about 1,280 net test lines (allocation record: 880 in config/test-lines-allocations/talk-consult-session-runtime.txt). Most are real-Gateway regressions for routing voice consults through the chat's own command runtime (Claude CLI and the locked native harness): typed-turn handoff authority, the published-runtime lease, command-completion adoption, yielded CLI acknowledgement plus one late result, abort and replaced-voice rejection, and foreign/stale owner fencing through the real session controller. They need a real Gateway and controller, so they cannot collapse into a smaller mocked harness.

Gateway Talk consults (server realtime relay and direct browser consults)
called the embedded runner directly, so a chat whose model runs on a CLI
runtime such as claude-cli answered typed turns but failed voice consults
with "No API key found for provider anthropic", and a chat locked to a
native harness refused them as "Model selection is locked".

The Gateway Talk adapter now hands its admitted turn to the typed-turn
command owner, which selects Claude CLI, the native harness or embedded
exactly as for a typed message, with the same owner, sender, operator and
tool authority. The consult borrows the Gateway's published reply runtime,
leased for the session's model, as a Gateway agent turn does. A configured
consult thinking level is treated as a preference and falls back to a
supported level, matching chat-backed Talk; without one the chat's own
level applies. Plugin and channel voice bridges are unchanged.

AI-assisted (Claude Opus 5.5 via OpenClaw).
@clawsweeper

clawsweeper Bot commented Nov 15, 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 gateway Gateway runtime commands Command implementations agents Agent runtime and tooling size: XL labels Nov 15, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Routes Gateway Talk consultations through the chat’s command runtime while preserving caller permissions and spoken-result ownership.

Example: A child chat inherits anthropic/claude-sonnet-5-5 configured with the claude-cli runtime.

  • Before: Typed messages work, but a voice consultation requests an Anthropic API key or rejects the missing child-level model.
  • After: The consultation inherits the parent’s model, runs through Claude CLI, and returns its answer for speech.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent runtime repair with reported end-to-end results, stable-state preservation, passing head checks, and no blocking findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The exact-head report exercises inherited Claude CLI and locked native Codex consultations through real Talk, with tool results matching finalized speech; inspected historical artifacts support the same production route, while unrelated screenshots and the unavailable recording were excluded.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Voice consultations fail on chats whose CLI or locked native runtime answers typed messages successfully.
Reason: Restoring the chat’s existing runtime removes an owned failure without adding configuration or changing the voice-thinking default.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a current Talk runtime-routing bug, resolves the previous inherited-model finding, and has no identified blocking patch defect.

Reviewed head: 7933c796f91fe4341429d5f99eea43ae7768a6de

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway Talk converts spoken requests into agent consultations; the adapter binds the caller and session, dispatches the agent turn, and returns eligible terminal text to the realtime voice provider.

flowchart LR
  A[Spoken request] --> B[Gateway Talk admission]
  B --> C[Session model and runtime]
  C --> D[Agent command owner]
  D --> E[CLI native or embedded backend]
  E --> F[Owned terminal result]
  F --> G[Realtime speech]
Loading

Technical review

Best possible solution:

Use the existing command owner for Gateway voice turns while retaining plugin-bridge contracts and session-bound speech completion.

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

Current main directly selects embedded execution for Talk consultations, establishing the reported CLI-routing failure path; supplied live reports corroborate it, and no target code was executed during this review.

Is this the best way to solve the issue?

The patch repairs the dispatch boundary using established runtime and controller owners, preserves native bindings and plugin behavior, and reuses compaction’s model-inheritance resolver.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1f630fc07d9e.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main retains the reported failure path: Fetched main still dispatches Gateway consultations directly to runEmbeddedAgent, bypassing the command owner’s CLI runtime selection. (src/gateway/talk/client-agent-runtime.ts:165, 1f630fc07d9e)
  • Command-owner handoff: The introduced adapter calls agentCommandFromGatewayIngress with the existing operational instance, caller authority, tool restrictions, workspace, cancellation signal, and one-run thinking preference. (src/gateway/talk/client-agent-runtime.ts:189, 7933c796f91f)
  • Previous finding resolved: Talk and compaction now share the parent-aware session-model resolver; the Gateway regression exercises a parent-only Claude CLI selection without an agent default. (src/gateway/session-model-for-run.ts:19, 7933c796f91f)
  • Current-head behavior and upgrade evidence: The fully read PR body records exact-head inherited-Claude-CLI and locked-native-Codex consultations executing tools that returned five files, matching finalized speech, nonempty PCM, and retained native locks. Its v2026.11.10 upgrade comparison retains session identities, parent linkage, model/runtime selection, thinking, and the 1789 ms Talk timeout; voice execution occurred separately from that upgrade fixture. (7933c796f91f)
  • Inspected historical live artifact: The immutable voice/STEERING-RELAY-199379.json artifact records actual CLI and locked-Codex tool results, finalized speech, PCM hashes, and restoration for its historical candidate; it supports those recorded scenarios without being presented as current-head proof. (voice/STEERING-RELAY-199379.json, 1c8bc46245b2)
  • Related work does not supersede this PR: fix(talk): honor CLI model routing in browser calls #164229 overlaps browser routing but still records incomplete authenticated CLI validation; fix(voice): answer phone, meeting and FaceTime consults on Claude CLI agents #202209 explicitly leaves Gateway Talk unchanged. NaturalMatchaKing independently reports a successful subscription-OAuth backport, explicitly distinguished from testing this head.

Likely related people:

  • Vincent Koc: Raw commit 5aaf440 adds src/gateway/talk-client-agent-consult.ts:379 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5aaf44006b30; files: src/gateway/talk-client-agent-consult.ts)

PR surface

Source +410, Tests +1309, Other 0. Total +1719 across 36 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 12 546 136 +410
Tests 22 1373 64 +1309
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 3 3 0
Total 36 1922 203 +1719

Preflight source

Source 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

Metric Value Why it matters
Production versus regression coverage Production +546/-136; tests and support +1368/-64 Growth covers runtime handoff, lease disposal, inherited models, CLI steering, yielded results, cancellation, and successor-session speech ownership.

Root-cause cluster

Relationship: same_root_cause
Canonical: #161885
Summary: Gateway Talk bypasses ordinary runtime selection; overlapping browser work and separate plugin-voice work do not provide a safely landable replacement.

Members:

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 auth-provider: Current PR review selected no merge-risk labels.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-15T17:59:46.704Z sha 00b6ce7 :: needs real behavior proof before merge. :: [P1] Resolve CLI steering through the controller backend owner | [P2] Advance the production relay registration to the successor session
  • reviewed 2026-11-15T18:53:57.571Z sha 6f7f68c :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-19T03:23:42.656Z sha fde8d50 :: needs real behavior proof before merge. :: [P1] Preserve completion ownership for yielded CLI consultations
  • reviewed 2026-11-19T03:57:58.717Z sha b34992b :: needs real behavior proof before merge. :: [P2] Limit session-thinking inheritance to Gateway runtime consultations
  • reviewed 2026-11-19T05:18:55.201Z sha 8a0563d :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-19T06:40:00.787Z sha ee8fc39 :: ready, awaiting a maintainer decision. :: none
  • reviewed 2026-11-19T07:05:19.198Z sha 34cd16b :: needs maintainer review before merge. :: none
  • reviewed 2026-11-25T07:10:51.763Z sha ad8d7b5 :: needs real behavior proof before merge. :: [P2] [P2] Resolve inherited model selections before rejecting the consult

Reviewed November 25, 2026, 6:30 AM ET / 11:30 UTC (Revision 11).

@clawsweeper clawsweeper Bot 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. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 15, 2026
@Marvinthebored

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Marvinthebored

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@NaturalMatchaKing

Copy link
Copy Markdown

On OpenClaw 2026.11.6 with GPT‑Live and Codex subscription OAuth, voice delegation failed with Explicit auth order for openai has no usable profiles. A local backport of this PR successfully delegated a spoken request to the same chat and returned the result aloud, without a Platform API key. This verifies the backport, not the PR head as-is.

roboclaw-bot and others added 2 commits November 25, 2026 05:17
Co-authored-by: Marvinthebored <[email protected]>
Worked on by:
- @Marvinthebored

Co-authored-by: Marvinthebored <[email protected]>
OpenClaw-Publication: 908b8da4-bcae-4a40-9d65-44609374fb17
@openclaw-barnacle openclaw-barnacle Bot added the r: too-many-prs Auto-close: author has more than twenty active PRs. label Nov 25, 2026
roboclaw-bot and others added 3 commits November 25, 2026 05:59
Worked on by:
- @Marvinthebored

Co-authored-by: Marvinthebored <[email protected]>
OpenClaw-Publication: a37177ad-8e13-49cd-b271-f3e569737a5f
Worked on by:
- @Marvinthebored

Co-authored-by: Marvinthebored <[email protected]>
OpenClaw-Publication: 324703f3-e9ee-481a-b1da-25e6ee7dd711
Worked on by:
- @Marvinthebored

Co-authored-by: Marvinthebored <[email protected]>
OpenClaw-Publication: f89f0349-d7dc-42b7-994d-2b122a643508
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. 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 Nov 25, 2026
Worked on by:
- @Marvinthebored

Co-authored-by: Marvinthebored <[email protected]>
OpenClaw-Publication: e3e67d1d-ecac-4642-b5d6-8217bf556519
@openclaw-barnacle openclaw-barnacle Bot removed the r: too-many-prs Auto-close: author has more than twenty active PRs. label Nov 25, 2026
@Marvinthebored

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

Talk voice consults fail on Claude CLI and locked native-harness chats that answer typed messages

4 participants