Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Show "Partly done" when the reply came back but a step failed (#4249)
Aditya Umale8b95545c1b70
diff --git a/server/automation-reports.test.ts b/server/automation-reports.test.tsindex cf97160bf3..6cc907b5fb 100644--- a/server/automation-reports.test.ts+++ b/server/automation-reports.test.ts@@ -227,6 +227,20 @@ describe("automation reports", () => {expect(f.notified.map((entry) => entry.threadId)).toEqual([f.main, nowhere.threadId]);});+ it("says a run whose reply came back but a step failed was partly done, not that it didn't finish", () => {+ const f = fixture();+ const partly = f.finished(null, "Inbox brief", { status: "failed", error: "Stopped because the tool call failed.", partial: true });+ f.reports.runFailed(partly, "Stopped because the tool call failed.");+ expect(f.lines()).toEqual([expect.objectContaining({+ text: "This run was partly done: Stopped because the tool call failed.",+ automation: expect.objectContaining({ failed: true, partial: true }),+ })]);+ const broken = f.finished(null, "Other", { status: "failed", error: "Signed out" });+ f.reports.runFailed(broken, "Signed out");+ expect(f.lines()[1]).toMatchObject({ text: "This run didn't finish: Signed out" });+ expect(f.lines()[1]!.automation).not.toHaveProperty("partial");+ });+it("posts one recovered line when a run with nothing new follows a failed run, and stays quiet after that", () => {const f = fixture();const failed = f.finished(null, "Inbox brief", { status: "failed", error: "Timed out" });diff --git a/server/automation-reports.ts b/server/automation-reports.tsindex 4e4bc0f460..209b40dc71 100644--- a/server/automation-reports.ts+++ b/server/automation-reports.ts@@ -50,7 +50,7 @@ export function recoveredText(name: string, at: number, language?: string): stri/** How the chat's own session reads an automation's line: as its own report, named and dated. */export function automationContextText(line: AutomationLine, at: number, text: string): string {- const what = line.failed ? "could not finish" : line.needsYou ? "asked" : line.recovered ? "recovered" : "reported";+ const what = line.partial ? "was partly done" : line.failed ? "could not finish" : line.needsYou ? "asked" : line.recovered ? "recovered" : "reported";return `${fromNote(routineWho(line.name), `run, ${what} at ${localTime(at)}`, AUTHORITY.info)}\n${text}`;}@@ -110,7 +110,7 @@ export function createAutomationReports(deps: AutomationReportDeps) {return bot && task && !task.routineRunId ? { bot, threadId: task.threadId } : null;};- const lineOf = (run: RoutineRun, extra: Pick<AutomationLine, "needsYou" | "failed" | "recovered" | "copyOf">): AutomationLine => ({+ const lineOf = (run: RoutineRun, extra: Pick<AutomationLine, "needsYou" | "failed" | "partial" | "recovered" | "copyOf">): AutomationLine => ({routineId: run.routineId, runId: run.id, name: run.routineName, trigger: run.eventSource ?? run.triggerSource ?? (run.manual ? "manual" : "schedule"),executionThreadId: run.threadId!, scheduledFor: run.scheduledFor, ...extra,});@@ -172,7 +172,7 @@ export function createAutomationReports(deps: AutomationReportDeps) {const source = line.kind === "reply" ? replyOf(run, line.messageId) : undefined;const language = deps.threadLanguage?.(target.threadId);const said: RunReply = line.kind === "reply" ? read(source)- : { quiet: false, text: line.detail ? serverLine(language, "server.runs.didNotFinishWhy", { detail: line.detail }) : serverLine(language, "server.runs.didNotFinish") };+ : { quiet: false, text: line.detail ? serverLine(language, run.partial ? "server.runs.partlyDoneWhy" : "server.runs.didNotFinishWhy", { detail: line.detail }) : serverLine(language, "server.runs.didNotFinish") };const recovered = said.quiet && lastSaidFailed(run, target.threadId);if (said.quiet && !recovered) {deps.routines()?.noteReport(run.id, { state: "quiet" });@@ -182,7 +182,7 @@ export function createAutomationReports(deps: AutomationReportDeps) {const posted = store.appendMessage(target.threadId, {role: "bot", kind: "text", text: reply.text,...(source?.attachments?.length && !recovered ? { attachments: source.attachments } : {}),- automation: lineOf(run, line.kind === "failure" ? { failed: true } : recovered ? { recovered: true } : reply.question ? { needsYou: true } : {}),+ automation: lineOf(run, line.kind === "failure" ? { failed: true, ...(run.partial ? { partial: true as const } : {}) } : recovered ? { recovered: true } : reply.question ? { needsYou: true } : {}),});deps.routines()?.noteReport(run.id, { state: "posted", threadId: target.threadId, messageId: posted.id });deps.wrote(target.bot, target.threadId);diff --git a/server/drivers/openai-chat-tools.test.ts b/server/drivers/openai-chat-tools.test.tsindex e9c94d66c1..588fedd53e 100644--- a/server/drivers/openai-chat-tools.test.ts+++ b/server/drivers/openai-chat-tools.test.ts@@ -220,6 +220,25 @@ describe("bounded action announcement recovery", () => {expect(f.effects()).toEqual([]);});+ it("marks a turn whose final reply came back after a failed step as partly done, and no other stop", async () => {+ const run = async (reply: (response: Parameters<typeof answer>[0]) => void) => {+ const f = await fixture((_body, response, round) => round === 1+ ? sse(response, [chunk({ tool_calls: [toolCall("audit_fail")] }, "tool_calls")])+ : reply(response));+ await f.start({ approvalMode: "full" });+ const completed = await f.completed();+ return { completed, errors: f.recorder.events.filter((event) => event.type === "runtime.error") };+ };+ const done = await run((response) => answer(response, "Here is the summary; one file could not be read."));+ expect(done.completed).toMatchObject({ ok: false, stopReason: "tool_error" });+ expect(done.errors).toEqual([expect.objectContaining({ partial: true, terminal: true, message: expect.stringContaining("Stopped because the tool call") })]);+ // A reply the provider cut off is not a finished one, even after a failed step.+ const cut = await run((response) => sse(response, [chunk({ content: "Here is the sum" }, "length")]));+ expect(cut.completed).toMatchObject({ ok: false, stopReason: "error" });+ expect(cut.errors).toHaveLength(1);+ expect(cut.errors[0]).not.toHaveProperty("partial");+ });+// Whether to run an operation again is the model's call under the engine's own permissions: the nudge only asks it not to.it("leaves a repeated operation after a nudge to the model and the turn's permissions", async () => {const f = await fixture((_body, response, round) => {diff --git a/server/drivers/openai-chat.ts b/server/drivers/openai-chat.tsindex 4ef56271ec..fec49d69df 100644--- a/server/drivers/openai-chat.ts+++ b/server/drivers/openai-chat.ts@@ -893,7 +893,8 @@ export function createOpenAIChatRuntime<Config>(options: RuntimeOptions<Config>)if (failure && (!abort.signal.aborted || cleanupFailed)) {// "upstream" (an OpenAI-compatible URL) names no provider, and the Cloud trial credit reads its raw line.const message = options.httpErrorLabel === "upstream" ? failure : plainFailureMessage(options.httpErrorLabel, failure);- emit({ ...base(turn.threadId, turnId), type: "runtime.error", message, terminal: !abort.signal.aborted });+ const replyShownFirst = stopReason === "tool_error";+ emit({ ...base(turn.threadId, turnId), type: "runtime.error", message, terminal: !abort.signal.aborted, ...(replyShownFirst ? { partial: true } : {}) });}if (!ok && !abort.signal.aborted) {const continuable = classifyContinuable(stopReason, failure);diff --git a/server/routine-recovery.ts b/server/routine-recovery.tsindex 7971f41391..faccdd03e7 100644--- a/server/routine-recovery.ts+++ b/server/routine-recovery.ts@@ -27,6 +27,8 @@ export interface RoutineFailureFacts {limit?: "engine" | "model" | "credits";/** A backup engine takes over from one whose usage limit refused the run, or that is signed out. */backupReady?: boolean;+ /** The turn's reply came back; only a step it ran failed or wasn't allowed (the runtime error's `partial`). */+ partial?: boolean;}export type RoutineFailureClass =@@ -112,8 +114,8 @@ export function retriesTeammateThread(failure: string, facts: RoutineFailureFactreturn classifyRoutineFailure(failure, facts).kind === "retry";}-export function engineFacts({ setup, stalled, trialCredit, limitResetsAt, limit }: RuntimeEvent & { type: "runtime.error" }): RoutineFailureFacts {- return { setup, stalled, trialCredit, limitResetsAt, limit };+export function engineFacts({ setup, stalled, trialCredit, limitResetsAt, limit, partial }: RuntimeEvent & { type: "runtime.error" }): RoutineFailureFacts {+ return { setup, stalled, trialCredit, limitResetsAt, limit, partial };}/** Host-local, with its zone: on a Cloud home the host's zone need not be the reader's. */diff --git a/server/routines.test.ts b/server/routines.test.tsindex df32ef4d9c..ae9bbfdf86 100644--- a/server/routines.test.ts+++ b/server/routines.test.ts@@ -288,6 +288,26 @@ describe("bounded scheduled overlap and run health", () => {await h.manager.tick();});+ it("keeps a run that failed only on a step, after its reply came back, failed but marked partly done", async () => {+ const h = harness(start);+ const routine = h.manager.create({ ...input(), enabled: false });+ const event = (threadId: string, patch: Record<string, unknown>) => h.manager.handleRuntimeEvent({ eventId: `e-${Math.random()}`, provider: "fake", threadId, createdAt: new Date().toISOString(), ...patch } as Parameters<typeof h.manager.handleRuntimeEvent>[0]);+ const attempt = async (threadId: string, partial: boolean, { reply = true, cutOff = false } = {}) => {+ h.manager.runNow(routine.id); await h.manager.tick();+ if (reply) event(threadId, { type: "item.completed", itemType: "assistant_text", itemId: "reply", text: "Here is the summary." });+ event(threadId, { type: "runtime.error", message: "Stopped because the tool call “read_file” failed.", terminal: true, ...(partial ? { partial: true } : {}) });+ if (cutOff) h.manager.failThread(threadId, "Provider settings changed");+ else event(threadId, { type: "turn.completed", ok: false, stopReason: partial ? "tool_error" : "refusal" });+ };+ await attempt("thread-1", true);+ await attempt("thread-2", false);+ await attempt("thread-3", true, { reply: false });+ await attempt("thread-4", true, { cutOff: true });+ const [partly, failed, silent, cutOff] = h.manager.listRuns().sort((a, b) => a.threadId!.localeCompare(b.threadId!));+ expect(partly).toMatchObject({ status: "failed", partial: true, output: "Here is the summary.", error: expect.stringContaining("read_file") });+ expect([failed, silent, cutOff].map((run) => [run.status, run.partial])).toEqual([["failed", undefined], ["failed", undefined], ["queued", undefined]]);+ });+it("tells of a failure once per streak, and again when it changes or after a run completes", async () => {const h = harness(start);const alerts: unknown[] = [];diff --git a/server/routines.ts b/server/routines.tsindex af8eee0fda..1a7d33b9cc 100644--- a/server/routines.ts+++ b/server/routines.ts@@ -126,7 +126,7 @@ export interface RoutineRun {finishedAt?: number;output?: string;attention?: string;- error?: string;+ error?: string; partial?: boolean;cost?: number | null;denials?: string[];report?: RoutineRunReport;@@ -1310,7 +1310,7 @@ export class RoutineManager {if (this.closing) return;const held = facts.limit !== undefined || facts.limitResetsAt !== undefined ? facts.limit ?? "engine" : facts.stopReason === "auth_required" ? "signed-out" : undefined, backupReady = held !== undefined && this.options.limitBackup?.(run.botId, held) === true;const recovery = recoverRun(run, failure, { ...facts, ...(backupReady ? { backupReady } : {}) }, this.now(), this.ownerNotices);- if (!recovery.queued) this.failRun(run, recovery.error, "failed", recovery.alert);+ if (!recovery.queued) this.failRun(Object.assign(run, { partial: (facts.partial && Boolean(run.output)) || undefined }), recovery.error, "failed", recovery.alert);else {this.saveLater();this.emitRun(run);diff --git a/shared/failed-turn.ts b/shared/failed-turn.tsindex eee106d0f2..bf45695175 100644--- a/shared/failed-turn.ts+++ b/shared/failed-turn.ts@@ -23,12 +23,14 @@ export interface FailedTurnTool {place?: PlaceRow;/** epoch ms when the usage limit that stopped this turn resets, when the engine said */limitResetsAt?: number;+ /** the turn's reply came back; only a step it ran failed or wasn't allowed */+ partial?: boolean;}/** The activity row a failed turn is stored as. */export function failedTurnTool(cause: string,- flags: { setup?: boolean; terminal?: boolean; claudeUpdate?: boolean; place?: PlaceRow; limitResetsAt?: number } = {},+ flags: { setup?: boolean; terminal?: boolean; claudeUpdate?: boolean; place?: PlaceRow; limitResetsAt?: number; partial?: boolean } = {},): FailedTurnTool {const words = cause.length > FAILED_TURN_MAX_CHARS ? `${cause.slice(0, FAILED_TURN_MAX_CHARS - 1)}…` : cause;return {@@ -39,6 +41,7 @@ export function failedTurnTool(...(flags.claudeUpdate ? { claudeUpdate: true } : {}),...(flags.place ? { place: flags.place } : {}),...(flags.limitResetsAt ? { limitResetsAt: flags.limitResetsAt } : {}),+ ...(flags.partial ? { partial: true } : {}),};}diff --git a/shared/routine-run.ts b/shared/routine-run.tsindex 61367a6780..e24762e15d 100644--- a/shared/routine-run.ts+++ b/shared/routine-run.ts@@ -36,6 +36,8 @@ export interface AutomationLine {/** The run needs the person: it asked them something or cannot go on without them. */needsYou?: true;failed?: true;+ /** With `failed`: the run's reply came back; only a step it ran failed or wasn't allowed. */+ partial?: true;/** A run that had nothing new, posted only because this automation's line before it in the chat said a run failed. */recovered?: true;/** The card in the run's conversation this line stands for: an option carddiff --git a/shared/routines.ts b/shared/routines.tsindex 3266cbc178..caa337747b 100644--- a/shared/routines.ts+++ b/shared/routines.ts@@ -190,6 +190,8 @@ export interface RoutineRun {finishedAt?: number;output?: string;error?: string;+ /** A failed run whose reply still came back: only a step it ran failed or wasn't allowed. */+ partial?: boolean;/** Set when the run used its one automatic second start, and why. */retried?: RoutineRetryCause;/** Concise, redacted question or approval reason while status is waiting,diff --git a/shared/runtime-events.ts b/shared/runtime-events.tsindex 6bae367626..72c6533479 100644--- a/shared/runtime-events.ts+++ b/shared/runtime-events.ts@@ -191,7 +191,7 @@ export type RuntimeEvent = RuntimeEventBase &// `limitResetsAt`: epoch ms when the usage limit refusing this account resets, when the engine says.// `limit`: a usage limit refused this turn: the account's on this engine ("engine"), one model's own window// ("model"), or that model's extra usage credits ("credits"); the engine's other models still work for the last two.- | { type: "runtime.error"; message: string; setup?: boolean; terminal?: boolean; claudeUpdate?: boolean; trialCredit?: "used_up" | "ended" | "paused" | "too_low";+ | { type: "runtime.error"; message: string; partial?: boolean; setup?: boolean; terminal?: boolean; claudeUpdate?: boolean; trialCredit?: "used_up" | "ended" | "paused" | "too_low";stalled?: boolean; limitResetsAt?: number; limit?: "engine" | "model" | "credits" }/** Something the person should know that did not fail the turn — for* example, a saved model the engine no longer offers was replaced. */diff --git a/shared/wire.ts b/shared/wire.tsindex eb927ec28d..d72e1629e1 100644--- a/shared/wire.ts+++ b/shared/wire.ts@@ -510,6 +510,8 @@ export interface WireMessage extends HelperIntroField, SetupCardFields, WaitLineplace?: PlaceRow;/** error rows: epoch ms when the usage limit that stopped the turn resets. */limitResetsAt?: number;+ /** error rows: the reply came back; only a step the turn ran failed or wasn't allowed. */+ partial?: boolean;/** Provider item identity, scoped to the owning turn. */itemId?: string;/** Whether the harness captured the full redacted result. Privatediff --git a/src/components/ChatView.controls.test.ts b/src/components/ChatView.controls.test.tsindex 95ff2674a8..e0d0622203 100644--- a/src/components/ChatView.controls.test.ts+++ b/src/components/ChatView.controls.test.ts@@ -54,7 +54,8 @@ vi.mock("./ApprovalModeSelector", () => ({ ApprovalModeSelector: (props: Componereturn createElement("span", { "data-test-approval-control": true });} }));-const { ChatView, ErrorRow, FailedTurnRow, claudeUpdateTarget } = await import("./ChatView");+const { ChatView, ErrorRow, FailedTurnRow } = await import("./ChatView");+const { claudeUpdateTarget } = await import("@/lib/failed-turn");const { NewConversationInstead } = await import("./NewConversationInstead");const { activityPreview } = await import("@/lib/failed-turn");afterAll(() => vi.unstubAllGlobals());diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsxindex a5e595cb19..5e30765000 100644--- a/src/components/ChatView.tsx+++ b/src/components/ChatView.tsx@@ -37,12 +37,13 @@ import { CODEX_USAGE_URL, codexUsageLimitReached } from "../../shared/codex-usagimport { ClaudeUpdatePrompt } from "./ClaudeUpdatePrompt";import { MacCuaRecoveryActions } from "./MacCuaRecoveryActions";import { macCuaPermissionMessage, missingMacCuaPermissions } from "@/lib/mac-cua-permissions";-import { failedTurnCause, signedOutEngine } from "@/lib/failed-turn";+import { claudeUpdateTarget, failedTurnCause, signedOutEngine } from "@/lib/failed-turn";import { plainErrorLine } from "@/lib/plain-error";import { openPlaceAction, placeRowViewFor, usePlaceSeat, worksOnSimpleLabel } from "@/lib/place-view";import type { PlaceRow } from "../../shared/place-view";import { trialCreditKind, type TrialCreditRefusal } from "../../shared/trial-credit";import { TrialCreditNotice } from "./TrialCreditNotice";+import { PartlyDoneRow } from "./PartlyDoneRow";import { isPureLeakedSystemHarnessMessage, stripLeakedSystemHarnessMessages } from "../../shared/system-message-guard.ts";import { ConversationalReply, QuickModelNote, isConversational, useReplySegments, useThreadOpenedAt } from "./ConversationalReply";import type { LocaleKey } from "@/locales";@@ -272,10 +273,6 @@ function TrialCreditFailedRow({ kind, onRetry }: { kind: TrialCreditRefusal; onRreturn <ErrorRow message={t(TRIAL_CREDIT_LINE[kind])} action={{ label: t("chat.error.connectOwnAi"), onClick: () => dispatch({ type: "toggleAppSettings", open: true, section: "engines" }) }} />;}-export function claudeUpdateTarget(engine: InstanceInfo | undefined): InstanceInfo | undefined {- return engine?.driverKind === "claudeAgent" && !engine.readOnly ? engine : undefined;-}-export function FailedTurnRow({ tool, engine, onRetry, botId, threadId }: {tool: NonNullable<Message["tool"]>;engine: InstanceInfo | undefined;@@ -287,8 +284,9 @@ export function FailedTurnRow({ tool, engine, onRetry, botId, threadId }: {if (tool.place && botId) return <PlaceFailedRow place={tool.place} botId={botId} threadId={threadId} onRetry={onRetry} />;const credit = trialCreditKind(failedTurnCause(tool.name) ?? "");if (credit) return <TrialCreditFailedRow kind={credit} onRetry={onRetry} />;- const signedOut = signedOutEngine(tool, engine);const cause = failedTurnCause(tool.name) ?? tool.name;+ if (tool.partial) return <PartlyDoneRow cause={cause} onRetry={onRetry} />;+ const signedOut = signedOutEngine(tool, engine);return (<ErrorRowmessage={cause}diff --git a/src/components/FailedTurnRow.partial.test.ts b/src/components/FailedTurnRow.partial.test.tsnew file mode 100644index 0000000000..dc6ae3e6bd--- /dev/null+++ b/src/components/FailedTurnRow.partial.test.ts@@ -0,0 +1,53 @@+import { createElement } from "react";+import { renderToStaticMarkup } from "react-dom/server";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import type { InstanceInfo, Message } from "@/state/store";+import { failedTurnTool } from "../../shared/failed-turn";+import { setLocale } from "@/lib/i18n";++const fixture = vi.hoisted(() => {+ vi.stubGlobal("window", {});+ vi.stubGlobal("localStorage", { getItem: () => null, setItem: () => {} });+ return { dispatch: vi.fn() };+});+vi.mock("@/state/store", async (importOriginal) => {+ const original = await importOriginal<typeof import("@/state/store")>();+ return { ...original, useStore: () => ({ state: { ...original.initialState, config: {}, instances: [] as InstanceInfo[], bots: [] }, dispatch: fixture.dispatch, refreshInstances: vi.fn(), refreshModels: vi.fn() }) };+});+vi.mock("./DesktopCapabilities", async (importOriginal) => ({+ ...await importOriginal<typeof import("./DesktopCapabilities")>(),+ useDesktopCapabilities: () => ({ capabilities: { dictation: { available: false }, host: { packaged: true, platform: "darwin" }, localComputer: { available: true } }, ready: true }),+ useCaptionChrome: () => ({}),+}));+vi.mock("@/lib/use-owner-or-admin", () => ({ useOwnerOrAdmin: () => null }));+vi.mock("@/lib/analytics", () => ({ track: vi.fn() }));++const { FailedTurnRow } = await import("./ChatView");+const { activityPreview } = await import("@/lib/failed-turn");+const cause = "Stopped because the tool call “read_file” failed. The bot's reply isn't proof the work was done; the failed step shows the error.";+const show = (tool: NonNullable<Message["tool"]>) => renderToStaticMarkup(createElement(FailedTurnRow, { tool, engine: undefined, onRetry: vi.fn() }));++beforeEach(() => setLocale("en"));+afterEach(() => setLocale("en"));++describe("a turn whose reply came back but a step failed", () => {+ it("reads as partly done, not as a broken turn, with the cause under Details and Retry kept", () => {+ const html = show(failedTurnTool(cause, { terminal: true, partial: true }));+ expect(html).toContain("Partly done. The reply came back, but a step didn't work");+ expect(html).toContain("warning");+ expect(html).not.toMatch(/danger|lucide-triangle-alert|lucide-alert-triangle/);+ expect(html).toMatch(/<details[\s\S]*Details[\s\S]*Stopped because the tool call/);+ expect(html).toContain("Retry");+ });++ it("is still the red failure row when the turn did not finish", () => {+ const html = show(failedTurnTool(cause, { terminal: true }));+ expect(html).toContain("danger");+ expect(html).not.toContain("Partly done");+ });++ it("says partly done in the chat list preview too", () => {+ expect(activityPreview(failedTurnTool(cause, { partial: true }), undefined)).toBe("Partly done: a step didn't work");+ expect(activityPreview(failedTurnTool(cause), undefined)).not.toContain("Partly done");+ });+});diff --git a/src/components/PartlyDoneRow.tsx b/src/components/PartlyDoneRow.tsxnew file mode 100644index 0000000000..ea76ddf159--- /dev/null+++ b/src/components/PartlyDoneRow.tsx@@ -0,0 +1,23 @@+import { CircleAlert, RefreshCw } from "lucide-react";+import { t } from "@/lib/i18n";++/** A turn whose reply came back but a step it ran failed or wasn't allowed: done in part, not broken. The step's+ * own row still shows its error; the cause stays one click away. */+export function PartlyDoneRow({ cause, onRetry }: { cause: string; onRetry?: () => void }) {+ return (+ <div className="flex justify-start">+ <div className="w-fit max-w-[min(var(--chat-bubble-max),var(--chat-bubble-pct))] rounded-xl border border-warning/25 bg-warning/10 px-3.5 py-2.5 text-[14px] text-warning">+ <div className="flex items-start gap-2">+ <CircleAlert size={15} className="mt-0.5 shrink-0" />+ <span className="min-w-0 break-words">{t("chat.error.partial")}</span>+ </div>+ <details className="mt-2 text-[12px] text-ink-secondary"><summary className="cursor-pointer">{t("chat.error.details")}</summary><p className="mt-1 break-words">{cause}</p></details>+ {onRetry && (+ <button onClick={onRetry} className="ui-button ui-button-md mt-1.5 rounded-full border-warning/30 bg-transparent text-warning hover:bg-warning/15">+ <RefreshCw size={12} /> {t("chat.retry")}+ </button>+ )}+ </div>+ </div>+ );+}diff --git a/src/components/RoutineCalendarPage.tsx b/src/components/RoutineCalendarPage.tsxindex bcd4cdf996..60c3f72ba4 100644--- a/src/components/RoutineCalendarPage.tsx+++ b/src/components/RoutineCalendarPage.tsx@@ -38,7 +38,7 @@ import { pathForFile } from "@/components/ComposerAttachments";import { ResultsDestination } from "@/components/routines/ResultsDestination";import { CronScheduleFields, CronSchedulePreview } from "@/components/routines/CronScheduleFields";import { cronChoiceFor, cronDraftFor, cronEditorValue, isCronChoice, type CronChoice } from "@/components/routines/cron-editor";-import { routineRunLabel, routineRunsOn, routineRunTime, routineScheduleState } from "@/lib/routine-display";+import { partlyDone, routineRunLabel, routineRunsOn, routineRunTime, routineScheduleState } from "@/lib/routine-display";import { useAdvancedMode } from "@/lib/interface-mode";import { useShowThreads } from "@/lib/thread-preferences";import { t } from "@/lib/i18n";@@ -1443,7 +1443,7 @@ export function EventDetails({</div><div className="min-h-0 flex-1 space-y-4 overflow-y-auto px-4 py-4">- {run && <div role="status" aria-live="polite" className="rounded-xl border border-hairline/40 bg-inset p-3"><div className="flex items-center gap-2 text-[12px] font-medium text-ink">{run.status === "running" && <Loader2 size={13} className="animate-spin text-accent" />}{routineRunLabel(run)}</div>{run.output && <div className="mt-2 max-h-48 overflow-y-auto whitespace-pre-wrap text-[12px] leading-relaxed text-ink-secondary">{run.output}</div>}{run.error && <div className="mt-2 text-[12px] text-danger">{run.error}</div>}</div>}+ {run && <div role="status" aria-live="polite" className="rounded-xl border border-hairline/40 bg-inset p-3"><div className="flex items-center gap-2 text-[12px] font-medium text-ink">{run.status === "running" && <Loader2 size={13} className="animate-spin text-accent" />}{routineRunLabel(run)}</div>{run.output && <div className="mt-2 max-h-48 overflow-y-auto whitespace-pre-wrap text-[12px] leading-relaxed text-ink-secondary">{run.output}</div>}{run.error && <div className={cn("mt-2 text-[12px]", partlyDone(run) ? "text-warning" : "text-danger")}>{run.error}</div>}</div>}{run?.attention && <div className="flex items-start gap-2 rounded-xl border border-warning/30 bg-warning/10 px-3 py-2.5 text-warning"><CircleAlert size={15} className="mt-0.5 shrink-0" /><div className="min-w-0 whitespace-pre-wrap text-[12px] leading-relaxed">{run.attention}</div></div>}{run?.status === "waiting" && !run.attention && <div className="rounded-xl border border-warning/30 bg-warning/10 px-3 py-2.5 text-[12px] text-warning">This run is waiting. Open its execution thread for more context.</div>}@@ -1540,7 +1540,7 @@ function RecentRunRow({ run, current, onOpen }: { run: RoutineRun; current: bool{ok? <CheckCircle2 size={14} className="shrink-0 text-success" aria-hidden="true" />: problem- ? <XCircle size={14} className="shrink-0 text-danger" aria-hidden="true" />+ ? partlyDone(run) ? <CircleAlert size={14} className="shrink-0 text-warning" aria-hidden="true" /> : <XCircle size={14} className="shrink-0 text-danger" aria-hidden="true" />: active? <Loader2 size={14} className="shrink-0 animate-spin text-accent" aria-hidden="true" />: <CircleAlert size={14} className="shrink-0 text-ink-tertiary" aria-hidden="true" />}diff --git a/src/components/RoutineRunCard.tsx b/src/components/RoutineRunCard.tsxindex e8e310d3e0..03065a3e44 100644--- a/src/components/RoutineRunCard.tsx+++ b/src/components/RoutineRunCard.tsx@@ -147,13 +147,13 @@ export function AutomationCaption({ message, line, botId }: { message: Message;const canOpen = state.bots.some((bot) => bot.threadId === line.executionThreadId || hasRoutineExecutionTask(bot.tasks, line.executionThreadId));const asking = line.needsYou === true && (message.card ? liveCardKind(message.card) !== null : line.copyOf !== undefined ||!state.bots.find((bot) => bot.id === botId)?.messages.some((later) => later.role === "user" && later.at > message.at));- const tone = line.failed ? "text-danger" : asking ? "text-warning" : "text-accent";+ const tone = line.partial ? "text-warning" : line.failed ? "text-danger" : asking ? "text-warning" : "text-accent";return (<div data-automation-caption={line.runId} className="-mb-2 flex min-w-0 items-center gap-1.5 pl-0.5 text-[11px] text-ink-tertiary"><Zap aria-hidden="true" size={12} className={cn("shrink-0", tone)} /><span className="truncate font-medium text-ink-secondary">{line.name}</span><time className="shrink-0" dateTime={new Date(line.scheduledFor).toISOString()}>· {formatTime(line.scheduledFor)}</time>- {(line.failed || asking) && <span className={cn("shrink-0", tone)}>· {t(line.failed ? "chat.automation.failed" : "chat.automation.needsYou")}</span>}+ {(line.failed || asking) && <span className={cn("shrink-0", tone)}>· {t(line.partial ? "chat.automation.partial" : line.failed ? "chat.automation.failed" : "chat.automation.needsYou")}</span>}{canOpen && (<buttontype="button"diff --git a/src/components/routines/CalendarEventCard.tsx b/src/components/routines/CalendarEventCard.tsxindex eb5939b4ed..5b645310db 100644--- a/src/components/routines/CalendarEventCard.tsx+++ b/src/components/routines/CalendarEventCard.tsx@@ -6,7 +6,7 @@ import { cn } from "@/lib/cn";import { t } from "@/lib/i18n";import { MAUS_COLORS, type MausState } from "@/lib/mascot";import { CALENDAR_SLOT_MINUTES } from "@/lib/routine-calendar";-import { routineHeldNote, routineRunLabel } from "@/lib/routine-display";+import { partlyDone, routineHeldNote, routineRunLabel } from "@/lib/routine-display";import type { RoutineRunStatus } from "@/lib/routines";import { intervalLabel, niceTime } from "@/lib/schedule-label";import type { Bot, Group } from "@/state/store";@@ -125,7 +125,7 @@ export function CalendarEventCard({fit === "roomy" ? "px-1.5 py-1" : "px-1.5 py-0",paused && "border-dashed opacity-70",status === "cancelled" && "opacity-55",- (status === "failed" || status === "missed") && "border-danger/60",+ (status === "failed" || status === "missed") && (run && partlyDone(run) ? "border-warning/60" : "border-danger/60"),selected && "z-20 ring-2 ring-accent ring-offset-1 ring-offset-app",)}style={{diff --git a/src/lib/automations.test.ts b/src/lib/automations.test.tsindex bc8a184435..b7b2e958f5 100644--- a/src/lib/automations.test.ts+++ b/src/lib/automations.test.ts@@ -198,6 +198,14 @@ describe("order and the grey line", () => {expect(runLine(run("cancelled", at(0, 9)), NOW)).toMatchObject({ mark: "✗", text: "Stopped" });});+ it("marks a run whose reply came back but a step failed as partly done, not as a red failure", () => {+ const partly = run("failed", at(0, 9, 2), { error: "Stopped because the tool call failed.\nmore", output: "Here is the summary.", partial: true });+ expect(runLine(partly, NOW)).toEqual({ when: "Today 9:02 AM", mark: "!", text: "Partly done: Stopped because the tool call failed." });+ expect(statusLine(automation([partly]), NOW)).toBe("On · last ran today 9:02 AM ! · next: Monday 9:00 AM");+ expect(runLine(run("failed", at(0, 9, 2), { error: "Stopped because the tool call failed." }), NOW)).toMatchObject({ mark: "✗" });+ expect(statusLine(automation([run("failed", at(0, 9, 2))]), NOW)).toBe("On · last ran today 9:02 AM ✗ · next: Monday 9:00 AM");+ });+it("says a run that found nothing to tell found nothing new, whatever its last words were", () => {expect(runLine(run("completed", at(0, 9, 2), { output: "Checked 14 emails.\nNOTHING NEW", report: { state: "quiet" } }), NOW)).toEqual({ when: "Today 9:02 AM", mark: "✓", text: "Nothing new" });});diff --git a/src/lib/automations.ts b/src/lib/automations.tsindex be266805dd..ebdac35803 100644--- a/src/lib/automations.ts+++ b/src/lib/automations.ts@@ -8,6 +8,7 @@ import type { WebhookAttempt, WebhookTrigger } from "@/lib/webhooks";import type { AppTrigger } from "@/lib/app-triggers";import { appProblem, appStatusParts, appWhen, skippedToday } from "@/lib/app-automations";import { limitResetWhen } from "@/lib/limit-resets";+import { partlyDone } from "@/lib/routine-display";import type { OptionCardData } from "@/state/store";export type AutomationKind = "schedule" | "webhook" | "app";@@ -298,7 +299,7 @@ export function statusLine(automation: Automation, now = Date.now()): string {const parts = [t(STATUS_WORD[status.state])];if (latest?.status === "running") parts.push(t("automations.runningNow"));else if (automation.checkedAt !== undefined && (!latest || automation.checkedAt >= (latest.finishedAt ?? runTime(latest)))) parts.push(t("automations.checkedNothingNew", { when: lastWhen(automation.checkedAt, now) }));- else if (latest) parts.push(`${t("automations.lastRan", { when: lastWhen(runTime(latest), now) })}${isProblem(latest) ? " ✗" : ""}`);+ else if (latest) parts.push(`${t("automations.lastRan", { when: lastWhen(runTime(latest), now) })}${partlyDone(latest) ? " !" : isProblem(latest) ? " ✗" : ""}`);else if (!automation.appTrigger) parts.push(t("automations.notRunYet"));if (automation.appTrigger) parts.push(...appStatusParts(automation.appTrigger, Boolean(latest)), ...[skippedToday(automation.appTrigger, now) ?? []].flat());if (automation.nextRunAt != null) parts.push(t("automations.next", { when: nextWhen(automation.nextRunAt, now) }));@@ -319,6 +320,7 @@ export function runLine(run: RoutineRun, now = Date.now()): { when: string; markconst reason = short(firstLine(run.error));return { when, mark: "✗", text: reason ? t("automations.run.stoppedBecause", { reason }) : t("automations.run.stopped") };}+ if (partlyDone(run)) return { when, mark: "!", text: t("automations.run.partial", { reason: short(firstLine(run.error)) }) };return { when, mark: "✗", text: ownerFix(run)?.reason ?? (short(firstLine(run.error)) || t("automations.run.failed")) };}diff --git a/src/lib/failed-turn.ts b/src/lib/failed-turn.tsindex 1eebe3187d..1c9d55ea2f 100644--- a/src/lib/failed-turn.ts+++ b/src/lib/failed-turn.ts@@ -20,6 +20,10 @@ export function signedOutEngine(tool: ActivityTool, engine: InstanceInfo | undefreturn tool.setup && !tool.claudeUpdate && engineSignedOut(engine) ? engine : undefined;}+export function claudeUpdateTarget(engine: InstanceInfo | undefined): InstanceInfo | undefined {+ return engine?.driverKind === "claudeAgent" && !engine.readOnly ? engine : undefined;+}+export function botEngine(bot: Bot | undefined, instances: InstanceInfo[]): InstanceInfo | undefined {return bot && instances.find((instance) => instance.instanceId === bot.modelSelection.instanceId);}@@ -29,6 +33,7 @@ export function activityPreview(tool: ActivityTool, engine: InstanceInfo | undefif (isStoppedTurnName(tool.name)) return t("chat.turnStopped");const cause = failedTurnCause(tool.name);if (cause !== null && isClientCancellation(cause)) return t("chat.turnStopped");+ if (cause !== null && tool.partial) return t("chat.error.partialPreview");if (cause === null) return advanced ? tool.name : STATUS_MARKER.test(tool.name) ? tool.name.replace(STATUS_MARKER, "") : toolStepLabel(tool);const signedOut = signedOutEngine(tool, engine);return signedOut ? t("sidebar.preview.signedOut", { name: signedOut.displayName }) : plainErrorLine(cause) ?? cause;diff --git a/src/lib/routine-display.test.ts b/src/lib/routine-display.test.tsindex 472f75629b..97d2c02c24 100644--- a/src/lib/routine-display.test.ts+++ b/src/lib/routine-display.test.ts@@ -1,6 +1,7 @@import { describe, expect, it } from "vitest";-import { routineRunsOn } from "./routine-display";+import type { RoutineRun } from "./routines";+import { routineRunLabel, routineRunTone, routineRunsOn } from "./routine-display";describe("where a routine runs", () => {it("on the Cloud, every routine runs on schedule even when the person's computer is off", () => {@@ -39,3 +40,19 @@ describe("where a routine runs", () => {}});});++describe("a run's status", () => {+ const run = (patch: Partial<RoutineRun>) => ({ id: "r", routineId: "x", routineName: "Brief", botId: "b", status: "failed", manual: false, scheduledFor: 0, createdAt: 0, ...patch }) as RoutineRun;++ it("reads partly done, in the waiting colour, when only a step failed after the reply came back", () => {+ expect(routineRunLabel(run({ partial: true }))).toBe("Partly done");+ expect(routineRunTone(run({ partial: true }))).toBe("text-warning");+ expect(routineRunLabel(run({ partial: true, retried: "failed" }))).toBe("Retried after a failure · Partly done");+ });++ it("still reads failed, in red, for any other failure", () => {+ expect(routineRunLabel(run({}))).toBe("Failed");+ expect(routineRunTone(run({}))).toBe("text-danger");+ expect(routineRunLabel(run({ status: "completed", partial: true }))).toBe("Completed");+ });+});diff --git a/src/lib/routine-display.ts b/src/lib/routine-display.tsindex f2402169dc..cca52ff723 100644--- a/src/lib/routine-display.ts+++ b/src/lib/routine-display.ts@@ -10,14 +10,19 @@ export function latestRoutineRun(routineId: string, runs: readonly RoutineRun[]).reduce<RoutineRun | undefined>((latest, run) => !latest || routineRunTime(run) > routineRunTime(latest) ? run : latest, undefined);}+/** A run that failed only because a step did, after its reply came back. */+export function partlyDone(run: RoutineRun): boolean {+ return run.status === "failed" && run.partial === true && !run.goalStatus;+}+export function routineRunLabel(run: RoutineRun): string {if (run.goalStatus) return t(`routines.goal.${run.goalStatus}`);- const status = t(`routines.status.${run.status}`);+ const status = t(partlyDone(run) ? "routines.status.partial" : `routines.status.${run.status}`);return run.retried && run.status !== "queued" ? t(`routines.retried.${run.retried}`, { status }) : status;}export function routineRunTone(run: RoutineRun): string {- if (run.status === "waiting" || ["needs-input", "limit-reached", "paused"].includes(run.goalStatus ?? "")) return "text-warning";+ if (run.status === "waiting" || partlyDone(run) || ["needs-input", "limit-reached", "paused"].includes(run.goalStatus ?? "")) return "text-warning";if (["failed", "missed"].includes(run.status) || ["failed", "blocked"].includes(run.goalStatus ?? "")) return "text-danger";if (run.status === "running") return "text-accent";if (run.status === "completed" && (!run.goalStatus || run.goalStatus === "completed")) return "text-success";diff --git a/src/lib/transcript-announcer.test.ts b/src/lib/transcript-announcer.test.tsindex 0e0f55fa21..203e8d5d21 100644--- a/src/lib/transcript-announcer.test.ts+++ b/src/lib/transcript-announcer.test.ts@@ -93,6 +93,11 @@ describe("nextAnnouncement", () => {{ busy: false, failure: { id: "f1", name: "Pepper", cause: "The model timed out." } },])).toEqual(["Pepper failed: The model timed out."]);+ expect(play([+ { busy: true },+ { busy: false, failure: { id: "f3", name: "Pepper", cause: "Stopped because the tool call failed.", partial: true } },+ ])).toEqual(["Pepper partly done: Stopped because the tool call failed."]);+expect(play([{ busy: false },{ busy: true },diff --git a/src/lib/transcript-announcer.ts b/src/lib/transcript-announcer.tsindex 85ae9526a0..9cc6cf0e81 100644--- a/src/lib/transcript-announcer.ts+++ b/src/lib/transcript-announcer.ts@@ -7,7 +7,7 @@ import { isCancelledTranscriptRow } from "../../shared/client-cancel";export interface TranscriptSnapshot {busy: boolean;reply?: { id: string; name: string; text: string };- failure?: { id: string; name: string; cause: string };+ failure?: { id: string; name: string; cause: string; partial?: boolean };approval?: { id: string; name: string };}@@ -54,7 +54,7 @@ export function nextAnnouncement(} else if (snapshot.failure && snapshot.failure.id !== memory.failureId && !isUserStop(snapshot.failure.cause)) {const summary = replySummary(snapshot.failure.cause);said.push(summary- ? t("chat.announce.failed", { name: snapshot.failure.name, text: summary })+ ? t(snapshot.failure.partial ? "chat.announce.partial" : "chat.announce.failed", { name: snapshot.failure.name, text: summary }): t("chat.announce.failedEmpty", { name: snapshot.failure.name }));}}@@ -81,7 +81,7 @@ export function latestFailure(for (let index = messages.length - 1; index >= 0; index -= 1) {const message = messages[index]!;const cause = message.kind === "activity" && message.tool ? failedTurnCause(message.tool.name) : null;- if (cause) return { id: message.id, name: nameOf(message), cause };+ if (cause) return { id: message.id, name: nameOf(message), cause, ...(message.tool!.partial ? { partial: true } : {}) };}return undefined;}diff --git a/src/locales/de.json b/src/locales/de.jsonindex c50fabdcc3..76981878b9 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -58,6 +58,7 @@"server.warmSummary.summarized": "diese Unterhaltung wurde in einer Pause zusammengefasst; die letzten Nachrichten bleiben wörtlich erhalten","server.runs.didNotFinish": "Diese Ausführung wurde nicht beendet.","server.runs.didNotFinishWhy": "Diese Ausführung wurde nicht beendet: {detail}",+ "server.runs.partlyDoneWhy": "Diese Ausführung wurde teilweise erledigt: {detail}","server.runs.recovered": "Wieder in Ordnung: {name} wurde um {time} erfolgreich beendet","server.runs.card.line": "Routine „{name}“ {state}","server.runs.state.needsInput": "braucht deine Eingabe",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 9caa8bbe00..2a41e2d6a9 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -155,6 +155,7 @@"server.warmSummary.summarized": "summarized this conversation while it was idle; the latest messages carry on word for word","server.runs.didNotFinish": "This run didn't finish.","server.runs.didNotFinishWhy": "This run didn't finish: {detail}",+ "server.runs.partlyDoneWhy": "This run was partly done: {detail}","server.runs.recovered": "Recovered: {name} finished OK at {time}","server.runs.card.line": "Routine “{name}” {state}","server.runs.state.needsInput": "needs your input",@@ -2239,6 +2240,7 @@"chat.announce.repliedEmpty": "{name} replied","chat.announce.failed": "{name} failed: {text}","chat.announce.failedEmpty": "{name} failed",+ "chat.announce.partial": "{name} partly done: {text}","chat.announce.approval": "{name} needs your approval","chat.day.today": "Today","chat.day.yesterday": "Yesterday",@@ -2279,6 +2281,8 @@"chat.notice.signIn": "Sign in","chat.notice.signInHint": "Open AI settings to sign in again","chat.error.details": "Details",+ "chat.error.partial": "Partly done. The reply came back, but a step didn't work, so check that step before relying on it.",+ "chat.error.partialPreview": "Partly done: a step didn't work","chat.error.requestTooLarge": "This message is too large for {model}. Start a new chat or pick a model that accepts more.","chat.error.dismiss": "Dismiss","error.plain.unreachable": "Couldn't reach {app}. Check that it's running, then try again.",@@ -2330,6 +2334,7 @@"chat.automation.openRunFor": "See the run behind this {name} message","chat.automation.needsYou": "needs you","chat.automation.failed": "didn't finish",+ "chat.automation.partial": "partly done","chat.assistant": "Assistant","chat.webhookTask": "Webhook task","chat.viewPayload": "View event payload",@@ -4819,6 +4824,7 @@"routines.status.waiting": "Waiting","routines.status.completed": "Completed","routines.status.failed": "Failed",+ "routines.status.partial": "Partly done","routines.status.cancelled": "Cancelled","routines.status.missed": "Missed","routines.status.problems": "Problems",@@ -4915,6 +4921,7 @@"automations.run.stopped": "Stopped","automations.run.stoppedBecause": "Stopped: {reason}","automations.run.failed": "It didn't finish",+ "automations.run.partial": "Partly done: {reason}","automations.panel.label": "Automation","automations.panel.recent": "Recent runs","automations.panel.noRuns": "It hasn't run yet.",diff --git a/src/locales/es.json b/src/locales/es.jsonindex 2e789d2165..c78a349edd 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -102,6 +102,7 @@"server.warmSummary.summarized": "se resumió esta conversación mientras estaba inactiva; los últimos mensajes se conservan palabra por palabra","server.runs.didNotFinish": "Esta ejecución no terminó.","server.runs.didNotFinishWhy": "Esta ejecución no terminó: {detail}",+ "server.runs.partlyDoneWhy": "Esta ejecución se completó en parte: {detail}","server.runs.recovered": "Resuelto: {name} terminó bien a las {time}","server.runs.card.line": "La rutina «{name}» {state}","server.runs.state.needsInput": "necesita tu respuesta",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex 2f5eef1c5b..f62717117c 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -55,6 +55,7 @@"server.warmSummary.summarized": "cette conversation a été résumée pendant une pause ; les derniers messages sont conservés mot pour mot","server.runs.didNotFinish": "Cette exécution ne s'est pas terminée.","server.runs.didNotFinishWhy": "Cette exécution ne s'est pas terminée : {detail}",+ "server.runs.partlyDoneWhy": "Cette exécution n'a été faite qu'en partie : {detail}","server.runs.recovered": "Rétabli : {name} s'est bien terminé à {time}","server.runs.card.line": "Routine « {name} » {state}","server.runs.state.needsInput": "attend votre réponse",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 6b410e9edf..be2c771e1f 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -55,6 +55,7 @@"server.warmSummary.summarized": "बातचीत रुकी रहने के दौरान उसका सारांश बनाया गया; सबसे नए संदेश शब्दशः बने रहते हैं","server.runs.didNotFinish": "यह एक्ज़ीक्यूशन पूरा नहीं हुआ।","server.runs.didNotFinishWhy": "यह एक्ज़ीक्यूशन पूरा नहीं हुआ: {detail}",+ "server.runs.partlyDoneWhy": "यह एक्ज़ीक्यूशन आंशिक रूप से पूरा हुआ: {detail}","server.runs.recovered": "फिर से ठीक है: {name} {time} पर ठीक से पूरा हुआ","server.runs.card.line": "रूटीन “{name}” {state}","server.runs.state.needsInput": "आपके जवाब का इंतज़ार कर रहा है",diff --git a/src/locales/it.json b/src/locales/it.jsonindex a9c0b3dbe5..745c3fec93 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -107,6 +107,7 @@"server.warmSummary.summarized": "questa conversazione è stata riassunta mentre era inattiva; gli ultimi messaggi restano parola per parola","server.runs.didNotFinish": "Questa esecuzione non è terminata.","server.runs.didNotFinishWhy": "Questa esecuzione non è terminata: {detail}",+ "server.runs.partlyDoneWhy": "Questa esecuzione è stata completata in parte: {detail}","server.runs.recovered": "Risolto: {name} è terminata correttamente alle {time}","server.runs.card.line": "La routine «{name}» {state}","server.runs.state.needsInput": "aspetta una tua risposta",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex afc2693202..eb7952655a 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -109,6 +109,7 @@"server.warmSummary.summarized": "会話が止まっている間に要約しました。最新のメッセージはそのまま残ります","server.runs.didNotFinish": "この実行は完了しませんでした。","server.runs.didNotFinishWhy": "この実行は完了しませんでした:{detail}",+ "server.runs.partlyDoneWhy": "この実行は一部だけ完了しました:{detail}","server.runs.recovered": "復旧しました:{name} は {time} に正常に完了しました","server.runs.card.line": "ルーティン「{name}」は{state}","server.runs.state.needsInput": "あなたの入力を待っています",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex 1968067a13..c87c4ed706 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -152,6 +152,7 @@"server.warmSummary.summarized": "대화가 쉬는 동안 요약했습니다. 최근 메시지는 그대로 이어집니다","server.runs.didNotFinish": "이번 실행은 끝나지 않았어요.","server.runs.didNotFinishWhy": "이번 실행은 끝나지 않았어요: {detail}",+ "server.runs.partlyDoneWhy": "이번 실행은 일부만 끝났어요: {detail}","server.runs.recovered": "복구됨: {name} 실행이 {time}에 정상적으로 끝났어요","server.runs.card.line": "루틴 “{name}”: {state}","server.runs.state.needsInput": "입력이 필요해요",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex d571e2595e..1f3df04028 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -109,6 +109,7 @@"server.warmSummary.summarized": "podsumowano tę rozmowę podczas przerwy; najnowsze wiadomości zostają słowo w słowo","server.runs.didNotFinish": "To uruchomienie się nie zakończyło.","server.runs.didNotFinishWhy": "To uruchomienie się nie zakończyło: {detail}",+ "server.runs.partlyDoneWhy": "To uruchomienie zostało wykonane częściowo: {detail}","server.runs.recovered": "Znowu działa: rutyna „{name}” zakończyła się poprawnie o {time}","server.runs.card.line": "Rutyna „{name}” {state}","server.runs.state.needsInput": "czeka na twoją odpowiedź",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex d2af64a0e2..bdeeb9b5cf 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -101,6 +101,7 @@"server.warmSummary.summarized": "esta conversa foi resumida enquanto estava parada; as mensagens mais recentes seguem palavra por palavra","server.runs.didNotFinish": "Esta execução não terminou.","server.runs.didNotFinishWhy": "Esta execução não terminou: {detail}",+ "server.runs.partlyDoneWhy": "Esta execução foi concluída em parte: {detail}","server.runs.recovered": "Resolvido: {name} terminou bem às {time}","server.runs.card.line": "A rotina “{name}” {state}","server.runs.state.needsInput": "precisa da sua resposta",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 3f434af276..622c573513 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -109,6 +109,7 @@"server.warmSummary.summarized": "этот разговор кратко изложен, пока он был в паузе; последние сообщения сохранены дословно","server.runs.didNotFinish": "Этот запуск не завершился.","server.runs.didNotFinishWhy": "Этот запуск не завершился: {detail}",+ "server.runs.partlyDoneWhy": "Этот запуск выполнен частично: {detail}","server.runs.recovered": "Снова в порядке: процедура «{name}» успешно завершилась в {time}","server.runs.card.line": "Процедура «{name}» {state}","server.runs.state.needsInput": "ждёт вашего ответа",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 92704572e9..8fece1fba5 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -2557,6 +2557,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -8303,6 +8304,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -11089,6 +11091,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -13875,6 +13878,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -20533,6 +20537,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -26949,6 +26954,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -30586,6 +30592,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -38926,6 +38933,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -42155,6 +42163,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -47381,6 +47390,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -52607,6 +52617,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -59162,6 +59173,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -65798,6 +65810,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -72230,6 +72243,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",@@ -79385,6 +79399,7 @@"server.warmSummary.summarized": "09783c876e0aad696ac2e1384f272b73dc108cc43ba7cce02eab2f872be31bfc","server.runs.didNotFinish": "f8b650a321907e5155a8b504cc5903f24d8e57f3ff76cfeb749eabac30ea63c5","server.runs.didNotFinishWhy": "bce765c8a3b53f36a65e6e4d4bb6d210cff3be89c00fbcc60d9167d259d7fc0b",+ "server.runs.partlyDoneWhy": "ef31cdc4eb035c7a0c78085d5d1086c931e0da507d13ba617d122fe60ce2df27","server.runs.recovered": "5cd951c9a87e3b0009cf81d6e6a28157c2b070f17fd9430541a033ced6a1b5a4","server.runs.card.line": "7eb88530e595ece72f0b4c501adce036eeac0b4698e316e6c62277e7cdb3472c","server.runs.state.needsInput": "bd4e0b7ce368e70f441ee0fb6cb360197ac96ef6c2fdd080d16b25811bd72588",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex ad7cf35e38..7a0ef401bd 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -87,6 +87,7 @@"server.warmSummary.summarized": "bu konuşma boşta kaldığı sırada özetlendi; en son mesajlar kelimesi kelimesine korunuyor","server.runs.didNotFinish": "Bu çalıştırma tamamlanmadı.","server.runs.didNotFinishWhy": "Bu çalıştırma tamamlanmadı: {detail}",+ "server.runs.partlyDoneWhy": "Bu çalıştırma kısmen tamamlandı: {detail}","server.runs.recovered": "Düzeldi: {name} sorunsuz tamamlandı (saat {time})","server.runs.card.line": "“{name}” rutini {state}","server.runs.state.needsInput": "yanıtınızı bekliyor",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 426226159f..6d45149f11 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -55,6 +55,7 @@"server.warmSummary.summarized": "цю розмову підсумовано, поки вона була на паузі; останні повідомлення збережено дослівно","server.runs.didNotFinish": "Цей запуск не завершився.","server.runs.didNotFinishWhy": "Цей запуск не завершився: {detail}",+ "server.runs.partlyDoneWhy": "Цей запуск виконано частково: {detail}","server.runs.recovered": "Знову все гаразд: рутина «{name}» успішно завершилася о {time}","server.runs.card.line": "Рутина «{name}» {state}","server.runs.state.needsInput": "чекає на вашу відповідь",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex c4641a5aab..de6026ae29 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -87,6 +87,7 @@"server.warmSummary.summarized": "đã tóm tắt cuộc trò chuyện này khi nó đang tạm dừng; các tin nhắn mới nhất được giữ nguyên văn","server.runs.didNotFinish": "Lượt chạy này chưa hoàn tất.","server.runs.didNotFinishWhy": "Lượt chạy này chưa hoàn tất: {detail}",+ "server.runs.partlyDoneWhy": "Lần chạy này chỉ xong một phần: {detail}","server.runs.recovered": "Đã ổn trở lại: {name} đã chạy xong bình thường lúc {time}","server.runs.card.line": "Tác vụ định kỳ “{name}” {state}","server.runs.state.needsInput": "cần bạn trả lời",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 71ca5dc135..81a44b104b 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -86,6 +86,7 @@"server.warmSummary.summarized": "已在對話閒置時整理摘要;最新的訊息逐字保留","server.runs.didNotFinish": "這次執行沒有完成。","server.runs.didNotFinishWhy": "這次執行沒有完成:{detail}",+ "server.runs.partlyDoneWhy": "這次執行只完成了一部分:{detail}","server.runs.recovered": "已恢復:{name} 已於 {time} 正常完成","server.runs.card.line": "例行工作「{name}」{state}","server.runs.state.needsInput": "需要你回覆",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 8e8c753f13..807c8eb7fb 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -155,6 +155,7 @@"server.warmSummary.summarized": "已在对话空闲时生成摘要;最新的消息逐字保留","server.runs.didNotFinish": "这次执行没有完成。","server.runs.didNotFinishWhy": "这次执行没有完成:{detail}",+ "server.runs.partlyDoneWhy": "这次运行只完成了一部分:{detail}","server.runs.recovered": "已恢复:{name} 已于 {time} 正常完成","server.runs.card.line": "例行任务「{name}」{state}","server.runs.state.needsInput": "需要你回复",diff --git a/src/state/store.tsx b/src/state/store.tsxindex b69683e2ff..f3dfd54cf8 100644--- a/src/state/store.tsx+++ b/src/state/store.tsx@@ -131,7 +131,7 @@ export interface Message extends Pick<import("../../shared/wire").WireMessage, "goalRun?: GroupGoalRunCardData;call?: import("../../shared/wire").LiveCallRecord;channelMode?: "chat" | "goal";- tool?: { name: string; ok?: boolean; spoken?: string; setup?: boolean; claudeUpdate?: boolean; place?: PlaceRow; limitResetsAt?: number; summary?: string; input?: string; output?: string ; itemId?: string; outputPath?: string; fullResult?: boolean; clipped?: boolean; rescue?: import("../../shared/first-reply-rescue").FirstReplyRescue; step?: import("../../shared/turn-progress").LiveStep; whose?: { person: string; app: string }; label?: string };+ tool?: { name: string; ok?: boolean; spoken?: string; setup?: boolean; claudeUpdate?: boolean; place?: PlaceRow; limitResetsAt?: number; partial?: boolean; summary?: string; input?: string; output?: string ; itemId?: string; outputPath?: string; fullResult?: boolean; clipped?: boolean; rescue?: import("../../shared/first-reply-rescue").FirstReplyRescue; step?: import("../../shared/turn-progress").LiveStep; whose?: { person: string; app: string }; label?: string };steered?: boolean;via?: "api" | "call";callId?: string;