Repository navigation
fix(talk): honor CLI model routing in browser calls - #164229
ZengWen-DT wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesBrowser Talk consultations reuse normal agent runtime selection and model fallbacks while preserving consultation lifecycle ownership. Example: Talk uses anthropic/claude-sonnet-4 configured with agentRuntime.id=claude-cli and no Anthropic API key.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR: it addresses a current Talk routing bug, and the earlier terminal-event defect is fixed; GitHub still reports a merge conflict. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherBrowser Talk delegates requests to a Gateway consultation runner, which admits agent work and returns a speakable result to the realtime provider. flowchart LR
A[Browser Talk] --> B[Gateway consultation]
B --> C[Admitted turn owner]
C --> D[Candidate runtime selection]
D --> E[CLI backend]
D --> F[Embedded runtime]
E --> G[Owned terminal result]
F --> G
Technical reviewBest possible solution: Keep browser consultations on the canonical admitted candidate owner while preserving current-main authority, cancellation and transcript contracts. Do we have a high-confidence way to reproduce the issue? Current-main browser dispatch and independent affected-release traces establish the CLI-routing and missing-fallback failure; no target code was executed during this review. Is this the best way to solve the issue? Reusing the admitted turn and per-candidate runtime owners addresses the cause without another configuration option or competing fallback loop. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a9033d5d662c. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authorization bypass was found, but final-effect enforcement remains unproven for the newly reachable CLI path. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +401, Tests +538, Other -4. Total +935 across 18 files. Added test files: 2. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (7 earlier review cycles)
Reviewed October 16, 2026, 11:08 PM ET / October 17, 2026, 03:08 UTC (Revision 8). |
f030ba8 to
2ca3895
Compare
|
Landing review for the requested squash merge found one additional lifecycle defect in the submitted head The local correction moves preflight under the existing terminal owner; it adds no production lines and no alternate error-handling path. Extended the existing routing test rather than adding a parallel harness.
Correction LOC: production +21/-21 (net 0); tests +26/-10 (net +16). Original PR: production +515/-112 (net +403); tests/support +531/-77 (net +454). The adapter reuses admitted routing/settlement owners while retaining Talk transcript, permission, and cancellation custody. Landing review and correction work session ProvenancePR by Wynne668 (@ZengWen-DT), account created 2026-06-05; OpenClaw last-12-month activity: 206 PRs, 1 issue, 109 commits. Public contribution graph: 121 commits, 207 PRs, 1 issue, 0 reviews. Report by Rollo (@scarabone), account created 2016-12-13. The original direct browser dispatch was introduced by code author and PR author/merger @steipete in #134003, commit Landing statusThe correction is committed locally, not pushed or merged. The full canonical build passed. An exact upstream-only budget repair from The native correction publication gate is now blocked by repository-wide
The first four failures independently reproduce with the normal repository oxlint configuration on current main Testbox never allocated a runner; its stopped wrapper also reported proxy authentication failure during cleanup. Both task-owned leases were stopped. Local native validation was used instead; its retained operation lock has been recovered after process completion. Finishing publication requires resolving the unrelated lint failures or a supported maintainer decision on that broader scope; the original PR remains open at its existing head. |
2ca3895 to
e7cfae3
Compare
|
Independent verification of this PR composed with #164771 (both backported onto v2026.9.8), in case it helps the landing review. Setup. Isolated gateway from a release package with this PR + #164771 applied. Real
The third row is an execution trace for the issue's open fallback question. On stock, Talk calls the single-candidate Two small deltas needed when both PRs are in one tree
selection: { /* … */ requestedRouteResolution: params.requestedRouteResolution, /* … */ },
// …
resolveRuntimeOverride: (provider) =>
resolveSessionRuntimeOverrideForProvider({ provider, entry: sessionEntry, cfg: params.config }) ??
(provider === selection.provider ? params.agentHarnessRuntimeOverride : undefined),Regression cases on the combined tree (each composition case fails without its line):
One more backport note: #164771's new storage tests mock Not covered: microphone/WebRTC audio, GPT-Live's own delegation decision, and steering or interruption against a live CLI turn. |
|
Correction to my immediately preceding production-client comment: I now have a correlated Gateway trace for that exact Oct 16 Android call. For this particular Play-app failure, #164229's runtime-routing path is not reached. Talk selected device session The installed/current-main Talk consultation code checks session work-start/archive state before it generates the consult run ID or invokes I filed the complete correlated trace as #175027 and updated #131768. Please do not treat my earlier 2026.10.30 observation as evidence that #164229 fixes this specific captured failure. #164229 still appears to address the separate established Talk runtime/fallback-routing defect; this trace simply establishes that the Oct 16 production failure occurs one layer earlier. |
|
Hi @ZengWen-DT, thanks for this PR. We were working on the same symptom (#161885) from the shared consult-runtime side. We've decided not to open a competing PR, because this one is the better owner for browser Talk. While building ours, repeated independent review kept finding the same class of problem on the CLI route. We're passing it on in case it helps when you take this out of draft, or helps landing review. The risk class. When a consult that would have run on the embedded runner goes to a CLI backend instead, the CLI runner re-derives tool policy from the params it receives. Forwarding a field doesn't preserve what it means. In several cases the CLI side read the same input more permissively than the embedded runner does, so the final CLI tool catalog included a tool the embedded run would not have built. None of these executed a tool. They are catalog and availability differences, compared on real catalogs, not on forwarded fields. Counterexamples we reproduced (against our own handover design, on a newer
These three were still open when we stopped. Each was reproduced through the real CLI runtime-policy owner, MCP grant builder and loopback catalog, and compared with the real embedded tool construction and final allow filter:
Suggested invariant. For every CLI-routed Talk turn:
Compare the real final catalogs on both sides, not forwarded fields and not the initial selection. The new routing test asserts forwarded fields ( We're happy to write A–C as Vitest cases against |
|
@Digital-Pulse-Home Thanks for sharing the concrete counterexamples and for coordinating the overlapping work. A test-only patch or branch for A–C would be welcome; please include the exact base SHA and the final embedded/CLI catalogs, with I am checking those cases against current main while refreshing this draft. Please keep catalog comparison, execution availability, and ingress reachability distinct, and include any session-recorded capability state that affects B. I will not treat results from your handover branch as proof for this PR. The refresh also needs the existing final-effect checks: an allowed read, a forbidden write for |
|
Thanks @ZengWen-DT. Here's the test-only patch for A–C: one new file, Base: Owners exercised. The embedded side runs Layers. (i) catalog is the final listed names. (ii) execution is listed tools whose
Session-recorded state (B). Listing caps come from the session entry's C. The grant's Ingress (static, unverified). Limits. Patch (git format-patch, applies to main @ e9fcf00)From c050022c8fd5ee9c138663c81cff756b65803a38 Mon Sep 17 00:00:00 2001
From: Digital-Pulse-Home <[email protected]>
Date: Wed, 11 Nov 2026 15:19:50 +0800
Subject: [PATCH] test(cli-runner): CLI-routed consult catalog parity rows A-C
(#161885)
---
.../prepare.talk-catalog-parity.test.ts | 318 ++++++++++++++++++
1 file changed, 318 insertions(+)
create mode 100644 src/agents/cli-runner/prepare.talk-catalog-parity.test.ts
diff --git a/src/agents/cli-runner/prepare.talk-catalog-parity.test.ts b/src/agents/cli-runner/prepare.talk-catalog-parity.test.ts
new file mode 100644
index 00000000000..a7854e8a189
--- /dev/null
+++ b/src/agents/cli-runner/prepare.talk-catalog-parity.test.ts
@@ -0,0 +1,318 @@
+// Regression rows for #161885 / #164229: a consult that would have run on the embedded
+// runner and is routed to a CLI backend must not expose a tool the embedded run would not
+// have built. Each row compares the real final catalogs on both sides for the same params:
+// embedded: buildEmbeddedAttemptToolRunContext -> createOpenClawCodingToolsInternalAsync
+// (filterToolsByClientCaps, apply_patch allowModels) -> applyEmbeddedAttemptToolsAllow
+// CLI: prepareCliRunContext (resolveCliRuntimeToolPolicy, buildCliMcpGrantContext)
+// -> minted loopback grant -> resolveMcpLoopbackScopedTools (tools/list + tools/call)
+import { expectDefined } from "@openclaw/normalization-core";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import {
+ clearRuntimeConfigSnapshot,
+ setRuntimeConfigSnapshot,
+} from "../../config/runtime-snapshot.js";
+import { replaceSessionEntrySync } from "../../config/sessions/session-accessor.js";
+import type { OpenClawConfig } from "../../config/types.openclaw.js";
+import {
+ resolveMcpLoopbackPolicyTools,
+ resolveMcpLoopbackScopedTools,
+} from "../../gateway/mcp-http.runtime.js";
+import type { CliBackendPlugin } from "../../plugins/cli-backend.types.js";
+import { loadBundledPluginFacade } from "../../test-utils/bundled-plugin-public-surface.js";
+import { isAgentToolExecutionAvailable } from "../agent-tool-availability.js";
+import { createOpenClawCodingToolsInternalAsync } from "../agent-tools.async.js";
+import { testing as cliBackendsTesting } from "../cli-backends.test-support.js";
+import { createCliRunnerPrepareFixture } from "../cli-runner.test-helpers.js";
+import {
+ applyEmbeddedAttemptToolsAllow,
+ resolveEmbeddedAttemptToolConstructionPlan,
+} from "../embedded-agent-runner/run/attempt-tool-construction-plan.js";
+import { buildEmbeddedAttemptToolRunContext } from "../embedded-agent-runner/run/attempt-tool-run-context.js";
+import { attachToolAllowlistIntersection } from "../tool-policy.js";
+import { mockCliMcpPreparation } from "./prepare-mcp.test-support.js";
+import { prepareCliRunContext } from "./prepare.js";
+import { resetCliRunnerPrepareTestDeps } from "./prepare.test-support.js";
+import type { RunCliAgentParams } from "./types.js";
+
+const { buildAnthropicCliBackend } = await loadBundledPluginFacade<{
+ buildAnthropicCliBackend: () => CliBackendPlugin;
+}>({ pluginId: "anthropic", artifactBasename: "api.js" });
+
+// mock-isolation: Tool construction must not reach a live Gateway for node or computer status.
+vi.mock("../tools/gateway.js", () => ({
+ callGatewayTool: async (method: string) => {
+ if (method === "node.list") {
+ return { nodes: [] };
+ }
+ if (method === "computer.status") {
+ return { configured: false, available: false };
+ }
+ throw new Error(`Unexpected Gateway I/O: ${method}`);
+ },
+}));
+
+const CLI_PROVIDER = "claude-cli";
+const LOGICAL_PROVIDER = "anthropic";
+const MODEL = "fixture-model";
+
+type Catalog = { listed: string[]; executable: string[] };
+type Row = {
+ config?: OpenClawConfig["tools"];
+ toolsAllow: () => string[];
+ clientCaps?: string[];
+ sessionClientCapabilities?: string[];
+ /** Omit to model a caller that forwards only the CLI execution provider. */
+ modelProvider?: string;
+};
+
+type ProbeTool = {
+ name: string;
+ execute: (id: string, args: unknown, signal?: AbortSignal) => unknown;
+};
+
+/**
+ * Execution availability is separate from listing: a listed tool can still be gated for this
+ * turn. Probe with empty args, which every probed tool rejects during argument validation
+ * before any I/O; only a gate refusal counts as unavailable.
+ */
+async function isGated(tool: ProbeTool): Promise<boolean> {
+ if (!isAgentToolExecutionAvailable(tool)) {
+ return true;
+ }
+ try {
+ const result = (await tool.execute("parity-probe", {}, new AbortController().signal)) as {
+ details?: { gated?: unknown };
+ };
+ return result?.details?.gated === true;
+ } catch {
+ return false;
+ }
+}
+
+async function catalogOf(tools: readonly ProbeTool[]): Promise<Catalog> {
+ const listed = tools.map((tool) => tool.name).toSorted();
+ const executable: string[] = [];
+ for (const tool of tools) {
+ if (!(await isGated(tool))) {
+ executable.push(tool.name);
+ }
+ }
+ return { listed, executable: executable.toSorted() };
+}
+
+let fixture: ReturnType<typeof createCliRunnerPrepareFixture>;
+let mintGrant: ReturnType<typeof mockCliMcpPreparation>["mint"];
+
+beforeEach(() => {
+ vi.clearAllMocks();
+ cliBackendsTesting.setDepsForTest({
+ resolvePluginSetupCliBackend: () => undefined,
+ resolveRuntimeCliBackends: () => [{ ...buildAnthropicCliBackend(), pluginId: "anthropic" }],
+ });
+ ({ mint: mintGrant } = mockCliMcpPreparation({
+ resolveMcpLoopbackPolicyTools,
+ resolveMcpLoopbackScopedTools,
+ }));
+ fixture = createCliRunnerPrepareFixture((params) =>
+ prepareCliRunContext({ skillsSnapshot: { prompt: "", skills: [] }, ...params }),
+ );
+});
+afterEach(async () => {
+ clearRuntimeConfigSnapshot();
+ resetCliRunnerPrepareTestDeps();
+ cliBackendsTesting.resetDepsForTest();
+ await fixture.cleanup();
+});
+
+function rowConfig(row: Row): OpenClawConfig {
+ return { plugins: { enabled: false }, tools: { ...row.config } };
+}
+
+/** Real embedded construction and final allow filter, with the logical model provider. */
+async function embeddedCatalog(row: Row): Promise<Catalog> {
+ const { dir, sessionTarget } = fixture.session;
+ const config = rowConfig(row);
+ const toolRunContext = buildEmbeddedAttemptToolRunContext({
+ clientCaps: row.clientCaps,
+ senderIsOwner: true,
+ toolsAllow: row.toolsAllow(),
+ model: { provider: LOGICAL_PROVIDER, id: MODEL },
+ sessionId: sessionTarget.sessionId,
+ sessionKey: sessionTarget.sessionKey,
+ });
+ const plan = resolveEmbeddedAttemptToolConstructionPlan({
+ toolsAllow: toolRunContext.runtimeToolAllowlist,
+ });
+ const tools = await createOpenClawCodingToolsInternalAsync({
+ ...toolRunContext,
+ config,
+ agentId: sessionTarget.agentId,
+ sessionKey: sessionTarget.sessionKey,
+ runSessionKey: sessionTarget.sessionKey,
+ sessionId: sessionTarget.sessionId,
+ runId: "run-embedded",
+ messageProvider: "webchat",
+ messageChannel: "webchat",
+ modelProvider: LOGICAL_PROVIDER,
+ modelId: MODEL,
+ workspaceDir: dir,
+ cwd: dir,
+ toolConstructionPlan: plan.codingToolConstructionPlan,
+ });
+ return await catalogOf(applyEmbeddedAttemptToolsAllow(tools, plan.runtimeToolAllowlist));
+}
+
+/** Real CLI preparation, minted grant and loopback catalog for the same params. */
+async function cliCatalog(row: Row): Promise<Catalog & { grantToolsAllow?: string[] }> {
+ const config = rowConfig(row);
+ const { sessionTarget } = fixture.session;
+ const params: Partial<RunCliAgentParams> = {
+ provider: CLI_PROVIDER,
+ ...(row.modelProvider ? { modelProvider: row.modelProvider } : {}),
+ model: MODEL,
+ config,
+ senderIsOwner: true,
+ sessionKey: sessionTarget.sessionKey,
+ agentId: sessionTarget.agentId,
+ messageProvider: "webchat",
+ messageChannel: "webchat",
+ toolsAllow: row.toolsAllow(),
+ ...(row.clientCaps ? { clientCaps: row.clientCaps } : {}),
+ };
+ const { preparedBackend } = await fixture.prepare(params);
+ try {
+ const grant = expectDefined(mintGrant.mock.calls.at(-1)?.[0]?.context, "loopback grant");
+ const { tools } = await resolveMcpLoopbackScopedTools({
+ cfg: config,
+ context: grant,
+ isGrantCurrent: () => true,
+ });
+ return { ...(await catalogOf(tools)), grantToolsAllow: grant.toolsAllow };
+ } finally {
+ await preparedBackend.cleanup?.();
+ }
+}
+
+async function compare(label: string, row: Row) {
+ // Both sides read the same live runtime config, as a Gateway-hosted consult does.
+ setRuntimeConfigSnapshot(rowConfig(row));
+ if (row.sessionClientCapabilities) {
+ const { sessionTarget } = fixture.session;
+ replaceSessionEntrySync(sessionTarget, {
+ sessionId: sessionTarget.sessionId,
+ updatedAt: 0,
+ clientCapabilities: row.sessionClientCapabilities,
+ });
+ }
+ const embedded = await embeddedCatalog(row);
+ const cli = await cliCatalog(row);
+ const listedDiff = cli.listed.filter((name) => !embedded.listed.includes(name));
+ const executableDiff = cli.executable.filter((name) => !embedded.executable.includes(name));
+ // Printed so a reviewer can read the final catalogs, not only the verdict.
+ console.log(
+ `[talk-catalog-parity] ${label} ${JSON.stringify({
+ embedded,
+ cli,
+ cliMinusEmbedded: { listed: listedDiff, executable: executableDiff },
+ })}`,
+ );
+ return { embedded, cli, listedDiff, executableDiff };
+}
+
+describe("CLI-routed consult catalog stays within the embedded catalog (#161885)", () => {
+ // A: apply_patch.allowModels names the CLI execution provider; the embedded run checks the
+ // logical model provider, so apply_patch must stay absent when the caller forwards it.
+ const rowA: Row = {
+ config: {
+ exec: { applyPatch: { enabled: true, allowModels: [`${CLI_PROVIDER}/${MODEL}`] } },
+ },
+ toolsAllow: () => ["read", "apply_patch"],
+ modelProvider: LOGICAL_PROVIDER,
+ };
+
+ it("A: allowModels qualified with the CLI provider does not add apply_patch", async () => {
+ const result = await compare("A", rowA);
+ expect(result.embedded.listed).toContain("read");
+ expect(result.cli.listed).toContain("read");
+ expect(result.embedded.listed).not.toContain("apply_patch");
+ expect(result.listedDiff).toEqual([]);
+ expect(result.executableDiff).toEqual([]);
+ });
+
+ it("A control: the comparison detects apply_patch when modelProvider is not forwarded", async () => {
+ const result = await compare("A-control", { ...rowA, modelProvider: undefined });
+ expect(result.embedded.listed).toContain("read");
+ expect(result.cli.listed).toContain("read");
+ // Pins the mechanism the row guards: without modelProvider the CLI side matches.
+ expect(result.listedDiff).toEqual(["apply_patch"]);
+ });
+
+ // B: whitespace in clientCaps. The embedded listing filter uses exact Set membership; the
+ // CLI grant builder trims. Session-recorded clientCapabilities take precedence on both sides.
+ const rowB: Row = {
+ toolsAllow: () => ["read", "screen"],
+ clientCaps: [" ui-commands "],
+ modelProvider: LOGICAL_PROVIDER,
+ };
+
+ it("B positive control: screen is listed on both sides for an exact ui-commands cap", async () => {
+ const result = await compare("B-positive", { ...rowB, clientCaps: ["ui-commands"] });
+ expect(result.embedded.listed).toEqual(expect.arrayContaining(["read", "screen"]));
+ expect(result.cli.listed).toEqual(expect.arrayContaining(["read", "screen"]));
+ expect(result.listedDiff).toEqual([]);
+ });
+
+ it("B1: untrimmed run clientCaps with no session-recorded capabilities", async () => {
+ const result = await compare("B1", rowB);
+ expect(result.embedded.listed).toContain("read");
+ expect(result.cli.listed).toContain("read");
+ expect(result.embedded.listed).not.toContain("screen");
+ expect(result.listedDiff).toEqual([]);
+ expect(result.executableDiff).toEqual([]);
+ });
+
+ it("B2: session-recorded untrimmed capabilities govern listing on both sides", async () => {
+ const result = await compare("B2", {
+ ...rowB,
+ sessionClientCapabilities: [" ui-commands "],
+ });
+ expect(result.embedded.listed).toContain("read");
+ expect(result.cli.listed).toContain("read");
+ expect(result.listedDiff).toEqual([]);
+ expect(result.executableDiff).toEqual([]);
+ });
+
+ it("B3: session-recorded exact capability with untrimmed run caps", async () => {
+ const result = await compare("B3", {
+ ...rowB,
+ sessionClientCapabilities: ["ui-commands"],
+ });
+ expect(result.embedded.listed).toContain("read");
+ expect(result.cli.listed).toContain("read");
+ expect(result.listedDiff).toEqual([]);
+ expect(result.executableDiff).toEqual([]);
+ });
+
+ // C: an attached allowlist intersection is honoured by the embedded final filter.
+ it("C positive control: web_fetch is listed on both sides without an attached restriction", async () => {
+ const result = await compare("C-positive", {
+ toolsAllow: () => ["read", "web_fetch"],
+ modelProvider: LOGICAL_PROVIDER,
+ });
+ expect(result.embedded.listed).toEqual(expect.arrayContaining(["read", "web_fetch"]));
+ expect(result.cli.listed).toEqual(expect.arrayContaining(["read", "web_fetch"]));
+ expect(result.listedDiff).toEqual([]);
+ });
+
+ it("C: an attached [[read]] restriction keeps web_fetch out of the CLI catalog", async () => {
+ const result = await compare("C", {
+ toolsAllow: () => attachToolAllowlistIntersection(["read", "web_fetch"], [["read"]]),
+ modelProvider: LOGICAL_PROVIDER,
+ });
+ expect(result.embedded.listed).toContain("read");
+ expect(result.cli.listed).toContain("read");
+ expect(result.embedded.listed).not.toContain("web_fetch");
+ expect(result.listedDiff).toEqual([]);
+ expect(result.executableDiff).toEqual([]);
+ });
+});
--
2.56.0
|
|
Quick status from our side, in case it's useful for prioritising: we're still affected on 2026.11.3 (browser/iOS Talk consults routed through The A–C regression rows above still apply to current |
Use the admitted turn and CLI candidate owners for browser Talk, applying hook-resolved routes before runtime selection and retaining source authority, continuity, cancellation and terminal settlement across model fallback. Preserve canonical steering and joined replacement for non-steerable CLIs. Related: openclaw#161885
e7cfae3 to
e08988c
Compare
|
@Digital-Pulse-Home Thanks for the follow-up and the A–C cases. The branch is now refreshed on current main at e08988c594b, with the merge conflicts resolved, and the PR is ready for review. The refresh keeps logical Four existing native cancel-then-new-request tests also fail on unmodified main with the same no-answer result; those failures are recorded separately, with their assertions retained. Successful authenticated Claude CLI after-proof and exact-head CI are still pending. |
|
Thanks for picking this up. The CLI routing gap in #161885 is real, and this fixes it for Talk. A question on direction: this moves Talk off the shared Most of If you agree with that direction, would you mind if we contributed a patch against this branch for it (base SHA, run commands and results included)? Happy to keep it scoped however suits you, or to wait until this lands and follow up separately. |
|
Follow-up to my earlier comment: I opened #202209 for the plugin side. It adds an opt-in |
|
Thanks @hannnnn-l, and for splitting it out. Keeping the shared-runtime work in #202209 and leaving this PR's Talk path alone seems like the right shape to us: Talk can land now, and Voice Call / meeting-bot / FaceTime get the From the user side: we run Talk on a |
Related: #161885
What Problem This Solves
Browser Talk consults routed through
claude-clirequest a direct Anthropic API key and fail before trying the configured fallback.User Impact
Browser/native GPT-Live consultations use the selected model's runtime and configured fallback chain while retaining the caller's existing authority, cancellation, session continuity and terminal ownership. No configuration or public SDK changes are required. Meeting, voice-call and FaceTime consultation paths are unchanged.
Why This Change Was Made
Refreshed against
mainatdab3fcdf8edd36df38144a961f8330fcbede872eto resolve the stale branch's conflicts. Talk now uses the existing admitted turn and CLI-candidate owners, with one admission and transcript recorder across candidates. Hook-resolved routes are applied before runtime selection. Steering uses the admitted session operation; a live CLI without injection support uses the provider's existing joined replacement flow.The refresh preserves main's exact source/Gateway binding and terminal-write draining. It removes the browser's direct embedded-only dispatch and the redundant Talk-side steering projection. Existing consumer fixtures move to the dispatcher boundary, preserving their permission, source, final-effect and lifecycle assertions.
Evidence
Published head:
e08988c594b.main9bf3e79c823reached a delegated consultation, then recordedmissing-provider-authfor Anthropic despite the configuredclaude-cliruntime; fallback was not attempted. Audio input was synthetic; the browser, Gateway and service were real.maindab3fcdf(all four fail in the baseline run, 92.52 seconds). Running those scenarios through the actual Talk adapter produces the same four failures; they are not counted as passing. Exact-head hosted CI and its CI seconds are pending.dab3fcdf, through P2:scoped-clean, no accepted/actionable findings. Production source is unchanged since that review; the subsequent native real-runner fixture now invokes the Talk adapter. The earlier hook-routing finding was fixed and covered by the red/green tests above. The model-lock suggestion was declined against the existing Talk owner's explicit rejection contract and tests insrc/talk/agent-consult-runtime.ts:99andsrc/talk/agent-consult-runtime.test.ts:334.Remaining validation and follow-ups
Inherited validation failure: native cancellation followed by a fresh delegated consultation returns the no-answer fallback in four existing tests. This reproduces on unmodified
mainas well as this candidate; underlying product-versus-fixture cause remains unconfirmed. It is recorded as follow-up, without weakening the assertions.A successful authenticated Claude CLI after-run remains unverified because the local Claude CLI is logged out. No live CLI allowed-read/forbidden-write result is claimed. The ClawSweeper rank-up request for those final effects remains outstanding; retained-callback rejection has focused controller-boundary coverage, not a live Claude tool-call claim. Ready is a review state, not a claim that these proof gaps or required CI are cleared.
The shared CLI catalog concerns B/C remain named follow-up work: this refresh forwards the logical
modelProvider(A), but does not include the separate shared capability/intersection-policy patch or claim those catalog cases fixed.Earlier proof artifacts remain historical evidence for their recorded revisions; they do not validate this refreshed head. The refreshed full build and remaining platform/live checks are pending exact-head CI or follow-up validation.
AI-assisted: yes. Changes and recorded observations were reviewed directly.