Skip to content

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

Description

@Marvinthebored

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-5 with agentRuntime: { id: "claude-cli" } and only a Claude CLI subscription login), typed messages in that chat work. A voice consult in the same chat fails with No 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.

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    P2
    clawsweeper:linked-pr-open
    clawsweeper:no-new-fix-pr
    clawsweeper:source-repro
    impact:auth-provider
    issue-rating: 🦞 diamond lobster
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-repro
    on Nov 15, 2026
  2. clawsweeper commented on Nov 15, 2026

    @clawsweeper
    Contributor

    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:

    • Successful authenticated voice consults through both CLI and pinned native runtimes remain unverified in this review and are not established by the linked draft PR’s reported mocked execution.

    Codex review notes: model internal, reasoning medium; reviewed against 78d3696be484.

    Label changes

    Label changes:

    • remove clawsweeper:no-new-fix-pr: Current issue advisory state no longer selects this label.
    • remove 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:

    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; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 14, 2026, 9:12 PM ET / November 15, 2026, 02:12 UTC.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:linked-pr-openclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:auth-providerissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions