Repository navigation
Description
Problem
A Talk agent consult started from the Gateway (the server realtime relay, run ids talk-realtime-relay-consult-*, and direct browser consults) does not run on the chat's configured runtime.
- If the chat's model runs on a CLI runtime (for example
anthropic/claude-sonnet-5-5withagentRuntime: { id: "claude-cli" }and only a Claude CLI subscription login), typed messages in that chat work. A voice consult in the same chat fails withNo API key found for provider anthropic, which surfaces as a "saved login looks expired" style message. The login is fine. - If the chat's model selection is locked to a native harness (for example Codex), the voice consult is refused with
Model selection is locked for this session.
The browser talk.client.toolCall path is not affected, because it already submits an internal chat.send.
Cause
src/gateway/talk/client-agent-runtime.ts admits the consult and then calls the embedded runner (runEmbeddedAgent) directly. A typed turn goes through the agent command owner (agentCommandFromGatewayIngress → runAgentAttempt), which picks the Claude CLI backend, the native harness or the embedded runner for the session's model. Talk bypasses that selection, so it reaches the direct provider API. For locked sessions, src/talk/agent-consult-runtime.ts refuses up front because the embedded path cannot keep the native binding.
Expected
A voice consult is a turn of the same chat: the same runtime, owner, sender and tool permissions as a typed message.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Nov 15, 2026
Codex review: this still needs some work.
Summary
Current main still bypasses session runtime selection for Gateway Talk consults and rejects locked sessions; the same author’s open closing PR requires keeping this issue open.
Reproducibility: Current source establishes embedded-only Gateway dispatch and unconditional locked-session rejection; existing tests assert the latter, and the earlier overlapping report supplies an official affected version, but no live reproduction was run.
Next step
Review #199379 alongside the overlapping CLI repair, requiring successful authenticated CLI and locked-harness voice consults before resolving this issue.
Review details
Best possible solution:
Gateway Talk should delegate execution to the existing session runtime owner while preserving Talk admission, transcript custody, cancellation, and caller authority.
Do we have a high-confidence way to reproduce the issue?
Current source establishes embedded-only Gateway dispatch and unconditional locked-session rejection; existing tests assert the latter, and the earlier overlapping report supplies an official affected version, but no live reproduction was run.
Is this the best way to solve the issue?
Reusing the ordinary turn owner fits the runtime contract better than adding provider credentials or another Talk-specific dispatcher; the locked-session guard must remain effective until execution preserves the pinned binding.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 78d3696be484.
Label changes
Label changes:
clawsweeper:no-new-fix-pr: Current issue advisory state no longer selects this label.clawsweeper:linked-pr-open: Current issue advisory state no longer selects this label.Label justifications:
P2: Voice consultations fail for CLI-backed or model-locked chats, with typed messages still available as a workaround.impact:auth-provider: The consult bypasses configured runtime routing and requests direct provider credentials or refuses a pinned runtime.Evidence reviewed
What I checked:
src/gateway/talk/client-agent-runtime.ts:165, 78d3696be484)src/talk/agent-consult-runtime.ts:99, 78d3696be484)src/agents/command/attempt-execution.ts:203, 78d3696be484)src/talk/agent-consult-runtime.test.ts:334, 78d3696be484)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 14, 2026, 9:12 PM ET / November 15, 2026, 02:12 UTC.