Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Long shell commands: allow two hours and name a command that looks stuck
AdityaUmale8d2148334ded
diff --git a/server/chat-notices.ts b/server/chat-notices.tsindex 164475599f..e068b3a424 100644--- a/server/chat-notices.ts+++ b/server/chat-notices.ts@@ -10,6 +10,7 @@ export const CHAT_NOTICE = {"chat.notice.resumingAfterRestart": "Resuming after a restart","chat.notice.cutOffByRestart": "{name} was cut off by a restart; resuming","chat.notice.stalled": "no activity for {minutes} minutes — the turn was stopped",+ "chat.notice.stalledCommand": "the command `{command}` ran for {minutes} minutes without finishing and looks stuck — the turn was stopped","chat.notice.followupInterrupted":"Queued follow-up interrupted by restart or restore — it may have already run. Review the result before sending it again.","chat.notice.usageLimit": "This {provider} account has reached its usage limit{detail}. Wait for it to reset, or switch this bot to another AI.",diff --git a/server/drivers/claude.test.ts b/server/drivers/claude.test.tsindex ea3101070a..2bea531cba 100644--- a/server/drivers/claude.test.ts+++ b/server/drivers/claude.test.ts@@ -2323,7 +2323,7 @@ describe("ClaudeDriver turns (fake CLI)", () => {expect(seen.argv).not.toContain("--dangerously-skip-permissions");});- it("lets a Bash call ask for up to ten minutes, unless the person set their own cap", async () => {+ it("lets a Bash call ask for up to two hours, unless the person set their own cap", async () => {const dump = join(scratch, "bash-timeout.json");await create(undefined, { FAKE_CLAUDE_DUMP: dump });await instance.adapter.sendTurn({ threadId: "t-bash-timeout", text: "hi" });diff --git a/server/drivers/claude.ts b/server/drivers/claude.tsindex e39ae60688..99a15e2a0b 100644--- a/server/drivers/claude.ts+++ b/server/drivers/claude.ts@@ -9,7 +9,7 @@ import { join, dirname, isAbsolute, normalize } from "node:path";import { DATA_DIR, stripWorkspaceCredentialEnv } from "../config.ts";import { openStartupModelCatalog, unconfirmedModelCatalog, writeStartupModelCache } from "../startup-model-catalog.ts";import { writeFileAtomicIfChanged } from "../atomic.ts";-import { augmentedPath } from "../env-path.ts";+import { augmentedPath } from "../env-path.ts"; import { BASH_MAX_TIMEOUT_MS } from "../system-prompt.ts";import { brokerSocketPath, describeSpawnFailure, execCli, killCliTree, spawnCli } from "../procs.ts";import { cliVersionProbe } from "../cli-version-probe.ts";import { claudeAuthStatus } from "./claude-auth-status.ts";@@ -115,7 +115,7 @@ function claudeEnvironment(instanceEnvironment: NodeJS.ProcessEnv = {},endpoint = false, bedrock = false,): NodeJS.ProcessEnv {- const env: NodeJS.ProcessEnv = { BASH_MAX_TIMEOUT_MS: "600000", ...source, PATH: augmentedPath(), NPM_CONFIG_LOGLEVEL: "error" };+ const env: NodeJS.ProcessEnv = { BASH_MAX_TIMEOUT_MS: String(BASH_MAX_TIMEOUT_MS), ...source, PATH: augmentedPath(), NPM_CONFIG_LOGLEVEL: "error" };if (configDir?.trim()) env.CLAUDE_CONFIG_DIR = resolveClaudeConfigDir(configDir, env);else if (env.CLAUDE_CONFIG_DIR) env.CLAUDE_CONFIG_DIR = resolveClaudeConfigDir(undefined, env);if (configDir?.trim() || endpoint || bedrock) {diff --git a/server/hooks.e2e.test.ts b/server/hooks.e2e.test.tsindex ebdb8c266a..796a6392e5 100644--- a/server/hooks.e2e.test.ts+++ b/server/hooks.e2e.test.ts@@ -189,14 +189,14 @@ posixOnly("engine hooks e2e: a shell call that hit its time limit", () => {const bot = await h.runTurn();const reply: Msg = bot.messages.filter((m: Msg) => m.role === "bot" && m.kind === "text" && m.text).at(-1);expect(reply.text!.match(/hit the shell time limit/g)).toHaveLength(2);- expect(reply.text).toContain("up to 600000");+ expect(reply.text).toContain("up to 7200000");expect(reply.text).toContain("mdfind -name");const preview = await h.api("GET", `/api/bots/${bot.id}/system-prompt`);const shell = preview.body.sections.find((s: { id: string }) => s.id === "shell");expect(shell?.text).toContain("Long-running shell commands");const seen = JSON.parse(readFileSync(dump, "utf8"));expect(seen.systemPrompt).toContain(shell.text.trim());- expect(seen.env.BASH_MAX_TIMEOUT_MS).toBe("600000");+ expect(seen.env.BASH_MAX_TIMEOUT_MS).toBe("7200000");}, 60_000);});diff --git a/server/index.ts b/server/index.tsindex f8906fd387..c070463294 100644--- a/server/index.ts+++ b/server/index.ts@@ -332,7 +332,7 @@ import { Handoffs, handedStateUsable, isContextMessage, recordHanded, renderUnseimport { extractReplayImages, extractTurnImages, videoFramesWithin } from "./turn-images.ts";import { callTitleExcerpt } from "./thread-title.ts";import { generateThreadTitle, llmThreadTitlesEnabled } from "./thread-title-generate.ts";-import { engineProcessGone, stallLimitMs, TurnWatchdog } from "./turn-watchdog.ts"; import { createIdleThreads } from "./host/idle-threads.ts";+import { engineProcessGone, stallLimitMs, stallNotice, TurnWatchdog } from "./turn-watchdog.ts"; import { createIdleThreads } from "./host/idle-threads.ts";import { TurnResources, type TurnOwner } from "./turn-resources.ts";import {ensureWorkspace,@@ -4992,7 +4992,7 @@ const watchdog = new TurnWatchdog({const bot = botForThread(turn.botId, turn.threadId);const routineRun = activeRoutineRunForThread(turn.threadId);void runningTurnInstance(bot, turn.threadId)?.adapter.interruptTurn(turn.threadId).catch(() => {});- const minutes = Math.round(silentMs / 60_000), stallCause = chatNotice("chat.notice.stalled", { minutes }), cause = engineMemory.stallCause(turn.threadId, stallCause);+ const minutes = Math.round(silentMs / 60_000), notice = stallNotice(turn, silentMs, Date.now()), stallCause = chatNotice(notice.key, notice.params), cause = engineMemory.stallCause(turn.threadId, stallCause);const stalled = stoppedTurnText(turn.threadId, liveTurnByThread.get(turn.threadId), cause);if (routineRun?.target === "bot") {routines?.failThread(turn.threadId, engineMemory.stallCause(turn.threadId, `No activity for ${minutes} minutes — the routine was stopped`), { cause: "stalled" });@@ -5000,7 +5000,7 @@ const watchdog = new TurnWatchdog({store.appendMessage(turn.threadId, {role: "bot",kind: "activity",- tool: cause === stallCause ? failedNoticeTool("chat.notice.stalled", { minutes }) : failedTurnTool(cause),+ tool: cause === stallCause ? failedNoticeTool(notice.key, notice.params) : failedTurnTool(cause),});if (bot && routineRun?.target !== "bot") {reportIncident({ kind: "stalled", bot, threadId: turn.threadId, detail: cause });diff --git a/server/shell-timeout-hint.test.ts b/server/shell-timeout-hint.test.tsindex a1b000db78..ed19bdc7d2 100644--- a/server/shell-timeout-hint.test.ts+++ b/server/shell-timeout-hint.test.ts@@ -10,7 +10,7 @@ describe("shellTimeoutHint", () => {const hint = shellTimeoutHint("Bash", { command: "ffmpeg -i in.mp3 -ar 16000 out.wav" }, TIMED_OUT)!;expect(hint).toContain("Do not rerun it the same way");expect(hint).toContain("`timeout`");- expect(hint).toContain("600000");+ expect(hint).toContain("up to 7200000, which is 120 minutes");expect(hint).toContain("foreground");expect(hint).not.toContain("nohup");expect(hint).not.toContain("detached");diff --git a/server/shell-timeout-hint.ts b/server/shell-timeout-hint.tsindex d3ea39248e..434a442e4b 100644--- a/server/shell-timeout-hint.ts+++ b/server/shell-timeout-hint.ts@@ -1,4 +1,4 @@-import { BASH_MAX_TIMEOUT_MS } from "./system-prompt.ts";+import { BASH_MAX_TIMEOUT_TEXT } from "./system-prompt.ts";// Claude Code 2.1.296 reports a Bash call killed at its limit as a PostToolUseFailure whose error reads "Command timed out after …".const TIMED_OUT = /\bCommand timed out after\b/u;@@ -12,7 +12,7 @@ export function shellTimeoutHint(toolName: unknown, toolInput: unknown, error: u"That command hit the shell time limit and its output was lost. Do not rerun it the same way.",scan? "Do not search the whole disk: use `mdfind -name <name>` on macOS, or `find` in a specific folder (your workspace, home, /Applications) with -maxdepth."- : `If it needs longer, rerun it with a larger \`timeout\` (in milliseconds, up to ${BASH_MAX_TIMEOUT_MS}) and keep it in the foreground until it exits. Split very long media jobs into shorter pieces.`,+ : `If it needs longer, rerun it with a larger \`timeout\` (in milliseconds, up to ${BASH_MAX_TIMEOUT_TEXT}) and keep it in the foreground until it exits. Split very long media jobs into shorter pieces.`,].join(" ");}diff --git a/server/system-prompt.test.ts b/server/system-prompt.test.tsindex 539bdb5a2e..8ed3e71fbf 100644--- a/server/system-prompt.test.ts+++ b/server/system-prompt.test.ts@@ -462,7 +462,7 @@ describe("longCommandsPrompt", () => {it("names Bash's limit everywhere and vm_exec's own limit only with a Local VM", () => {for (const kind of [null, "local", "vps", "box"] as const) {const text = longCommandsPrompt(kind);- expect(text).toContain("`timeout` in milliseconds, up to 600000");+ expect(text).toContain("`timeout` in milliseconds, up to 7200000, which is 120 minutes");expect(text).toContain("Never wait inside a command for CI, a deploy or any other job to finish (no sleep loops or repeated polls): check it once");expect(text).toContain("tell the person what you made (with links). Only on a turn the person started in their own chat, set wait_until or a one-time trigger to check back and end your turn");expect(text).toContain("When the person writes while you work, answer them first.");diff --git a/server/system-prompt.ts b/server/system-prompt.tsindex 2e321e6ee5..db6dc29635 100644--- a/server/system-prompt.ts+++ b/server/system-prompt.ts@@ -258,10 +258,12 @@ export const JUST_DO_IT_PROMPT =export const CREDENTIAL_PROMPT =" If a supported API key is missing for the service actually needed, use request_credential to create a secure credential request; a 1Password service account token, for signing in with logins from a 1Password vault, is one too (credential_id onePasswordToken). Before requesting a computer-provider key, inspect the configured targets with select_computer; an existing self-hosted VPS does not need Boat credentials. Do not request a different provider's key merely because a task mentions cloud. For any other secret (a Stripe or npm token, a webhook signing secret), give request_credential a label, reason and delivery: ref for mcp_server, file for your own commands. mcp_server sets up MCP servers in the chat: suggest one when a task needs a service you can't reach yet, and add, turn on or change one once the person asks or agrees. A freshly QR-paired mobile app or the desktop app can show the secure entry card. Never claim it opened unless the request succeeded, and never ask the user to paste credentials into chat.";-/** Ten minutes stays inside the 20-minute turn stall watchdog, which sees nothing while a command runs. */-export const BASH_MAX_TIMEOUT_MS = 600_000;+/** Two hours: the turn watchdog's default limit for a turn whose tool runs silently (OMB_TOOL_STALL_MS), so a long command+ * that keeps working is not cut at ten minutes, and one still running at the limit is stopped and named as looking stuck. */+export const BASH_MAX_TIMEOUT_MS = 2 * 60 * 60_000;+export const BASH_MAX_TIMEOUT_TEXT = `${BASH_MAX_TIMEOUT_MS}, which is ${BASH_MAX_TIMEOUT_MS / 60_000} minutes`;const LONG_COMMANDS_TEXT =- ` Long-running shell commands: a shell call is stopped after a default limit (2 minutes for a Bash call) and the output of a stopped command is lost. Before running anything that can take more than a minute, such as transcription (whisper), ffmpeg or ffprobe over long media, renders, large builds or big file transfers, pass a longer per-call timeout (Bash takes \`timeout\` in milliseconds, up to ${BASH_MAX_TIMEOUT_MS}) and keep the command in the foreground until it exits; split work that cannot finish within that into shorter pieces. A detached job may be killed when the call ends, so keep work whose result you need in the foreground, and trust only the command's own fresh exit code and output, not a launch exit 0 or an old output file. Never scan the whole disk with \`find /\` or similar: search by name with \`mdfind -name\` on macOS, or search a specific folder such as your workspace or home with a depth limit. If a command times out, do not rerun it the same way. Never wait inside a command for CI, a deploy or any other job to finish (no sleep loops or repeated polls): check it once, and if it is still running, tell the person what you made (with links). Only on a turn the person started in their own chat, set wait_until or a one-time trigger to check back and end your turn; work handed to you by a bot, a routine or an outside event cannot set a wait, so finish it in this turn. When the person writes while you work, answer them first.`;+ ` Long-running shell commands: a shell call is stopped after a default limit (2 minutes for a Bash call) and the output of a stopped command is lost. Before running anything that can take more than a minute, such as transcription (whisper), ffmpeg or ffprobe over long media, renders, large builds or big file transfers, pass a longer per-call timeout (Bash takes \`timeout\` in milliseconds, up to ${BASH_MAX_TIMEOUT_TEXT}) and keep the command in the foreground until it exits; split work that cannot finish within that into shorter pieces. A detached job may be killed when the call ends, so keep work whose result you need in the foreground, and trust only the command's own fresh exit code and output, not a launch exit 0 or an old output file. Never scan the whole disk with \`find /\` or similar: search by name with \`mdfind -name\` on macOS, or search a specific folder such as your workspace or home with a depth limit. If a command times out, do not rerun it the same way. Never wait inside a command for CI, a deploy or any other job to finish (no sleep loops or repeated polls): check it once, and if it is still running, tell the person what you made (with links). Only on a turn the person started in their own chat, set wait_until or a one-time trigger to check back and end your turn; work handed to you by a bot, a routine or an outside event cannot set a wait, so finish it in this turn. When the person writes while you work, answer them first.`;const VM_LONG_COMMANDS_TEXT =" In your Local VM, vm_exec takes `timeout_seconds` instead (default 60, at most 300). The VM keeps running between calls, so a job longer than that may start detached inside it (`nohup <command> > /tmp/<job>.log 2>&1 &`); check its log with later vm_exec calls.";export function longCommandsPrompt(computer: ComputerPromptKind | null): string {diff --git a/server/turn-watchdog.test.ts b/server/turn-watchdog.test.tsindex ef08cbe9ae..53ae9129ad 100644--- a/server/turn-watchdog.test.ts+++ b/server/turn-watchdog.test.ts@@ -8,7 +8,7 @@ import type { ProviderAdapter, RuntimeEvent } from "./contracts.ts";import { EngineMemory } from "./engine-memory.ts";import type { Message } from "./store.ts";import { TurnStops, stoppedTurnOutcome } from "./turn-outcome.ts";-import { engineProcessGone, stallLimitMs, TurnWatchdog, type WatchedTurn } from "./turn-watchdog.ts";+import { engineProcessGone, stallLimitMs, stallNotice, stuckCommand, TurnWatchdog, type WatchedTurn } from "./turn-watchdog.ts";const STALL = 10_000;const TOOL_STALL = 50_000;@@ -16,6 +16,7 @@ const PARKED_STALL = 1_000 * STALL;const base = { eventId: "e1", provider: "claudeAgent", threadId: "t1", createdAt: "2026-01-01T00:00:00.000Z" };const text: RuntimeEvent = { ...base, type: "content.delta", streamKind: "assistant_text", delta: "working" };const toolStarted = (itemId: string): RuntimeEvent => ({ ...base, type: "item.started", itemType: "tool", itemId });+const shellStarted = (itemId: string, summary: string): RuntimeEvent => ({ ...base, type: "item.started", itemType: "tool", itemId, title: "Bash", summary });const toolEnded = (itemId: string): RuntimeEvent => ({ ...base, type: "item.completed", itemType: "tool", itemId, ok: true });function rig() {@@ -366,6 +367,35 @@ describe("TurnWatchdog", () => {});});+describe("stuckCommand", () => {+ it("names the longest-running shell command still running when the turn is stopped", () => {+ const { dog, stalls, tick } = rig();+ dog.watch("t1", "bot1");+ dog.observe(toolStarted("read"));+ tick(1_000);+ dog.observe(shellStarted("export", "ffmpeg -i talk.mov talk.mp4"));+ tick(1_000);+ dog.observe(shellStarted("done", "ls"));+ dog.observe(toolEnded("done"));+ tick(TOOL_STALL);+ dog.sweep();+ expect(stalls).toHaveLength(1);+ expect(stuckCommand(stalls[0]!, 1_000 + 120 * 60_000)).toEqual({ command: "ffmpeg -i talk.mov talk.mp4", minutes: 120 });+ });++ it("names nothing when no running tool runs a shell command", () => {+ const { dog, stalls, tick } = rig();+ dog.watch("t1", "bot1");+ dog.observe(toolStarted("fetch"));+ dog.observe(shellStarted("ended", "make build"));+ dog.observe(toolEnded("ended"));+ tick(TOOL_STALL);+ dog.sweep();+ expect(stuckCommand(stalls[0]!, TOOL_STALL)).toBeNull();+ expect(stuckCommand({}, 0)).toBeNull();+ });+});+// The harness's stall handler (index.ts), run without starting a server.describe("the stall handler", () => {function load(engineMemory = new EngineMemory({ enabled: false }), env: Record<string, string> = {}) {@@ -390,7 +420,7 @@ describe("the stall handler", () => {cancelDirectTurnDispatch() {}, revokeInternalCapabilitiesForThread() {}, repeats: { settle() {} },botForThread: () => ({ id: "eli" }), activeRoutineRunForThread: () => undefined,runningTurnInstance: () => ({ adapter: { interruptTurn: async () => {} } }),- failedTurnTool: (name: string) => ({ name, ok: false }), chatNotice, failedNoticeTool, reportIncident() {},+ failedTurnTool: (name: string) => ({ name, ok: false }), chatNotice, failedNoticeTool, stallNotice, reportIncident() {},settleDirectFollowup: (generation: string | undefined, outcome: { text: string }) => settled.push({ generation, text: outcome.text }),finalizeDelegationWatch: (_threadId: string, _ok: boolean, _reply: string, why: string) => delegations.push(why),setTimeout: () => ({ unref() {} }),@@ -414,6 +444,14 @@ describe("the stall handler", () => {expect(settled[0]!.text).toMatch(/^No activity for 120 minutes — the turn was stopped\. Before it stopped/);});+ it("names the shell command that was still running and how long it ran", () => {+ const { context, settled } = load();+ const startedAt = Date.now() - 120 * 60_000;+ const runningTools = new Map([["i1", { startedAt, command: "ffmpeg -i talk.mov talk.mp4" }]]);+ context.watchdog.options.onStall({ threadId: "t1", botId: "eli", runningTools }, 120 * 60_000);+ expect(settled[0]!.text).toMatch(/^The command `ffmpeg -i talk\.mov talk\.mp4` ran for 120 minutes without finishing and looks stuck — the turn was stopped\. Before it stopped/);+ });+it("never lets the environment switch the watchdog off", () => {for (const endless of ["Infinity", "1e309", "-Infinity"]) {const { context } = load(undefined, { OMB_TURN_STALL_MS: endless, OMB_TOOL_STALL_MS: endless });diff --git a/server/turn-watchdog.ts b/server/turn-watchdog.tsindex 76a76614cf..713c3fc31d 100644--- a/server/turn-watchdog.ts+++ b/server/turn-watchdog.ts@@ -11,7 +11,30 @@ export interface WatchedTurn {lastEventAt: number;waitingOnHuman: boolean;waitingOnComputer: boolean;- runningTools: Set<string>;+ runningTools: Map<string, RunningTool>;+}++/** A tool call the turn's engine started and has not ended; command: the shell command it runs, when it runs one. */+export interface RunningTool {+ startedAt: number;+ command?: string;+}++/** The longest-running shell command of a turn stopped at stopAt, with the whole minutes it ran: what the person is told+ * looks stuck. null when no running tool runs a shell command. */+export function stuckCommand(turn: Partial<Pick<WatchedTurn, "runningTools">>, stopAt: number): { command: string; minutes: number } | null {+ let oldest: RunningTool | undefined;+ for (const tool of turn.runningTools?.values() ?? []) {+ if (tool.command && (!oldest || tool.startedAt < oldest.startedAt)) oldest = tool;+ }+ return oldest?.command ? { command: oldest.command, minutes: Math.max(1, Math.round((stopAt - oldest.startedAt) / 60_000)) } : null;+}++/** What the person is told when the watchdog stops a turn silent for silentMs: the shell command still running, with how+ * long it ran, so they know what looked stuck; otherwise how long the turn was silent. */+export function stallNotice(turn: Partial<Pick<WatchedTurn, "runningTools">>, silentMs: number, stopAt: number) {+ const stuck = stuckCommand(turn, stopAt);+ return stuck ? { key: "chat.notice.stalledCommand" as const, params: stuck } : { key: "chat.notice.stalled" as const, params: { minutes: Math.round(silentMs / 60_000) } };}// Number() also reads "Infinity" and "1e309" as numbers, and an endless limit would switch the watchdog off.@@ -87,7 +110,7 @@ export class TurnWatchdog {watch(threadId: string, botId: string): void {const at = this.now();this.turns.set(threadId, { threadId, botId, startedAt: at, lastEventAt: at, waitingOnHuman: false, waitingOnComputer: false,- runningTools: new Set() });+ runningTools: new Map() });}observe(event: RuntimeEvent): void {@@ -96,7 +119,7 @@ export class TurnWatchdog {turn.lastEventAt = this.now();if ((event.type !== "item.started" && event.type !== "item.completed") || event.itemType !== "tool" || !event.itemId) return;if (event.type === "item.completed") turn.runningTools.delete(event.itemId);- else turn.runningTools.add(event.itemId);+ else turn.runningTools.set(event.itemId, { startedAt: turn.lastEventAt, ...(event.summary ? { command: event.summary } : {}) });}setWaitingOnHuman(threadId: string, waiting: boolean): void {diff --git a/src/locales/en.json b/src/locales/en.jsonindex bf963b7654..1979805cdb 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -8150,6 +8150,7 @@"chat.notice.resumingAfterRestart": "Resuming after a restart","chat.notice.cutOffByRestart": "{name} was cut off by a restart; resuming","chat.notice.stalled": "no activity for {minutes} minutes — the turn was stopped",+ "chat.notice.stalledCommand": "the command `{command}` ran for {minutes} minutes without finishing and looks stuck — the turn was stopped","chat.notice.followupInterrupted": "Queued follow-up interrupted by restart or restore — it may have already run. Review the result before sending it again.","chat.notice.usageLimit": "This {provider} account has reached its usage limit{detail}. Wait for it to reset, or switch this bot to another AI.","chat.notice.claudeExtraUsage": "Claude refused this turn because this model runs on extra usage for your account, and those credits are used up. Your plan's own usage is not affected: switch this bot to a model your plan includes, or add extra usage in your Claude account.",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex c0b918a2a6..2634451005 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -8118,6 +8118,7 @@"chat.notice.resumingAfterRestart": "Retomando após uma reinicialização","chat.notice.cutOffByRestart": "Uma reinicialização interrompeu {name}. Retomando.","chat.notice.stalled": "Sem atividade por {minutes} min. A sessão foi interrompida.",+ "chat.notice.stalledCommand": "O comando `{command}` rodou por {minutes} min sem terminar e parece travado. A sessão foi interrompida.","chat.notice.followupInterrupted": "Uma reinicialização ou restauração interrompeu a mensagem na fila, mas talvez ela já tenha sido processada. Confira o resultado antes de enviar novamente.","chat.notice.usageLimit": "Esta conta de {provider} atingiu o limite de uso{detail}. Espere o limite ser renovado ou troque a IA deste bot.","chat.notice.claudeExtraUsage": "O Claude recusou esta sessão porque este modelo consome os créditos de uso extra da sua conta, e esses créditos acabaram. O uso do seu plano não foi afetado: troque este bot para um modelo incluído no plano ou adicione uso extra na sua conta do Claude.",diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex aefdc23670..54c408c851 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -36470,7 +36470,8 @@"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f","settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567","devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",+ "chat.notice.stalledCommand": "5aa1ec21810ef3815f243d2058f4e167ad71aee5a8fabe1543ca83c6144399d1"},"zh": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",@@ -54696,7 +54697,8 @@"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f","settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567","devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",+ "chat.notice.stalledCommand": "5aa1ec21810ef3815f243d2058f4e167ad71aee5a8fabe1543ca83c6144399d1"},"uk": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 0367326096..facf4bd898 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -7777,6 +7777,7 @@"chat.notice.resumingAfterRestart": "重新啟動後繼續","chat.notice.cutOffByRestart": "{name} 因重新啟動而中斷;正在繼續","chat.notice.stalled": "已有 {minutes} 分鐘沒有活動,這個回合已停止",+ "chat.notice.stalledCommand": "指令 `{command}` 已執行 {minutes} 分鐘仍未完成,看起來卡住了,這個回合已停止","chat.notice.followupInterrupted": "排隊中的後續訊息因重新啟動或還原而中斷,可能已經執行過。再次傳送前請先檢查結果。","chat.notice.usageLimit": "這個 {provider} 帳號已達到使用上限{detail}。請等它重設,或把這個機器人切換到另一個 AI。","chat.notice.claudeExtraUsage": "Claude 拒絕了這個回合,因為這個模型會使用你帳號的額外用量,而這些額度已用完。你方案本身的用量不受影響:請把這個機器人切換到你方案包含的模型,或在你的 Claude 帳號中加購額外用量。",