Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(agent-chat): readable failed-turn cards, no raw runtime output (#1020)

Ruben Lütke5706dff1747b
diff --git a/dodaios/agent_chat/runner_cli.py b/dodaios/agent_chat/runner_cli.py
index 2f9a364eae..90cce6a185 100644
--- a/dodaios/agent_chat/runner_cli.py
+++ b/dodaios/agent_chat/runner_cli.py
@@ -4290,16 +4290,18 @@ async def _drive_cli(
continue
if not acp.handshaken:
if now - started > _ACP_HANDSHAKE_TIMEOUT_S:
- reason = (
- f"{runner} did not open its session within "
- f"{int(_ACP_HANDSHAKE_TIMEOUT_S // 60)} minutes; the turn was stopped."
- )
+ from dodaios.agent_chat.turn_errors import handshake_reason
+
+ reason = handshake_reason(runner, _ACP_HANDSHAKE_TIMEOUT_S)
break
continue
if now - activity[0] > _ACP_IDLE_TIMEOUT_S:
- reason = (
- f"{runner} stopped responding (nothing for "
- f"{int(_ACP_IDLE_TIMEOUT_S // 60)} minutes); the turn was stopped."
+ from dodaios.agent_chat.turn_errors import stall_reason
+
+ # The runtime's display name, and a hint when a local model is
+ # the likely cause (busy, slow, or queued behind another one).
+ reason = stall_reason(
+ runner, _ACP_IDLE_TIMEOUT_S, provider=str(handle.session.provider or "")
)
break
if not reason or acp.saw_result:
@@ -4437,11 +4439,21 @@ async def _drive_cli(
plan.acp is not None and plan.acp.saw_result
):
status = "error"
+ raw_tail = "\n".join(stderr_tail[-8:]).strip()
+ if raw_tail:
+ from dodaios.agent_chat.turn_errors import redact
+
+ # The raw tail stays in the log, redacted; the card shows a
+ # short reason (``turn_errors.readable_turn_error``).
+ log.warning(
+ "agent chat %s: %s exited with code %s; stderr tail:\n%s",
+ handle.turn_id, runner, proc.returncode, redact(raw_tail),
+ )
error_text = (
state.error
or getattr(state, "last_error", None)
or getattr(state, "last_tool_error", None)
- or "\n".join(stderr_tail[-8:]).strip()
+ or raw_tail
or f"{runner} exited with code {proc.returncode}."
)
elif plan.shape == "codex" and state.failed_tools:
diff --git a/dodaios/agent_chat/service.py b/dodaios/agent_chat/service.py
index e3caf8d69a..e9ae99e8da 100644
--- a/dodaios/agent_chat/service.py
+++ b/dodaios/agent_chat/service.py
@@ -34,7 +34,7 @@ from pathlib import Path
from typing import Any, Final
from dodaios.agent_chat import attachments as chat_attachments
-from dodaios.agent_chat import turn_prompts
+from dodaios.agent_chat import turn_errors, turn_prompts
from dodaios.agent_chat.approval_bridge import ChatApprovalBridge
from dodaios.agent_chat.catalog import PROVIDER_ROWS, api_seat, offers, provider_row
from dodaios.agent_chat.credential_requests import (
@@ -96,10 +96,7 @@ def _stop_caller() -> str:
)
#: What a turn cut off by a restart says (``_seal_orphaned_turns``).
-_ORPHANED_TURN_ERROR: Final = (
- "Dodaios restarted while this turn was running. "
- "Everything after the last step shown here was not captured."
-)
+_ORPHANED_TURN_ERROR: Final = turn_errors.APP_RESTARTED
Subscriber = asyncio.Queue[dict[str, Any]]
@@ -1101,6 +1098,8 @@ class AgentChatService:
if turn_id and self.store.turn_terminal(session_id, turn_id) is not None:
log.warning("agent chat: ignored duplicate completion for turn %s", turn_id)
return
+ if event.get("kind") in {"turn_finished", "error"}:
+ event = self._readable_error(session_id, event)
stored = self.store.append_event(session_id, event)
if event.get("kind") == "turn_finished":
self._announce_jarvis_turn(session_id, event)
@@ -1118,6 +1117,35 @@ class AgentChatService:
log.debug("agent chat: subscriber queue full for %s — dropping it", session_id)
self.unsubscribe(session_id, q)
+ def _readable_error(self, session_id: str, event: dict[str, Any]) -> dict[str, Any]:
+ """``event`` with its error as a short reason; a raw dump moves to ``error_details``.
+
+ One place for every runner: a stderr dump, prompt text, an internal
+ URL or a bare "Internal error" never reaches the failed-turn card
+ (``turn_errors.readable_turn_error``).
+ """
+ payload = event.get("payload") or {}
+ field = "error" if event.get("kind") == "turn_finished" else "message"
+ raw = payload.get(field)
+ if not isinstance(raw, str) or not raw.strip():
+ return event
+ session = self.store.get_session(session_id)
+ runtime = session.runtime if session is not None else ""
+ provider = session.provider if session is not None else ""
+ runner = EXTERNAL_RUNTIME_RUNNERS.get(runtime, "")
+ if not runner and provider:
+ row = provider_row(provider)
+ runner = row.runner if row is not None else ""
+ reason, details = turn_errors.readable_turn_error(raw, runner=runner, provider=provider)
+ if reason == raw and details is None:
+ return event
+ if details:
+ log.warning("agent chat %s: turn failed; details: %s", session_id, details)
+ new_payload = {**payload, field: reason}
+ if details:
+ new_payload["error_details"] = details
+ return {**event, "payload": new_payload}
+
def _announce_jarvis_turn(self, session_id: str, event: dict[str, Any]) -> None:
"""Publish ``JarvisChatTurnFinished`` for a finished turn of a Jarvis chat."""
bus = self._bus()
diff --git a/dodaios/agent_chat/turn_errors.py b/dodaios/agent_chat/turn_errors.py
new file mode 100644
index 0000000000..d89b18f5bf
--- /dev/null
+++ b/dodaios/agent_chat/turn_errors.py
@@ -0,0 +1,251 @@
+"""Readable reasons for failed agent-chat turns.
+
+A runtime that fails can leave anything as its last words: a stderr dump with
+log lines, part of the agent's own system prompt, the internal gateway URL,
+paths under the person's home folder, or a bare JSON-RPC "Internal error".
+None of that belongs on the red failed-turn card. :func:`readable_turn_error`
+turns such an error into one short sentence the person can act on, and keeps
+the raw text only as redacted ``details`` (the card folds them behind a
+"Technical details" disclosure; the log gets the same redacted text).
+
+Short, deliberate reasons a runner already wrote (a usage limit, a context
+window, a missing key) pass through unchanged: other code matches on them.
+"""
+
+from __future__ import annotations
+
+import os
+import re
+from typing import Final
+
+#: What the card says while a runtime migrates its own database.
+RUNTIME_UPDATING: Final = "The agent runtime is updating its data. Try again in a moment."
+#: What the card says while a runtime has not finished starting the agent.
+STILL_STARTING: Final = "The agent is still starting up. Try again in a moment."
+#: What a turn cut off by an app restart says.
+APP_RESTARTED: Final = "The app restarted while this turn was running. Send it again."
+
+#: The display name of each runner the person never sees by its id.
+_RUNNER_LABELS: Final[dict[str, str]] = {
+ "hermes-cli": "Hermes",
+ "openclaw-cli": "OpenClaw",
+ "claude-cli": "Claude Code",
+ "codex-cli": "Codex",
+ "agy-cli": "Antigravity",
+ "grok-cli": "Grok Build",
+ "opencode-cli": "OpenCode",
+ "kimi-cli": "Kimi Code",
+ "glm-cli": "GLM Coding Plan",
+ "dsh-cli": "DeepSeek Harness",
+ "cursor-cli": "Cursor CLI",
+ "api": "The model",
+ "brain": "The model",
+}
+
+#: Providers that run on this computer when the provider spec cannot be read.
+_LOCAL_FALLBACK: Final = frozenset({"ollama", "local-openai", "lmstudio", "llama-cpp", "llama_cpp"})
+
+_SCHEMA_MIGRATION = re.compile(r"schema version.*doctor --fix", re.IGNORECASE | re.DOTALL)
+_STARTUP_INSPECTION = re.compile(r"has not completed startup inspection", re.IGNORECASE)
+_STALL = re.compile(
+ r"^(?P<runner>[\w.-]+) stopped responding \(nothing for (?P<minutes>\d+) minutes?\)"
+)
+#: The restart reason turns stored before :data:`APP_RESTARTED` existed.
+_RESTARTED = re.compile(r"^(?:The app|\w+) restarted while this turn was running\b")
+_INTERNAL_ERROR = re.compile(r"^Internal error(?::\s*(?P<rest>.*))?$", re.DOTALL)
+#: A log line ("2026-10-27 17:05:19 [INFO] ...") or a Python traceback.
+_LOG_LINE = re.compile(r"^\s*\d{4}-\d\d-\d\d[ T]\d\d:\d\d:\d\d", re.MULTILINE)
+_RAW_MARKERS = re.compile(
+ r"Traceback \(most recent call last\)|\[(?:INFO|DEBUG|WARNING|ERROR)\]|<jarvis_identity>",
+)
+#: A block of the agent's own prompt (``<jarvis_identity> ... </jarvis_identity>``),
+#: closed or cut off by the end of the dump / the next log line.
+_PROMPT_BLOCK = re.compile(
+ r"<(?P<tag>jarvis_[a-z_]+|system|system_prompt|instructions)>.*?"
+ r"(?:</(?P=tag)>|(?=\n[ \t]*\d{4}-\d\d-\d\d[ T]\d\d:\d\d)|\Z)",
+ re.DOTALL,
+)
+#: A one-line prompt preview a runtime logs (``msg='<jarvis_identity> ...'``).
+_PROMPT_PREVIEW = re.compile(r"msg='[^'\n]*'?")
+_URL = re.compile(r"\b[a-z][a-z0-9+.-]*://[^\s'\"<>)]+", re.IGNORECASE)
+_SECRET = re.compile(
+ r"(?i)\b(?:sk|pk|rk|ghp|gho|xox[abp])[-_][A-Za-z0-9_-]{8,}|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}"
+)
+#: A spent plan allowance, in the words the card recognises
+#: (``turnError.ts`` USAGE_LIMIT); a dump that carries one keeps that meaning.
+_USAGE_LIMIT = re.compile(
+ r"usage[ _]limit|allowance (?:is )?used up|allowance resets", re.IGNORECASE
+)
+_RESET_AT = re.compile(r"resets at (\d{4}-\d\d-\d\dT\d\d:\d\d(?::\d\d)?Z)")
+_TRY_AGAIN_AT = re.compile(
+ r"try again at ([A-Z][a-z]{2,8} \d{1,2}(?:st|nd|rd|th)?, \d{4} \d{1,2}:\d\d(?: ?[AP]M)?)"
+)
+#: A conversation longer than the model's window (``turnError.ts`` CONTEXT_FULL).
+_CONTEXT_FULL = re.compile(
+ r"context window exceeded|no longer fits this model's context window|"
+ r"context[ _]length[ _]exceeded|context overflow|prompt is too long|"
+ r"exceeds the model's context",
+ re.IGNORECASE,
+)
+#: What the card says for a dump that names a spent allowance / a full window.
+USAGE_LIMIT_REACHED: Final = "The usage limit for this model is used up."
+CONTEXT_FULL: Final = "The conversation no longer fits this model's context window."
+#: How much of a raw dump the details keep.
+_DETAILS_MAX_CHARS: Final = 2000
+
+
+def runner_label(runner: str) -> str:
+ """The name the person knows a runner by ("openclaw-cli" -> "OpenClaw")."""
+ if runner in _RUNNER_LABELS:
+ return _RUNNER_LABELS[runner]
+ base = runner.removesuffix("-cli")
+ return base[:1].upper() + base[1:] if base else "The agent"
+
+
+def is_local_provider(provider: str) -> bool:
+ """Whether ``provider`` runs its model on this computer."""
+ try:
+ from dodaios.brain.app_control import LOCAL_PROVIDERS
+ except Exception: # noqa: BLE001 — the spec is optional here; the fallback list decides
+ return provider in _LOCAL_FALLBACK
+ return provider in LOCAL_PROVIDERS or provider in _LOCAL_FALLBACK
+
+
+def _span(seconds: float) -> str:
+ if seconds >= 60:
+ minutes = int(seconds // 60)
+ return f"{minutes} minute" + ("" if minutes == 1 else "s")
+ whole = max(1, int(seconds))
+ return f"{whole} second" + ("" if whole == 1 else "s")
+
+
+def stall_reason(runner: str, seconds: float, *, provider: str = "") -> str:
+ """Why a turn whose runtime went silent for ``seconds`` was stopped."""
+ label = runner_label(runner)
+ span = _span(seconds)
+ if is_local_provider(provider):
+ return (
+ f"{label} got no reply from the local model for {span}, so the turn was "
+ "stopped. The model may be busy, slow, or still loading behind another "
+ "model. Try again, or pick a smaller model."
+ )
+ return f"{label} got no reply from the model for {span}, so the turn was stopped. Try again."
+
+
+def handshake_reason(runner: str, seconds: float) -> str:
+ """Why a turn whose runtime never opened its session was stopped."""
+ return (
+ f"{runner_label(runner)} did not open its session within {_span(seconds)}, "
+ "so the turn was stopped. Try again in a moment."
+ )
+
+
+def _home_dirs() -> list[str]:
+ homes = {os.path.expanduser("~")}
+ for var in ("USERPROFILE", "HOME"):
+ value = os.environ.get(var)
+ if value:
+ homes.add(value)
+ out: list[str] = []
+ for home in homes:
+ if home and home not in {"~", "/", "\\"}:
+ out.append(home)
+ out.append(home.replace("\\", "/"))
+ out.append(home.replace("\\", "\\\\"))
+ return sorted(set(out), key=len, reverse=True)
+
+
+def redact(text: str) -> str:
+ """``text`` without prompt blocks, URLs, secrets or the person's home folder."""
+ out = _PROMPT_PREVIEW.sub("msg=[removed]", text)
+ out = _PROMPT_BLOCK.sub("[agent instructions removed]", out)
+ out = _SECRET.sub("[redacted]", out)
+ out = _URL.sub("[url]", out)
+ for home in _home_dirs():
+ out = re.sub(re.escape(home), "~", out, flags=re.IGNORECASE)
+ # A profile path the env did not name (another account, a short name); a
+ # profile folder may contain spaces ("C:\Users\First Last\...").
+ out = re.sub(r"(?i)\b[A-Z]:[\\/]+Users[\\/]+[^\\/\r\n'\"<>|:*?]+(?=[\\/])", "~", out)
+ out = re.sub(r"(?i)\b[A-Z]:[\\/]+Users[\\/]+[^\\/\s'\"]+", "~", out)
+ out = re.sub(r"/(?:home|Users)/[^/\r\n'\"<>|:*?]+(?=/)", "~", out)
+ out = re.sub(r"/(?:home|Users)/[^/\s'\"]+", "~", out)
+ out = "\n".join(line.rstrip() for line in out.splitlines()).strip()
+ if len(out) > _DETAILS_MAX_CHARS:
+ out = "…" + out[-_DETAILS_MAX_CHARS:]
+ return out
+
+
+def looks_raw(text: str) -> bool:
+ """Whether ``text`` is a dump (log lines, a traceback, prompt text), not a reason."""
+ if _RAW_MARKERS.search(text) or _LOG_LINE.search(text):
+ return True
+ lines = [line for line in text.splitlines() if line.strip()]
+ return len(lines) > 3 or len(text) > 600
+
+
+def gateway_unavailable_reason(text: str) -> str:
+ """The reason for a runtime's known UNAVAILABLE reply ("" = not one of them)."""
+ if _SCHEMA_MIGRATION.search(text):
+ return RUNTIME_UPDATING
+ if _STARTUP_INSPECTION.search(text):
+ return STILL_STARTING
+ return ""
+
+
+def _known_meaning(text: str) -> str:
+ """A short reason for a dump that names a spent allowance or a full window ("" = none).
+
+ The card turns these into an actionable sentence (and hides Retry until
+ the allowance resets), so the meaning and the reset time must survive.
+ """
+ if _USAGE_LIMIT.search(text):
+ iso = _RESET_AT.search(text)
+ if iso:
+ return f"{USAGE_LIMIT_REACHED} It resets at {iso.group(1)}."
+ vendor = _TRY_AGAIN_AT.search(text)
+ if vendor:
+ return f"{USAGE_LIMIT_REACHED} You can try again at {vendor.group(1)}."
+ return USAGE_LIMIT_REACHED
+ if _CONTEXT_FULL.search(text):
+ return CONTEXT_FULL
+ return ""
+
+
+def readable_turn_error(
+ error: str | None, *, runner: str = "", provider: str = ""
+) -> tuple[str | None, str | None]:
+ """``(reason, details)`` for a failed turn's error text.
+
+ ``reason`` is one short sentence for the card; ``details`` the redacted
+ raw text when the original was a dump, else ``None``.
+ """
+ if not error:
+ return error, None
+ text = str(error).strip()
+ label = runner_label(runner) if runner else "The agent"
+ if _SCHEMA_MIGRATION.search(text):
+ return RUNTIME_UPDATING, redact(text)
+ if _STARTUP_INSPECTION.search(text):
+ return STILL_STARTING, redact(text)
+ stall = _STALL.match(text)
+ if stall and stall.group("runner") in _RUNNER_LABELS:
+ seconds = int(stall.group("minutes")) * 60
+ return stall_reason(stall.group("runner"), seconds, provider=provider), None
+ internal = _INTERNAL_ERROR.match(text)
+ if (internal or looks_raw(text)) and (known := _known_meaning(text)):
+ return known, redact(text) or None
+ if internal:
+ rest = (internal.group("rest") or "").strip()
+ return (
+ f"{label} hit an internal error and stopped this turn. Try again.",
+ redact(rest) or None,
+ )
+ if _RESTARTED.match(text):
+ return APP_RESTARTED, None
+ if looks_raw(text):
+ return f"{label} stopped with an error. Try again.", redact(text) or None
+ # "openclaw-cli exited with code 1." names the runtime as the person knows it.
+ head, sep, rest = text.partition(" ")
+ if sep and head in _RUNNER_LABELS and head.endswith("-cli"):
+ return f"{_RUNNER_LABELS[head]} {rest}", None
+ return text, None
diff --git a/dodaios/agent_runtimes/acp.py b/dodaios/agent_runtimes/acp.py
index 7d29c47ea4..56b76ed772 100644
--- a/dodaios/agent_runtimes/acp.py
+++ b/dodaios/agent_runtimes/acp.py
@@ -37,6 +37,7 @@ from dataclasses import dataclass, field
from typing import Any, Final, Protocol
from dodaios.agent_chat.events import make_event
+from dodaios.agent_chat.turn_errors import gateway_unavailable_reason
from dodaios.core.mcp_names import CLI_TOOL_PREFIX, TOOLS_SERVER_NAMES, cli_tool_name
log = logging.getLogger(__name__)
@@ -678,8 +679,12 @@ def _error_text(error: dict[str, Any]) -> str:
f"Hermes requires at least {minimum} context tokens; this model has {actual}. "
"Increase the model context in Settings or choose a model with a larger window."
)
+ # A Gateway UNAVAILABLE reply behind the SDK's generic wrapper: the
+ # known conditions as a reason, never the reply itself.
+ if known := gateway_unavailable_reason(detail):
+ return known
if isinstance(data, str) and data:
- return f"{message}: {data}"
+ return gateway_unavailable_reason(data) or f"{message}: {data}"
if isinstance(data, dict) and data.get("message"):
return f"{message}: {data['message']}"
return message
diff --git a/dodaios/ui/web/frontend/src/components/agentchat/MessengerTurn.tsx b/dodaios/ui/web/frontend/src/components/agentchat/MessengerTurn.tsx
index 2bd46e53b7..5aabd4dc88 100644
--- a/dodaios/ui/web/frontend/src/components/agentchat/MessengerTurn.tsx
+++ b/dodaios/ui/web/frontend/src/components/agentchat/MessengerTurn.tsx
@@ -15,7 +15,7 @@ import { SubagentCard } from "@/components/agentic/threads/ThreadSubagents";
import { isSubagentCall } from "@/components/agentic/threads/subagents";
import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
-import { turnErrorText } from "./turnError";
+import { turnErrorView, type TurnErrorView } from "./turnError";
/**
* One agent turn read like a messenger conversation. The agent's messages
@@ -82,7 +82,7 @@ export const MessengerTurn = memo(function MessengerTurn({ turn, avatar, color,
<ActivityLine turn={turn} avatar={avatar} color={color} nameOf={nameOf} peerFace={peerFace} />
{work}
</div> : flourish ? <BotStage presence="done" seed={turn.id} avatar={avatar} color={color} /> : null}
- {failed && <TurnFailure reason={turnErrorText(turn.error, t) || t("thread_turn.failed_no_reason")} onRetry={onRetry} />}
+ {failed && <TurnFailure view={turnErrorView(turn.error, turn.errorDetails, t)} onRetry={onRetry} />}
{turn.status === "cancelled" && <SystemLine>{t("thread_turn.stopped")}</SystemLine>}
{turn.status === "done" && !failed && !hasText && !flourish && <SystemLine>{t("thread_turn.no_answer")}</SystemLine>}
{!running ? work : null}
@@ -119,17 +119,30 @@ export function MessageBubble({ text }: { text: string }) {
</div>;
}
-/** A failed turn: the reason the runtime gave, and one click to send the message again. */
-export function TurnFailure({ reason, onRetry }: { reason: string; onRetry?: () => void }) {
+/**
+ * A failed turn: a short readable reason, the runtime's raw output (redacted)
+ * folded behind "Technical details", and one click to send the message again
+ * when that can work (not while a spent allowance waits for its reset).
+ */
+export function TurnFailure({ view, onRetry }: { view: TurnErrorView | null; onRetry?: () => void }) {
const t = useT();
+ const reason = view?.reason || t("thread_turn.failed_no_reason");
+ const details = view?.details ?? null;
+ const retry = view?.retryable === false ? undefined : onRetry;
return <div role="alert" data-testid="turn-failure"
className="flex min-w-0 max-w-[min(85%,42rem)] items-start gap-2 rounded-2xl border border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive">
<CircleAlert aria-hidden className="mt-px h-3.5 w-3.5 shrink-0" />
<div className="flex min-w-0 flex-1 flex-col gap-0.5">
<span className="font-medium">{t("thread_turn.failed_title")}</span>
<span className="[overflow-wrap:anywhere] text-destructive/90" data-testid="turn-failure-reason">{reason}</span>
+ {details ? <details className="mt-0.5 min-w-0" data-testid="turn-failure-details">
+ <summary className="cursor-pointer select-none text-destructive/80 hover:text-destructive focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
+ {t("thread_turn.technical_details")}
+ </summary>
+ <pre className="mt-1 max-h-48 overflow-auto whitespace-pre-wrap rounded-md bg-destructive/5 p-2 font-mono text-[11px] leading-snug text-destructive/80 [overflow-wrap:anywhere]">{details}</pre>
+ </details> : null}
</div>
- {onRetry ? <button type="button" onClick={onRetry} data-testid="turn-retry"
+ {retry ? <button type="button" onClick={retry} data-testid="turn-retry"
className="flex shrink-0 items-center gap-1 rounded-md border border-destructive/40 px-2 py-0.5 font-medium transition-colors hover:bg-destructive/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
<RotateCcw aria-hidden className="h-3 w-3" />
{t("thread_turn.retry")}
diff --git a/dodaios/ui/web/frontend/src/components/agentchat/reduce.ts b/dodaios/ui/web/frontend/src/components/agentchat/reduce.ts
index 1e4b8e8071..a0b318d834 100644
--- a/dodaios/ui/web/frontend/src/components/agentchat/reduce.ts
+++ b/dodaios/ui/web/frontend/src/components/agentchat/reduce.ts
@@ -303,6 +303,8 @@ export interface TurnItem {
liveUsage: Record<string, number> | null;
costUsd: number | null;
error: string | null;
+ /** The runtime's raw output behind the error, redacted, for "Technical details". */
+ errorDetails?: string | null;
/** The plan card of a turn that finished in plan mode. */
plan?: PlanState;
/**
@@ -1315,6 +1317,7 @@ export function reduceEvent(tl: Timeline, ev: AgentChatEvent): Timeline {
// A runtime's own error event earlier in the turn stays its reason
// when the end of the turn names none.
error: str(p.error, "") || turn.error || null,
+ errorDetails: str(p.error_details, "") || (str(p.error, "") ? null : turn.errorDetails ?? null),
...(Array.isArray(p.background) && p.background.length > 0
? { background: (p.background as unknown[]).map((name) => str(name)) }
: {}),
@@ -1343,7 +1346,7 @@ export function reduceEvent(tl: Timeline, ev: AgentChatEvent): Timeline {
const text = str(p.message);
if (!text) return base;
if (turnId && findTurn(base.items, turnId) >= 0) {
- return updateTurn(base, turnId, (turn) => ({ ...turn, error: text }));
+ return updateTurn(base, turnId, (turn) => ({ ...turn, error: text, errorDetails: str(p.error_details, "") || null }));
}
return {
...base,
diff --git a/dodaios/ui/web/frontend/src/components/agentchat/turnError.test.ts b/dodaios/ui/web/frontend/src/components/agentchat/turnError.test.ts
index 89f198be79..cddc391386 100644
--- a/dodaios/ui/web/frontend/src/components/agentchat/turnError.test.ts
+++ b/dodaios/ui/web/frontend/src/components/agentchat/turnError.test.ts
@@ -4,7 +4,7 @@ import en from "@/i18n/locales/en.json";
import es from "@/i18n/locales/es.json";
import pt from "@/i18n/locales/pt.json";
import zh from "@/i18n/locales/zh.json";
-import { resetTimeLabel, turnErrorText } from "./turnError";
+import { redactDetails, resetTimeLabel, turnErrorText, turnErrorView } from "./turnError";
const CODES = [
"mandated_tool_unfulfilled",
@@ -83,3 +83,105 @@ describe("resetTimeLabel", () => {
expect(resetTimeLabel("not a date", now)).toBeNull();
});
});
+
+describe("turnErrorView for runtime failures", () => {
+ const t = (key: string) => `T:${key}`;
+ const HERMES_DUMP = [
+ "2026-10-27 17:05:19 [INFO] tools.tool_search: tool_search activated (tier 1): 10 core/visible tools kept",
+ "2026-10-27 17:05:19 [INFO] acp_adapter.server: New session 6d5a (cwd=C:\\Users\\Someone\\Desktop\\Personal Jarvis\\data\\society\\qa)",
+ "2026-10-27 17:05:21 [INFO] acp_adapter.server: Prompt on session 6d5a: <jarvis_identity>",
+ "## You are QA Hermes local",
+ "Tier: specialist. Permission ceiling: ask.",
+ "2026-10-27 17:05:21 [INFO] agent.turn_context: conversation turn: msg='<jarvis_identity> ## You are QA Hermes local...'",
+ "2026-10-27 17:05:25 [INFO] run_agent: OpenAI client created provider=custom base_url=http://127.0.0.1:47821/api/runtime-gateway/v1?token=abc model=qwen3.5:9b",
+ ].join("\n");
+
+ it("never puts a raw stderr dump on the card; the redacted tail goes to the details", () => {
+ const view = turnErrorView(HERMES_DUMP, null, t)!;
+ expect(view.reason).toBe("T:thread_turn.errors.crashed");
+ expect(view.reason).not.toContain("jarvis_identity");
+ expect(view.details).toBeTruthy();
+ for (const leak of ["You are QA Hermes", "<jarvis_identity>", "127.0.0.1:47821", "runtime-gateway", "token=abc", "Someone", "Permission ceiling"]) {
+ expect(view.details).not.toContain(leak);
+ }
+ expect(view.details).toContain("tool_search activated");
+ });
+
+ it("redacts the backend's details too, and keeps them out of the reason", () => {
+ const view = turnErrorView("Hermes stopped with an error. Try again.", "see https://x.example/a?key=1 at /home/someone/x", t)!;
+ expect(view.reason).toBe("T:thread_turn.errors.crashed");
+ expect(view.details).toBe("see [url] at ~/x");
+ });
+
+ it("maps gateway UNAVAILABLE replies to a readable reason", () => {
+ expect(turnErrorView("Internal error: UNAVAILABLE: OpenClaw agent database C:/x uses schema version 3; run openclaw doctor --fix to migrate persisted media before using it.", null, t)!.reason)
+ .toBe("T:thread_turn.errors.runtime_updating");
+ expect(turnErrorView("Internal error: Agent main has not completed startup inspection and preparation. busy", null, t)!.reason)
+ .toBe("T:thread_turn.errors.still_starting");
+ expect(turnErrorView("The agent is still starting up. Try again in a moment.", null, t)!.reason)
+ .toBe("T:thread_turn.errors.still_starting");
+ const bare = turnErrorView("Internal error", null, t)!;
+ expect(bare.reason).toBe("T:thread_turn.errors.internal");
+ expect(bare.details).toBeNull();
+ });
+
+ it("names the runtime by its display name when it went silent, and blames a local model gently", () => {
+ const legacy = turnErrorView("openclaw-cli stopped responding (nothing for 5 minutes); the turn was stopped.", null, (key) => key === "thread_turn.errors.stall" ? "{runtime}/{minutes}" : key)!;
+ expect(legacy.reason).toBe("OpenClaw/5");
+ const local = turnErrorView("OpenClaw got no reply from the local model for 5 minutes, so the turn was stopped. The model may be busy.", null, (key) => key === "thread_turn.errors.stall_local" ? "L:{runtime}/{minutes}" : key)!;
+ expect(local.reason).toBe("L:OpenClaw/5");
+ });
+
+ it("says the app restarted, in the old wording too", () => {
+ for (const text of [
+ "Dodaios restarted while this turn was running. Everything after the last step shown here was not captured.",
+ "Jarvis restarted while this turn was running.",
+ "The app restarted while this turn was running. Send it again.",
+ ]) expect(turnErrorView(text, null, t)!.reason).toBe("T:thread_turn.errors.app_restarted");
+ });
+
+ it("offers no Retry while a spent allowance waits for a future reset", () => {
+ const now = new Date("2026-10-27T10:00:00Z");
+ const future = "The ChatGPT subscription reached its usage limit: the plan's allowance is used up until it resets (it resets at 2026-11-18T17:19:20Z).";
+ expect(turnErrorView(future, null, t, now)!.retryable).toBe(false);
+ const past = "The ChatGPT subscription reached its usage limit: the plan's allowance is used up until it resets (it resets at 2026-10-01T17:19:20Z).";
+ expect(turnErrorView(past, null, t, now)!.retryable).toBe(true);
+ const vendor = "You've hit your usage limit. Visit https://chatgpt.com/codex/settings/usage to purchase more credits or try again at Nov 15th, 2026 3:37 PM.";
+ expect(turnErrorView(vendor, null, t, now)!.retryable).toBe(false);
+ expect(turnErrorView("Provider timed out", null, t, now)!.retryable).toBe(true);
+ });
+
+ it("swaps a runner id for its name and leaves a plain reason alone", () => {
+ expect(turnErrorView("openclaw-cli exited with code 1.", null, t)!.reason).toBe("OpenClaw exited with code 1.");
+ expect(turnErrorView("Ollama is not reachable.", null, t)!.reason).toBe("Ollama is not reachable.");
+ });
+
+ it("has the runtime sentences in every UI language", () => {
+ for (const locale of [en, de, es, pt, zh]) {
+ const block = (locale as { thread_turn: { technical_details: string; errors: Record<string, string> } }).thread_turn;
+ expect(block.technical_details?.length).toBeGreaterThan(2);
+ for (const key of ["runtime_updating", "still_starting", "app_restarted", "the_agent"]) expect(block.errors[key]?.length).toBeGreaterThan(1);
+ for (const key of ["stall", "stall_local"]) expect(block.errors[key]).toMatch(/\{runtime\}[\s\S]*\{minutes\}|\{minutes\}[\s\S]*\{runtime\}/);
+ for (const key of ["internal", "crashed"]) expect(block.errors[key]).toContain("{runtime}");
+ }
+ });
+});
+
+describe("redactDetails for a profile folder with spaces", () => {
+ it("hides the whole folder name, not only its first word", () => {
+ const out = redactDetails("C:/Users/First Last/proj/a.py and /home/first last/b");
+ expect(out).toBe("~/proj/a.py and ~/b");
+ });
+});
+
+describe("turnErrorView for the backend's usage-limit reason", () => {
+ it("keeps Retry hidden until the vendor's reset time", () => {
+ const t = (key: string) => key;
+ const now = new Date("2026-10-14T12:00:00");
+ const view = turnErrorView("The usage limit for this model is used up. You can try again at Oct 15th, 2026 3:37 PM.", "raw", t, now)!;
+ expect(view.reason).toBe("thread_turn.errors.usage_limit_until");
+ expect(view.retryable).toBe(false);
+ const iso = turnErrorView("The usage limit for this model is used up. It resets at 2026-10-28T15:04:00Z.", null, t, now)!;
+ expect(iso.retryable).toBe(false);
+ });
+});
diff --git a/dodaios/ui/web/frontend/src/components/agentchat/turnError.ts b/dodaios/ui/web/frontend/src/components/agentchat/turnError.ts
index 64dea8c9c4..f2867068cb 100644
--- a/dodaios/ui/web/frontend/src/components/agentchat/turnError.ts
+++ b/dodaios/ui/web/frontend/src/components/agentchat/turnError.ts
@@ -34,6 +34,60 @@ const CONTEXT_FULL = [
/** The UTC reset time the gateway names ("resets at 2026-10-27T15:04:00Z"). */
const RESET_AT = /resets at (\d{4}-\d\d-\d\dT\d\d:\d\d(?::\d\d)?Z)/;
+/** A vendor's own wording ("try again at Oct 15th, 2026 3:37 PM"). */
+const TRY_AGAIN_AT = /try again at ([A-Z][a-z]{2,8} \d{1,2})(?:st|nd|rd|th)?(, \d{4} \d{1,2}:\d\d(?: ?[AP]M)?)/;
+
+/**
+ * Runtime failures the backend maps to short reasons
+ * (``dodaios/agent_chat/turn_errors.py``); the patterns also match the raw
+ * wording turns stored before that mapping existed.
+ */
+const RUNTIME_UPDATING = [/schema version[\s\S]*doctor --fix/i, /^The agent runtime is updating its data\b/];
+const STILL_STARTING = [/has not completed startup inspection/i, /^The agent is still starting up\b/];
+const APP_RESTARTED = /^(?:The app|\w+) restarted while this turn was running\b/;
+const STALL_LEGACY = /^([\w.-]+-cli) stopped responding \(nothing for (\d+) minutes?\)/;
+const STALL = /^(.+?) got no reply from the (local )?model for (\d+) minutes?, so the turn was stopped/;
+const INTERNAL = /^(?:(.+?) hit an internal error and stopped this turn\b|Internal error(?::\s*([\s\S]*))?$)/;
+const CRASHED = /^(.+?) stopped with an error\. Try again\.$/;
+/** A log line ("2026-10-27 17:05:19 [INFO] ..."), a traceback, or the agent's own prompt. */
+const RAW_MARKERS = /Traceback \(most recent call last\)|\[(?:INFO|DEBUG|WARNING|ERROR)\]|<jarvis_identity>|^\s*\d{4}-\d\d-\d\d[ T]\d\d:\d\d:\d\d/m;
+
+/** The name the person knows a runtime by. */
+const RUNNER_LABELS: Record<string, string> = {
+ "hermes-cli": "Hermes",
+ "openclaw-cli": "OpenClaw",
+ "claude-cli": "Claude Code",
+ "codex-cli": "Codex",
+ "agy-cli": "Antigravity",
+ "grok-cli": "Grok Build",
+ "opencode-cli": "OpenCode",
+ "kimi-cli": "Kimi Code",
+ "glm-cli": "GLM Coding Plan",
+ "dsh-cli": "DeepSeek Harness",
+ "cursor-cli": "Cursor CLI",
+};
+
+const DETAILS_MAX = 2000;
+
+/**
+ * Raw runtime output made safe to show behind "Technical details": no blocks
+ * of the agent's own prompt, no URLs (they can carry tokens or name internal
+ * endpoints), no keys, and the person's home folder as "~".
+ */
+export function redactDetails(text: string): string {
+ let out = text
+ .replace(/msg='[^'\n]*'?/g, "msg=[removed]")
+ .replace(/<(jarvis_[a-z_]+|system|system_prompt|instructions)>[\s\S]*?(?:<\/\1>|(?=\n[ \t]*\d{4}-\d\d-\d\d[ T]\d\d:\d\d)|$(?![\s\S]))/g, "[agent instructions removed]")
+ .replace(/\b(?:sk|pk|rk|ghp|gho|xox[abp])[-_][A-Za-z0-9_-]{8,}|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi, "[redacted]")
+ .replace(/\b[a-z][a-z0-9+.-]*:\/\/[^\s'"<>)]+/gi, "[url]")
+ // A profile folder may contain spaces ("C:\Users\First Last\...").
+ .replace(/\b[A-Z]:[\\/]+Users[\\/]+[^\\/\r\n'"<>|:*?]+(?=[\\/])/gi, "~")
+ .replace(/\b[A-Z]:[\\/]+Users[\\/]+[^\\/\s'"]+/gi, "~")
+ .replace(/\/(?:home|Users)\/[^/\r\n'"<>|:*?]+(?=\/)/g, "~")
+ .replace(/\/(?:home|Users)\/[^/\s'"]+/g, "~");
+ out = out.split(/\r?\n/).map((line) => line.trimEnd()).join("\n").trim();
+ return out.length > DETAILS_MAX ? `…${out.slice(-DETAILS_MAX)}` : out;
+}
/** A reset time in the person's own clock; the day too when it is not today. */
export function resetTimeLabel(iso: string, now: Date = new Date()): string | null {
@@ -45,24 +99,99 @@ export function resetTimeLabel(iso: string, now: Date = new Date()): string | nu
: { weekday: "short", day: "numeric", month: "short", hour: "2-digit", minute: "2-digit" });
}
+/** When a spent allowance comes back, if the error says. */
+function resetDate(error: string): Date | null {
+ const iso = RESET_AT.exec(error);
+ if (iso) {
+ const at = new Date(iso[1]);
+ return Number.isNaN(at.getTime()) ? null : at;
+ }
+ const vendor = TRY_AGAIN_AT.exec(error);
+ if (vendor) {
+ const at = new Date(`${vendor[1]}${vendor[2]}`.replace(/(\d)([AP]M)$/, "$1 $2"));
+ return Number.isNaN(at.getTime()) ? null : at;
+ }
+ return null;
+}
+
+/** What the failed-turn card shows. */
+export interface TurnErrorView {
+ /** One short sentence in the person's language. */
+ reason: string;
+ /** Redacted raw output for the collapsed "Technical details", if any. */
+ details: string | null;
+ /** False when sending the message again cannot work yet (a spent allowance). */
+ retryable: boolean;
+}
+
+function nameOf(raw: string | undefined, t: (key: string) => string): string {
+ if (!raw || raw === "The agent" || raw === "The model") return t("thread_turn.errors.the_agent");
+ return RUNNER_LABELS[raw] ?? raw;
+}
+
/**
- * The text to show for a failed turn: a known code translated, a spent
- * usage allowance or a full context window as an actionable sentence in the
- * person's language, anything else as sent.
+ * The failed-turn card for an error: a known code translated, a runtime
+ * failure as a short readable reason (its raw output only as redacted
+ * details), a spent usage allowance or a full context window as an
+ * actionable sentence, anything else as sent.
*/
-export function turnErrorText(
+export function turnErrorView(
error: string | null | undefined,
+ rawDetails: string | null | undefined,
t: (key: string) => string,
-): string | null {
+ now: Date = new Date(),
+): TurnErrorView | null {
if (!error) return null;
- if (TURN_ERROR_CODES.has(error)) return t(`thread_turn.errors.${error}`);
+ const details = rawDetails ? redactDetails(rawDetails) || null : null;
+ const view = (reason: string, extra: string | null = details, retryable = true): TurnErrorView =>
+ ({ reason, details: extra, retryable });
+ if (TURN_ERROR_CODES.has(error)) return view(t(`thread_turn.errors.${error}`));
if (USAGE_LIMIT.some((pattern) => pattern.test(error))) {
- const reset = RESET_AT.exec(error);
- const time = reset ? resetTimeLabel(reset[1]) : null;
- return time
+ const reset = resetDate(error);
+ const time = reset ? resetTimeLabel(reset.toISOString(), now) : null;
+ const reason = time
? fill(t("thread_turn.errors.usage_limit_until"), { time })
: t("thread_turn.errors.usage_limit");
+ // Retry cannot succeed before the allowance resets.
+ return view(reason, details, !(reset && reset.getTime() > now.getTime()));
+ }
+ if (CONTEXT_FULL.some((pattern) => pattern.test(error))) return view(t("thread_turn.errors.context_window"));
+ if (RUNTIME_UPDATING.some((pattern) => pattern.test(error))) {
+ return view(t("thread_turn.errors.runtime_updating"), details ?? (error.startsWith("The agent runtime") ? null : redactDetails(error)));
+ }
+ if (STILL_STARTING.some((pattern) => pattern.test(error))) {
+ return view(t("thread_turn.errors.still_starting"), details ?? (error.startsWith("The agent is") ? null : redactDetails(error)));
+ }
+ if (APP_RESTARTED.test(error)) return view(t("thread_turn.errors.app_restarted"));
+ const legacyStall = STALL_LEGACY.exec(error);
+ if (legacyStall) {
+ return view(fill(t("thread_turn.errors.stall"), { runtime: nameOf(legacyStall[1], t), minutes: legacyStall[2] }));
+ }
+ const stall = STALL.exec(error);
+ if (stall) {
+ const key = stall[2] ? "thread_turn.errors.stall_local" : "thread_turn.errors.stall";
+ return view(fill(t(key), { runtime: nameOf(stall[1], t), minutes: stall[3] }));
+ }
+ const internal = INTERNAL.exec(error);
+ if (internal) {
+ const rest = internal[2]?.trim();
+ return view(fill(t("thread_turn.errors.internal"), { runtime: nameOf(internal[1], t) }), details ?? (rest ? redactDetails(rest) : null));
}
- if (CONTEXT_FULL.some((pattern) => pattern.test(error))) return t("thread_turn.errors.context_window");
- return error;
+ const crashed = CRASHED.exec(error);
+ if (crashed) return view(fill(t("thread_turn.errors.crashed"), { runtime: nameOf(crashed[1], t) }));
+ // A dump stored before the backend mapped it: never on the card itself.
+ if (RAW_MARKERS.test(error) || error.split(/\r?\n/).filter((line) => line.trim()).length > 3) {
+ return view(fill(t("thread_turn.errors.crashed"), { runtime: t("thread_turn.errors.the_agent") }), details ?? redactDetails(error));
+ }
+ const [head, ...rest] = error.split(" ");
+ if (rest.length && RUNNER_LABELS[head]) return view(`${RUNNER_LABELS[head]} ${rest.join(" ")}`);
+ return view(error);
+}
+
+/** The card's reason alone (the work trace and thread views show only that). */
+export function turnErrorText(
+ error: string | null | undefined,
+ t: (key: string) => string,
+): string | null {
+ return turnErrorView(error, null, t)?.reason ?? null;
}
diff --git a/dodaios/ui/web/frontend/src/components/agentchat/turnFailure.test.tsx b/dodaios/ui/web/frontend/src/components/agentchat/turnFailure.test.tsx
index f8f71f908c..6a232db60b 100644
--- a/dodaios/ui/web/frontend/src/components/agentchat/turnFailure.test.tsx
+++ b/dodaios/ui/web/frontend/src/components/agentchat/turnFailure.test.tsx
@@ -87,3 +87,32 @@ describe("a turn a runtime ended with an error but no HTTP failure", () => {
expect(retried).toBe(1);
});
});
+
+describe("the failed-turn card keeps runtime internals out of sight", () => {
+ it("shows a short reason and folds the redacted output behind Technical details", () => {
+ const item = { ...turn("error", "Hermes stopped with an error. Try again."), errorDetails: "boom at https://gw.local/v1?token=x" };
+ draw(item, () => undefined);
+ expect(screen.getByTestId("turn-failure-reason").textContent).toBe("Hermes stopped with an error. Try again.");
+ const details = screen.getByTestId("turn-failure-details");
+ expect(details.textContent).toContain("Technical details");
+ expect(details.textContent).toContain("boom at [url]");
+ expect(details.textContent).not.toContain("token=x");
+ expect((details as HTMLDetailsElement).open).toBe(false);
+ });
+
+ it("carries the backend's details from the turn_finished event", () => {
+ const state = reduceEvents(EMPTY_TIMELINE, [
+ { seq: 1, ts_ms: 1, kind: "turn_started", payload: { turn_id: "t1", provider: "p", model: "" } },
+ { seq: 2, ts_ms: 2, kind: "turn_finished", payload: { turn_id: "t1", status: "error", error: "OpenClaw stopped with an error. Try again.", error_details: "tail" } },
+ ] as never);
+ const finished = state.items.find((item) => item.type === "turn") as TurnItem;
+ expect(finished.errorDetails).toBe("tail");
+ });
+
+ it("offers no Retry for a spent allowance that resets later", () => {
+ const reset = new Date(Date.now() + 7 * 86400 * 1000).toISOString().replace(/\.\d{3}Z$/, "Z");
+ draw(turn("error", `The ChatGPT subscription reached its usage limit: the plan's allowance is used up until it resets (it resets at ${reset}).`), () => undefined);
+ expect(screen.getByTestId("turn-failure")).toBeTruthy();
+ expect(screen.queryByTestId("turn-retry")).toBeNull();
+ });
+});
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/de.json b/dodaios/ui/web/frontend/src/i18n/locales/de.json
index 7fb9867665..5cd3abdf65 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/de.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/de.json
@@ -7083,7 +7083,9 @@
"quest_age_d": "vor {n} Tagen",
"quest_close": "Schließen",
"quest_loading": "Tafel wird gelesen…",
- "quest_open_ledger": "Agenten-Register öffnen"
+ "quest_open_ledger": "Agenten-Register öffnen",
+ "mode_label": "Agenten-Ansicht",
+ "mode_map": "Dodaios Verse"
},
"style": {
"modern": "Modern",
@@ -7356,7 +7358,9 @@
"chat_empty_title": "Noch kein Gespräch",
"chat_empty_hint": "Der Chat des Agenten öffnet sich hier, sobald das Society-Backend seine Sitzung anbindet.",
"chat_bind_failed": "Der Chat konnte nicht verbunden werden.",
- "cancel": "Abbrechen"
+ "cancel": "Abbrechen",
+ "options_collapse": "Details ausblenden",
+ "options_expand": "Details anzeigen"
},
"figure": {
"drag_hint": "Ziehen zum Drehen und Kippen · Rad zum Zoomen · Doppelklick setzt zurück",
@@ -7496,6 +7500,45 @@
"description": "Dir gehört das gemeinsame Gedächtnis. Du machst aus fertiger Arbeit kurze Wiki-Notizen mit Quellen in deinem Namensraum und schlägst vor, was ins gemeinsame Wissen aufsteigen sollte.",
"routine": "Nächtlicher Kuratierungsdurchlauf"
}
+ },
+ "shell": {
+ "mode_verse": "Verse",
+ "new_agent": "Neuer Agent",
+ "roster_collapse": "Agentenliste einklappen",
+ "roster_expand": "Agentenliste ausklappen",
+ "resize_roster": "Breite der Agentenliste ändern",
+ "resize_details": "Breite des Detailbereichs ändern",
+ "filter_label": "Agenten anzeigen",
+ "filter_all": "Alle",
+ "filter_needs_you": "Braucht dich",
+ "filter_unread": "Ungelesen",
+ "pinned": "Angeheftete Agenten",
+ "section_needs_you": "Braucht dich",
+ "section_teams": "Teams",
+ "section_agents": "Agenten",
+ "team_empty": "Noch keine Mitglieder. Halte einen Agenten über dieses Team, um ihn hinzuzufügen.",
+ "status_needs_you": "Braucht dich",
+ "status_waiting": "Wartet auf dich",
+ "preview_needs_you": "Braucht dich",
+ "preview_draft": "Entwurf:",
+ "preview_working": "Arbeitet…",
+ "time_now": "jetzt",
+ "pin": "Oben anheften",
+ "unpin": "Lösen",
+ "pin_full": "Es sind schon acht Agenten angeheftet. Löse zuerst einen.",
+ "mark_read": "Als gelesen markieren",
+ "mark_unread": "Als ungelesen markieren",
+ "reorder_keys": "Alt + Umschalt + Pfeil hoch / runter verschiebt den Agenten",
+ "empty_agents": "Noch keine Agenten. Dein erster Agent erscheint hier, sobald du ihm eine Aufgabe gibst.",
+ "empty_needs_you": "Gerade braucht dich niemand. Fragen und Freigaben erscheinen hier.",
+ "empty_unread": "Du bist auf dem neuesten Stand. Neue Ergebnisse deiner Agenten erscheinen hier.",
+ "show_all": "Alle Agenten zeigen",
+ "clear_search": "Suche leeren",
+ "approval_legacy": "Bisherige Berechtigungen",
+ "approval_confirm": "Erneut klicken, um mehr ohne Nachfrage zu erlauben"
+ },
+ "profile_card": {
+ "open": "Profil von {0} öffnen"
}
},
"chat_tools": {
@@ -7678,8 +7721,17 @@
"delegation_continuation_limit": "Die delegierte Arbeit hat zu viele Runden gebraucht und wurde gestoppt. Bitte frag noch einmal.",
"usage_limit": "Das Kontingent dieses Modells ist aufgebraucht, bis es sich zurücksetzt. Wähle in den Einstellungen des Agenten ein anderes verbundenes Modell, um weiterzumachen.",
"usage_limit_until": "Das Kontingent dieses Modells ist aufgebraucht, bis es sich um {time} zurücksetzt. Wähle in den Einstellungen des Agenten ein anderes verbundenes Modell, um weiterzumachen.",
- "context_window": "Das Gespräch passt nicht mehr in das Kontextfenster dieses Modells. Starte einen neuen Chat oder wähle ein Modell mit größerem Kontextfenster."
- }
+ "context_window": "Das Gespräch passt nicht mehr in das Kontextfenster dieses Modells. Starte einen neuen Chat oder wähle ein Modell mit größerem Kontextfenster.",
+ "runtime_updating": "Die Laufzeit des Agenten aktualisiert gerade ihre Daten. Versuch es gleich noch einmal.",
+ "still_starting": "Der Agent startet noch. Versuch es gleich noch einmal.",
+ "app_restarted": "Die App wurde neu gestartet, während dieser Durchgang lief. Schick die Nachricht noch einmal.",
+ "stall": "{runtime} hat {minutes} Min. lang keine Antwort vom Modell bekommen, deshalb wurde der Durchgang gestoppt. Versuch es noch einmal.",
+ "stall_local": "{runtime} hat {minutes} Min. lang keine Antwort vom lokalen Modell bekommen, deshalb wurde der Durchgang gestoppt. Das Modell ist vielleicht ausgelastet, langsam oder wartet, bis ein anderes Modell fertig geladen ist. Versuch es noch einmal oder wähle ein kleineres Modell.",
+ "internal": "{runtime} hatte einen internen Fehler und hat diesen Durchgang beendet. Versuch es noch einmal.",
+ "crashed": "{runtime} wurde mit einem Fehler beendet. Versuch es noch einmal.",
+ "the_agent": "Der Agent"
+ },
+ "technical_details": "Technische Details"
},
"work_trace": {
"tool_failed": "Eine Tool-Aktion ist fehlgeschlagen",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/en.json b/dodaios/ui/web/frontend/src/i18n/locales/en.json
index 2164373a2a..0b47089629 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/en.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/en.json
@@ -7083,7 +7083,9 @@
"quest_age_d": "{n} d ago",
"quest_close": "Close",
"quest_loading": "Reading the board…",
- "quest_open_ledger": "Open the agents ledger"
+ "quest_open_ledger": "Open the agents ledger",
+ "mode_label": "Agents view",
+ "mode_map": "Dodaios Verse"
},
"style": {
"modern": "Modern",
@@ -7356,7 +7358,9 @@
"chat_empty_title": "No conversation yet",
"chat_empty_hint": "The agent's chat opens here once the society backend binds its session.",
"chat_bind_failed": "The chat could not be bound.",
- "cancel": "Cancel"
+ "cancel": "Cancel",
+ "options_collapse": "Hide details",
+ "options_expand": "Show details"
},
"figure": {
"drag_hint": "Drag to turn and tilt · wheel to zoom · double-click to reset",
@@ -7496,6 +7500,45 @@
"description": "You own the shared memory. You turn finished work into short, sourced wiki notes under your namespace and propose what deserves promotion to shared knowledge.",
"routine": "Nightly curation pass"
}
+ },
+ "shell": {
+ "mode_verse": "Verse",
+ "new_agent": "New agent",
+ "roster_collapse": "Fold the agent list",
+ "roster_expand": "Unfold the agent list",
+ "resize_roster": "Resize the agent list",
+ "resize_details": "Resize the details pane",
+ "filter_label": "Show agents",
+ "filter_all": "All",
+ "filter_needs_you": "Needs you",
+ "filter_unread": "Unread",
+ "pinned": "Pinned agents",
+ "section_needs_you": "Needs you",
+ "section_teams": "Teams",
+ "section_agents": "Agents",
+ "team_empty": "No members yet. Hold an agent over this team to add it.",
+ "status_needs_you": "Needs you",
+ "status_waiting": "Waiting for you",
+ "preview_needs_you": "Needs you",
+ "preview_draft": "Draft:",
+ "preview_working": "Working…",
+ "time_now": "now",
+ "pin": "Pin to the top",
+ "unpin": "Unpin",
+ "pin_full": "Eight agents are pinned already. Unpin one first.",
+ "mark_read": "Mark as read",
+ "mark_unread": "Mark as unread",
+ "reorder_keys": "Alt + Shift + Arrow Up / Down moves the agent",
+ "empty_agents": "No agents yet. Your first agent appears here once you give it a job.",
+ "empty_needs_you": "Nothing needs you right now. Questions and approvals show up here.",
+ "empty_unread": "You are all caught up. New results from your agents show up here.",
+ "show_all": "Show all agents",
+ "clear_search": "Clear search",
+ "approval_legacy": "Existing permissions",
+ "approval_confirm": "Click again to allow more without asking"
+ },
+ "profile_card": {
+ "open": "Open profile of {0}"
}
},
"chat_tools": {
@@ -7678,8 +7721,17 @@
"delegation_continuation_limit": "The delegated work took too many rounds and was stopped. Please ask again.",
"usage_limit": "This model's plan has used up its usage allowance until it resets. Pick another connected model in the agent's settings to keep going.",
"usage_limit_until": "This model's plan has used up its usage allowance until it resets at {time}. Pick another connected model in the agent's settings to keep going.",
- "context_window": "The conversation no longer fits this model's context window. Start a fresh chat, or pick a model with a larger context window."
- }
+ "context_window": "The conversation no longer fits this model's context window. Start a fresh chat, or pick a model with a larger context window.",
+ "runtime_updating": "The agent runtime is updating its data. Try again in a moment.",
+ "still_starting": "The agent is still starting up. Try again in a moment.",
+ "app_restarted": "The app restarted while this turn was running. Send it again.",
+ "stall": "{runtime} got no reply from the model for {minutes} min, so the turn was stopped. Try again.",
+ "stall_local": "{runtime} got no reply from the local model for {minutes} min, so the turn was stopped. The model may be busy, slow, or still loading behind another model. Try again, or pick a smaller model.",
+ "internal": "{runtime} hit an internal error and stopped this turn. Try again.",
+ "crashed": "{runtime} stopped with an error. Try again.",
+ "the_agent": "The agent"
+ },
+ "technical_details": "Technical details"
},
"work_trace": {
"tool_failed": "A tool action failed",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/es.json b/dodaios/ui/web/frontend/src/i18n/locales/es.json
index 7523da9e2d..bde1b56255 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/es.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/es.json
@@ -7083,7 +7083,9 @@
"quest_age_d": "hace {n} d",
"quest_close": "Cerrar",
"quest_loading": "Leyendo el tablón…",
- "quest_open_ledger": "Abrir el registro de agentes"
+ "quest_open_ledger": "Abrir el registro de agentes",
+ "mode_label": "Vista de agentes",
+ "mode_map": "Dodaios Verse"
},
"style": {
"modern": "Moderno",
@@ -7356,7 +7358,9 @@
"chat_empty_title": "Aún no hay conversación",
"chat_empty_hint": "El chat del agente se abre aquí cuando el backend de la sociedad vincule su sesión.",
"chat_bind_failed": "No se pudo vincular el chat.",
- "cancel": "Cancelar"
+ "cancel": "Cancelar",
+ "options_collapse": "Ocultar detalles",
+ "options_expand": "Mostrar detalles"
},
"figure": {
"drag_hint": "Arrastra para girar e inclinar · rueda para acercar · doble clic restablece",
@@ -7496,6 +7500,45 @@
"description": "La memoria compartida es tuya. Conviertes el trabajo terminado en notas wiki breves y con fuentes en tu espacio de nombres y propones qué merece pasar al conocimiento compartido.",
"routine": "Repaso de curación nocturno"
}
+ },
+ "shell": {
+ "mode_verse": "Verse",
+ "new_agent": "Nuevo agente",
+ "roster_collapse": "Plegar la lista de agentes",
+ "roster_expand": "Desplegar la lista de agentes",
+ "resize_roster": "Cambiar el ancho de la lista de agentes",
+ "resize_details": "Cambiar el ancho del panel de detalles",
+ "filter_label": "Mostrar agentes",
+ "filter_all": "Todos",
+ "filter_needs_you": "Te necesita",
+ "filter_unread": "Sin leer",
+ "pinned": "Agentes fijados",
+ "section_needs_you": "Te necesita",
+ "section_teams": "Equipos",
+ "section_agents": "Agentes",
+ "team_empty": "Aún no hay miembros. Mantén un agente sobre este equipo para añadirlo.",
+ "status_needs_you": "Te necesita",
+ "status_waiting": "Esperándote",
+ "preview_needs_you": "Te necesita",
+ "preview_draft": "Borrador:",
+ "preview_working": "Trabajando…",
+ "time_now": "ahora",
+ "pin": "Fijar arriba",
+ "unpin": "Desfijar",
+ "pin_full": "Ya hay ocho agentes fijados. Desfija uno primero.",
+ "mark_read": "Marcar como leído",
+ "mark_unread": "Marcar como no leído",
+ "reorder_keys": "Alt + Mayús + flecha arriba / abajo mueve el agente",
+ "empty_agents": "Aún no hay agentes. Tu primer agente aparecerá aquí en cuanto le des una tarea.",
+ "empty_needs_you": "Ahora mismo nada te necesita. Las preguntas y aprobaciones aparecen aquí.",
+ "empty_unread": "Estás al día. Los nuevos resultados de tus agentes aparecen aquí.",
+ "show_all": "Mostrar todos los agentes",
+ "clear_search": "Borrar búsqueda",
+ "approval_legacy": "Permisos actuales",
+ "approval_confirm": "Vuelve a hacer clic para permitir más sin preguntar"
+ },
+ "profile_card": {
+ "open": "Abrir perfil de {0}"
}
},
"chat_tools": {
@@ -7678,8 +7721,17 @@
"delegation_continuation_limit": "El trabajo delegado necesitó demasiadas rondas y se detuvo. Vuelve a preguntar.",
"usage_limit": "El plan de este modelo ha agotado su cuota de uso hasta que se restablezca. Elige otro modelo conectado en la configuración del agente para continuar.",
"usage_limit_until": "El plan de este modelo ha agotado su cuota de uso hasta que se restablezca a las {time}. Elige otro modelo conectado en la configuración del agente para continuar.",
- "context_window": "La conversación ya no cabe en la ventana de contexto de este modelo. Empieza un chat nuevo o elige un modelo con una ventana de contexto más grande."
- }
+ "context_window": "La conversación ya no cabe en la ventana de contexto de este modelo. Empieza un chat nuevo o elige un modelo con una ventana de contexto más grande.",
+ "runtime_updating": "El entorno del agente está actualizando sus datos. Inténtalo de nuevo en un momento.",
+ "still_starting": "El agente todavía se está iniciando. Inténtalo de nuevo en un momento.",
+ "app_restarted": "La app se reinició mientras este turno estaba en curso. Envíalo de nuevo.",
+ "stall": "{runtime} no recibió respuesta del modelo durante {minutes} min, así que el turno se detuvo. Inténtalo de nuevo.",
+ "stall_local": "{runtime} no recibió respuesta del modelo local durante {minutes} min, así que el turno se detuvo. Puede que el modelo esté ocupado, sea lento o siga cargando detrás de otro modelo. Inténtalo de nuevo o elige un modelo más pequeño.",
+ "internal": "{runtime} tuvo un error interno y detuvo este turno. Inténtalo de nuevo.",
+ "crashed": "{runtime} se detuvo con un error. Inténtalo de nuevo.",
+ "the_agent": "El agente"
+ },
+ "technical_details": "Detalles técnicos"
},
"work_trace": {
"tool_failed": "Falló una acción de herramienta",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/pt.json b/dodaios/ui/web/frontend/src/i18n/locales/pt.json
index 852abfb356..337f63b800 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/pt.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/pt.json
@@ -7083,7 +7083,9 @@
"quest_age_d": "há {n} d",
"quest_close": "Fechar",
"quest_loading": "A ler o quadro…",
- "quest_open_ledger": "Abrir o registo de agentes"
+ "quest_open_ledger": "Abrir o registo de agentes",
+ "mode_label": "Vista de agentes",
+ "mode_map": "Dodaios Verse"
},
"style": {
"modern": "Moderno",
@@ -7356,7 +7358,9 @@
"chat_empty_title": "Ainda sem conversa",
"chat_empty_hint": "O chat do agente abre aqui assim que o backend da sociedade associar a sessão.",
"chat_bind_failed": "Não foi possível associar o chat.",
- "cancel": "Cancelar"
+ "cancel": "Cancelar",
+ "options_collapse": "Ocultar detalhes",
+ "options_expand": "Mostrar detalhes"
},
"figure": {
"drag_hint": "Arrasta para rodar e inclinar · roda do rato para zoom · duplo clique para repor",
@@ -7496,6 +7500,45 @@
"description": "A memória partilhada é tua. Transformas o trabalho concluído em notas wiki curtas e com fontes no teu espaço de nomes e propões o que merece ser promovido a conhecimento partilhado.",
"routine": "Ronda de curadoria noturna"
}
+ },
+ "shell": {
+ "mode_verse": "Verse",
+ "new_agent": "Novo agente",
+ "roster_collapse": "Recolher a lista de agentes",
+ "roster_expand": "Expandir a lista de agentes",
+ "resize_roster": "Ajustar a largura da lista de agentes",
+ "resize_details": "Ajustar a largura do painel de detalhes",
+ "filter_label": "Mostrar agentes",
+ "filter_all": "Todos",
+ "filter_needs_you": "Precisa de você",
+ "filter_unread": "Não lidos",
+ "pinned": "Agentes fixados",
+ "section_needs_you": "Precisa de você",
+ "section_teams": "Equipes",
+ "section_agents": "Agentes",
+ "team_empty": "Ainda sem membros. Segure um agente sobre esta equipe para adicioná-lo.",
+ "status_needs_you": "Precisa de você",
+ "status_waiting": "Esperando por você",
+ "preview_needs_you": "Precisa de você",
+ "preview_draft": "Rascunho:",
+ "preview_working": "Trabalhando…",
+ "time_now": "agora",
+ "pin": "Fixar no topo",
+ "unpin": "Desafixar",
+ "pin_full": "Já há oito agentes fixados. Desafixe um primeiro.",
+ "mark_read": "Marcar como lido",
+ "mark_unread": "Marcar como não lido",
+ "reorder_keys": "Alt + Shift + seta para cima / baixo move o agente",
+ "empty_agents": "Ainda não há agentes. O seu primeiro agente aparece aqui assim que lhe der uma tarefa.",
+ "empty_needs_you": "Nada precisa de você agora. Perguntas e aprovações aparecem aqui.",
+ "empty_unread": "Você está em dia. Novos resultados dos seus agentes aparecem aqui.",
+ "show_all": "Mostrar todos os agentes",
+ "clear_search": "Limpar busca",
+ "approval_legacy": "Permissões atuais",
+ "approval_confirm": "Clique de novo para permitir mais sem perguntar"
+ },
+ "profile_card": {
+ "open": "Abrir perfil de {0}"
}
},
"chat_tools": {
@@ -7678,8 +7721,17 @@
"delegation_continuation_limit": "O trabalho delegado precisou de demasiadas rondas e foi parado. Volta a perguntar.",
"usage_limit": "O plano deste modelo esgotou a cota de uso até ela ser renovada. Escolha outro modelo conectado nas configurações do agente para continuar.",
"usage_limit_until": "O plano deste modelo esgotou a cota de uso até ela ser renovada às {time}. Escolha outro modelo conectado nas configurações do agente para continuar.",
- "context_window": "A conversa não cabe mais na janela de contexto deste modelo. Comece um chat novo ou escolha um modelo com uma janela de contexto maior."
- }
+ "context_window": "A conversa não cabe mais na janela de contexto deste modelo. Comece um chat novo ou escolha um modelo com uma janela de contexto maior.",
+ "runtime_updating": "O ambiente do agente está atualizando os dados. Tente novamente em instantes.",
+ "still_starting": "O agente ainda está iniciando. Tente novamente em instantes.",
+ "app_restarted": "O app reiniciou enquanto este turno estava em andamento. Envie de novo.",
+ "stall": "{runtime} não recebeu resposta do modelo por {minutes} min, então o turno foi interrompido. Tente novamente.",
+ "stall_local": "{runtime} não recebeu resposta do modelo local por {minutes} min, então o turno foi interrompido. O modelo pode estar ocupado, lento ou ainda carregando atrás de outro modelo. Tente novamente ou escolha um modelo menor.",
+ "internal": "{runtime} teve um erro interno e interrompeu este turno. Tente novamente.",
+ "crashed": "{runtime} parou com um erro. Tente novamente.",
+ "the_agent": "O agente"
+ },
+ "technical_details": "Detalhes técnicos"
},
"work_trace": {
"tool_failed": "Uma ação de ferramenta falhou",
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/society/de.json b/dodaios/ui/web/frontend/src/i18n/locales/society/de.json
index 665d37543c..a26d41cd59 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/society/de.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/society/de.json
@@ -1,9 +1,5 @@
{
"society": {
- "card": {
- "options_collapse": "Details ausblenden",
- "options_expand": "Details anzeigen"
- },
"agent_pane": {
"tabs": "Agentendetails",
"tab_overview": "Details",
@@ -246,7 +242,6 @@
"knowledge_hint": "Jeder Agent pflegt seine eigene USER.md für dein Profil und deine Präferenzen sowie MEMORY.md für Projektwissen und Erfahrungen. Skills und Gesprächsarchive bleiben separat.",
"kind_memory": "Memory",
"kind_skills": "Gelernter Skill · Entwurf",
- "open": "Profil von {0} öffnen",
"subtitle": "Agent-Profil",
"profile": "Profil & Anweisungen",
"memory": "Memory-Dateien",
@@ -381,10 +376,8 @@
"room_reason_silence": "niemand hat gesprochen",
"room_reason_user": "von dir beendet",
"room_reason_kill_switch": "die Society wurde gestoppt",
- "mode_label": "Agenten-Ansicht",
"toggle_sections": "Sektionen ein- oder ausblenden",
"fullscreen_failed": "Vollbild konnte nicht geändert werden. Die Buttons Dodaios Verse / Agents bleiben verfügbar.",
- "mode_map": "Dodaios Verse",
"mode_ledger": "Ledger",
"hud_agents": "{count} Agenten",
"hud_active": "{count} aktiv",
@@ -2137,42 +2130,6 @@
"copy_url": "URL kopieren",
"copy_header": "Header-Zeile kopieren"
}
- },
- "shell": {
- "mode_verse": "Verse",
- "new_agent": "Neuer Agent",
- "roster_collapse": "Agentenliste einklappen",
- "roster_expand": "Agentenliste ausklappen",
- "resize_roster": "Breite der Agentenliste ändern",
- "resize_details": "Breite des Detailbereichs ändern",
- "filter_label": "Agenten anzeigen",
- "filter_all": "Alle",
- "filter_needs_you": "Braucht dich",
- "filter_unread": "Ungelesen",
- "pinned": "Angeheftete Agenten",
- "section_needs_you": "Braucht dich",
- "section_teams": "Teams",
- "section_agents": "Agenten",
- "team_empty": "Noch keine Mitglieder. Halte einen Agenten über dieses Team, um ihn hinzuzufügen.",
- "status_needs_you": "Braucht dich",
- "status_waiting": "Wartet auf dich",
- "preview_needs_you": "Braucht dich",
- "preview_draft": "Entwurf:",
- "preview_working": "Arbeitet…",
- "time_now": "jetzt",
- "pin": "Oben anheften",
- "unpin": "Lösen",
- "pin_full": "Es sind schon acht Agenten angeheftet. Löse zuerst einen.",
- "mark_read": "Als gelesen markieren",
- "mark_unread": "Als ungelesen markieren",
- "reorder_keys": "Alt + Umschalt + Pfeil hoch / runter verschiebt den Agenten",
- "empty_agents": "Noch keine Agenten. Dein erster Agent erscheint hier, sobald du ihm eine Aufgabe gibst.",
- "empty_needs_you": "Gerade braucht dich niemand. Fragen und Freigaben erscheinen hier.",
- "empty_unread": "Du bist auf dem neuesten Stand. Neue Ergebnisse deiner Agenten erscheinen hier.",
- "show_all": "Alle Agenten zeigen",
- "clear_search": "Suche leeren",
- "approval_legacy": "Bisherige Berechtigungen",
- "approval_confirm": "Erneut klicken, um mehr ohne Nachfrage zu erlauben"
}
}
}
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/society/en.json b/dodaios/ui/web/frontend/src/i18n/locales/society/en.json
index 9fdaefd984..461a61083c 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/society/en.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/society/en.json
@@ -1,9 +1,5 @@
{
"society": {
- "card": {
- "options_collapse": "Hide details",
- "options_expand": "Show details"
- },
"agent_pane": {
"tabs": "Agent details",
"tab_overview": "Details",
@@ -246,7 +242,6 @@
"knowledge_hint": "Each agent maintains its own USER.md for your profile and preferences, and MEMORY.md for project knowledge and experience. Skills and conversation archives stay separate.",
"kind_memory": "Memory",
"kind_skills": "Learned skill · draft",
- "open": "Open profile of {0}",
"subtitle": "Agent profile",
"profile": "Profile & instructions",
"memory": "Memory files",
@@ -381,10 +376,8 @@
"room_reason_silence": "nobody spoke",
"room_reason_user": "closed by you",
"room_reason_kill_switch": "the society was halted",
- "mode_label": "Agents view",
"toggle_sections": "Show or hide sections",
"fullscreen_failed": "Fullscreen could not be changed. The Dodaios Verse / Agents buttons remain available.",
- "mode_map": "Dodaios Verse",
"mode_ledger": "Ledger",
"hud_agents": "{count} agents",
"hud_active": "{count} active",
@@ -2137,42 +2130,6 @@
"copy_url": "Copy URL",
"copy_header": "Copy header line"
}
- },
- "shell": {
- "mode_verse": "Verse",
- "new_agent": "New agent",
- "roster_collapse": "Fold the agent list",
- "roster_expand": "Unfold the agent list",
- "resize_roster": "Resize the agent list",
- "resize_details": "Resize the details pane",
- "filter_label": "Show agents",
- "filter_all": "All",
- "filter_needs_you": "Needs you",
- "filter_unread": "Unread",
- "pinned": "Pinned agents",
- "section_needs_you": "Needs you",
- "section_teams": "Teams",
- "section_agents": "Agents",
- "team_empty": "No members yet. Hold an agent over this team to add it.",
- "status_needs_you": "Needs you",
- "status_waiting": "Waiting for you",
- "preview_needs_you": "Needs you",
- "preview_draft": "Draft:",
- "preview_working": "Working…",
- "time_now": "now",
- "pin": "Pin to the top",
- "unpin": "Unpin",
- "pin_full": "Eight agents are pinned already. Unpin one first.",
- "mark_read": "Mark as read",
- "mark_unread": "Mark as unread",
- "reorder_keys": "Alt + Shift + Arrow Up / Down moves the agent",
- "empty_agents": "No agents yet. Your first agent appears here once you give it a job.",
- "empty_needs_you": "Nothing needs you right now. Questions and approvals show up here.",
- "empty_unread": "You are all caught up. New results from your agents show up here.",
- "show_all": "Show all agents",
- "clear_search": "Clear search",
- "approval_legacy": "Existing permissions",
- "approval_confirm": "Click again to allow more without asking"
}
}
}
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/society/es.json b/dodaios/ui/web/frontend/src/i18n/locales/society/es.json
index 3b11a6f67a..742d30587b 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/society/es.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/society/es.json
@@ -1,9 +1,5 @@
{
"society": {
- "card": {
- "options_collapse": "Ocultar detalles",
- "options_expand": "Mostrar detalles"
- },
"agent_pane": {
"tabs": "Detalles del agente",
"tab_overview": "Detalles",
@@ -246,7 +242,6 @@
"knowledge_hint": "Cada agente mantiene su propio USER.md para tu perfil y preferencias, y MEMORY.md para conocimientos y experiencia. Las habilidades y los archivos de conversaciones quedan separados.",
"kind_memory": "Memoria",
"kind_skills": "Habilidad aprendida · borrador",
- "open": "Abrir perfil de {0}",
"subtitle": "Perfil del agente",
"profile": "Perfil e instrucciones",
"memory": "Archivos de memoria",
@@ -381,10 +376,8 @@
"room_reason_silence": "nadie habló",
"room_reason_user": "la cerraste tú",
"room_reason_kill_switch": "la sociedad se detuvo",
- "mode_label": "Vista de agentes",
"toggle_sections": "Mostrar u ocultar secciones",
"fullscreen_failed": "No se pudo cambiar la pantalla completa. Los botones Dodaios Verse / Agentes siguen disponibles.",
- "mode_map": "Dodaios Verse",
"mode_ledger": "Registro",
"hud_agents": "{count} agentes",
"hud_active": "{count} activos",
@@ -2137,42 +2130,6 @@
"copy_url": "Copiar URL",
"copy_header": "Copiar línea de cabecera"
}
- },
- "shell": {
- "mode_verse": "Verse",
- "new_agent": "Nuevo agente",
- "roster_collapse": "Plegar la lista de agentes",
- "roster_expand": "Desplegar la lista de agentes",
- "resize_roster": "Cambiar el ancho de la lista de agentes",
- "resize_details": "Cambiar el ancho del panel de detalles",
- "filter_label": "Mostrar agentes",
- "filter_all": "Todos",
- "filter_needs_you": "Te necesita",
- "filter_unread": "Sin leer",
- "pinned": "Agentes fijados",
- "section_needs_you": "Te necesita",
- "section_teams": "Equipos",
- "section_agents": "Agentes",
- "team_empty": "Aún no hay miembros. Mantén un agente sobre este equipo para añadirlo.",
- "status_needs_you": "Te necesita",
- "status_waiting": "Esperándote",
- "preview_needs_you": "Te necesita",
- "preview_draft": "Borrador:",
- "preview_working": "Trabajando…",
- "time_now": "ahora",
- "pin": "Fijar arriba",
- "unpin": "Desfijar",
- "pin_full": "Ya hay ocho agentes fijados. Desfija uno primero.",
- "mark_read": "Marcar como leído",
- "mark_unread": "Marcar como no leído",
- "reorder_keys": "Alt + Mayús + flecha arriba / abajo mueve el agente",
- "empty_agents": "Aún no hay agentes. Tu primer agente aparecerá aquí en cuanto le des una tarea.",
- "empty_needs_you": "Ahora mismo nada te necesita. Las preguntas y aprobaciones aparecen aquí.",
- "empty_unread": "Estás al día. Los nuevos resultados de tus agentes aparecen aquí.",
- "show_all": "Mostrar todos los agentes",
- "clear_search": "Borrar búsqueda",
- "approval_legacy": "Permisos actuales",
- "approval_confirm": "Vuelve a hacer clic para permitir más sin preguntar"
}
}
}
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/society/pt.json b/dodaios/ui/web/frontend/src/i18n/locales/society/pt.json
index c1f39d6fc4..bb2201ec82 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/society/pt.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/society/pt.json
@@ -1,9 +1,5 @@
{
"society": {
- "card": {
- "options_collapse": "Ocultar detalhes",
- "options_expand": "Mostrar detalhes"
- },
"agent_pane": {
"tabs": "Detalhes do agente",
"tab_overview": "Detalhes",
@@ -246,7 +242,6 @@
"knowledge_hint": "Cada agente mantém o seu próprio USER.md para o teu perfil e preferências e o MEMORY.md para conhecimento e experiência do projeto. As skills e os arquivos de conversas ficam separados.",
"kind_memory": "Memória",
"kind_skills": "Skill aprendida · rascunho",
- "open": "Abrir perfil de {0}",
"subtitle": "Perfil do agente",
"profile": "Perfil e instruções",
"memory": "Ficheiros de memória",
@@ -381,10 +376,8 @@
"room_reason_silence": "ninguém falou",
"room_reason_user": "fechada por ti",
"room_reason_kill_switch": "a sociedade foi parada",
- "mode_label": "Vista de agentes",
"toggle_sections": "Mostrar ou ocultar secções",
"fullscreen_failed": "Não foi possível alterar o ecrã inteiro. Os botões Dodaios Verse / Agentes continuam disponíveis.",
- "mode_map": "Dodaios Verse",
"mode_ledger": "Registo",
"hud_agents": "{count} agentes",
"hud_active": "{count} ativos",
@@ -2137,42 +2130,6 @@
"copy_url": "Copiar URL",
"copy_header": "Copiar linha de cabeçalho"
}
- },
- "shell": {
- "mode_verse": "Verse",
- "new_agent": "Novo agente",
- "roster_collapse": "Recolher a lista de agentes",
- "roster_expand": "Expandir a lista de agentes",
- "resize_roster": "Ajustar a largura da lista de agentes",
- "resize_details": "Ajustar a largura do painel de detalhes",
- "filter_label": "Mostrar agentes",
- "filter_all": "Todos",
- "filter_needs_you": "Precisa de você",
- "filter_unread": "Não lidos",
- "pinned": "Agentes fixados",
- "section_needs_you": "Precisa de você",
- "section_teams": "Equipes",
- "section_agents": "Agentes",
- "team_empty": "Ainda sem membros. Segure um agente sobre esta equipe para adicioná-lo.",
- "status_needs_you": "Precisa de você",
- "status_waiting": "Esperando por você",
- "preview_needs_you": "Precisa de você",
- "preview_draft": "Rascunho:",
- "preview_working": "Trabalhando…",
- "time_now": "agora",
- "pin": "Fixar no topo",
- "unpin": "Desafixar",
- "pin_full": "Já há oito agentes fixados. Desafixe um primeiro.",
- "mark_read": "Marcar como lido",
- "mark_unread": "Marcar como não lido",
- "reorder_keys": "Alt + Shift + seta para cima / baixo move o agente",
- "empty_agents": "Ainda não há agentes. O seu primeiro agente aparece aqui assim que lhe der uma tarefa.",
- "empty_needs_you": "Nada precisa de você agora. Perguntas e aprovações aparecem aqui.",
- "empty_unread": "Você está em dia. Novos resultados dos seus agentes aparecem aqui.",
- "show_all": "Mostrar todos os agentes",
- "clear_search": "Limpar busca",
- "approval_legacy": "Permissões atuais",
- "approval_confirm": "Clique de novo para permitir mais sem perguntar"
}
}
}
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/society/zh.json b/dodaios/ui/web/frontend/src/i18n/locales/society/zh.json
index e12818a7da..24bc10d669 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/society/zh.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/society/zh.json
@@ -1,9 +1,5 @@
{
"society": {
- "card": {
- "options_collapse": "隐藏详情",
- "options_expand": "显示详情"
- },
"agent_pane": {
"tabs": "智能体详情",
"tab_overview": "详情",
@@ -246,7 +242,6 @@
"knowledge_hint": "每个智能体都维护自己的 USER.md(记录你的个人资料和偏好)和 MEMORY.md(记录项目知识和经验)。技能和对话存档单独保存。",
"kind_memory": "记忆",
"kind_skills": "学到的技能 · 草稿",
- "open": "打开 {0} 的个人资料",
"subtitle": "智能体个人资料",
"profile": "个人资料与指令",
"memory": "记忆文件",
@@ -381,10 +376,8 @@
"room_reason_silence": "没人发言",
"room_reason_user": "由你关闭",
"room_reason_kill_switch": "智能体社会已被叫停",
- "mode_label": "智能体视图",
"toggle_sections": "显示或隐藏分区",
"fullscreen_failed": "无法切换全屏。Dodaios Verse / 智能体按钮仍可使用。",
- "mode_map": "Dodaios Verse",
"mode_ledger": "名册",
"hud_agents": "{count} 个智能体",
"hud_active": "{count} 个活跃",
@@ -2137,42 +2130,6 @@
"copy_url": "复制 URL",
"copy_header": "复制请求头"
}
- },
- "shell": {
- "mode_verse": "Verse",
- "new_agent": "新建智能体",
- "roster_collapse": "收起智能体列表",
- "roster_expand": "展开智能体列表",
- "resize_roster": "调整智能体列表宽度",
- "resize_details": "调整详情面板宽度",
- "filter_label": "显示智能体",
- "filter_all": "全部",
- "filter_needs_you": "需要你",
- "filter_unread": "未读",
- "pinned": "已置顶的智能体",
- "section_needs_you": "需要你",
- "section_teams": "团队",
- "section_agents": "智能体",
- "team_empty": "还没有成员。把智能体拖到这个团队上停留片刻即可加入。",
- "status_needs_you": "需要你",
- "status_waiting": "正在等你",
- "preview_needs_you": "需要你",
- "preview_draft": "草稿:",
- "preview_working": "工作中…",
- "time_now": "刚刚",
- "pin": "置顶",
- "unpin": "取消置顶",
- "pin_full": "已置顶八个智能体,请先取消一个。",
- "mark_read": "标为已读",
- "mark_unread": "标为未读",
- "reorder_keys": "Alt + Shift + 上/下方向键移动智能体",
- "empty_agents": "还没有智能体。给第一个智能体分配工作后,它会出现在这里。",
- "empty_needs_you": "目前没有需要你处理的事。问题和审批会显示在这里。",
- "empty_unread": "你已全部看完。智能体的新结果会显示在这里。",
- "show_all": "显示全部智能体",
- "clear_search": "清除搜索",
- "approval_legacy": "现有权限",
- "approval_confirm": "再次点击以允许更多操作而无需询问"
}
}
}
diff --git a/dodaios/ui/web/frontend/src/i18n/locales/zh.json b/dodaios/ui/web/frontend/src/i18n/locales/zh.json
index 4bf3d4c587..12f45db2d5 100644
--- a/dodaios/ui/web/frontend/src/i18n/locales/zh.json
+++ b/dodaios/ui/web/frontend/src/i18n/locales/zh.json
@@ -7083,7 +7083,9 @@
"quest_age_d": "{n} 天前",
"quest_close": "关闭",
"quest_loading": "正在读取公告板…",
- "quest_open_ledger": "打开智能体名册"
+ "quest_open_ledger": "打开智能体名册",
+ "mode_label": "智能体视图",
+ "mode_map": "Dodaios Verse"
},
"style": {
"modern": "现代",
@@ -7356,7 +7358,9 @@
"chat_empty_title": "还没有会话",
"chat_empty_hint": "社群后端绑定会话后,智能体的对话将在此打开。",
"chat_bind_failed": "无法绑定对话。",
- "cancel": "取消"
+ "cancel": "取消",
+ "options_collapse": "隐藏详情",
+ "options_expand": "显示详情"
},
"figure": {
"drag_hint": "拖动以旋转和倾斜 · 滚轮缩放 · 双击重置",
@@ -7496,6 +7500,45 @@
"description": "你负责共享记忆。你把完成的工作整理成简短、注明来源的 wiki 笔记,存放在你的命名空间下,并提议哪些内容值得提升为共享知识。",
"routine": "夜间整理"
}
+ },
+ "shell": {
+ "mode_verse": "Verse",
+ "new_agent": "新建智能体",
+ "roster_collapse": "收起智能体列表",
+ "roster_expand": "展开智能体列表",
+ "resize_roster": "调整智能体列表宽度",
+ "resize_details": "调整详情面板宽度",
+ "filter_label": "显示智能体",
+ "filter_all": "全部",
+ "filter_needs_you": "需要你",
+ "filter_unread": "未读",
+ "pinned": "已置顶的智能体",
+ "section_needs_you": "需要你",
+ "section_teams": "团队",
+ "section_agents": "智能体",
+ "team_empty": "还没有成员。把智能体拖到这个团队上停留片刻即可加入。",
+ "status_needs_you": "需要你",
+ "status_waiting": "正在等你",
+ "preview_needs_you": "需要你",
+ "preview_draft": "草稿:",
+ "preview_working": "工作中…",
+ "time_now": "刚刚",
+ "pin": "置顶",
+ "unpin": "取消置顶",
+ "pin_full": "已置顶八个智能体,请先取消一个。",
+ "mark_read": "标为已读",
+ "mark_unread": "标为未读",
+ "reorder_keys": "Alt + Shift + 上/下方向键移动智能体",
+ "empty_agents": "还没有智能体。给第一个智能体分配工作后,它会出现在这里。",
+ "empty_needs_you": "目前没有需要你处理的事。问题和审批会显示在这里。",
+ "empty_unread": "你已全部看完。智能体的新结果会显示在这里。",
+ "show_all": "显示全部智能体",
+ "clear_search": "清除搜索",
+ "approval_legacy": "现有权限",
+ "approval_confirm": "再次点击以允许更多操作而无需询问"
+ },
+ "profile_card": {
+ "open": "打开 {0} 的个人资料"
}
},
"chat_tools": {
@@ -7678,8 +7721,17 @@
"delegation_continuation_limit": "委派的工作轮次过多,已被停止。请重新提问。",
"usage_limit": "此模型的套餐用量已用完,需等待额度重置。请在智能体设置中选择另一个已连接的模型以继续。",
"usage_limit_until": "此模型的套餐用量已用完,将在 {time} 重置。请在智能体设置中选择另一个已连接的模型以继续。",
- "context_window": "对话已超出此模型的上下文窗口。请开始新的聊天,或选择上下文窗口更大的模型。"
- }
+ "context_window": "对话已超出此模型的上下文窗口。请开始新的聊天,或选择上下文窗口更大的模型。",
+ "runtime_updating": "智能体运行时正在更新数据。请稍后再试。",
+ "still_starting": "智能体仍在启动中。请稍后再试。",
+ "app_restarted": "此轮运行期间应用已重启。请重新发送。",
+ "stall": "{runtime} 在 {minutes} 分钟内没有收到模型的回复,因此本轮已停止。请重试。",
+ "stall_local": "{runtime} 在 {minutes} 分钟内没有收到本地模型的回复,因此本轮已停止。该模型可能正忙、速度较慢,或仍在等待另一个模型加载完毕。请重试,或选择更小的模型。",
+ "internal": "{runtime} 发生内部错误,已停止本轮。请重试。",
+ "crashed": "{runtime} 因错误而停止。请重试。",
+ "the_agent": "智能体"
+ },
+ "technical_details": "技术详情"
},
"work_trace": {
"tool_failed": "一个工具操作失败",
diff --git a/dodaios/ui/web/frontend/src/i18n/society-shell-first-paint.test.ts b/dodaios/ui/web/frontend/src/i18n/society-shell-first-paint.test.ts
new file mode 100644
index 0000000000..8faac50cdd
--- /dev/null
+++ b/dodaios/ui/web/frontend/src/i18n/society-shell-first-paint.test.ts
@@ -0,0 +1,45 @@
+/**
+ * The Agents shell (roster rail, search, "New agent") paints
+ * before the lazy `society` chunk arrives, so its strings live in the main
+ * locale files: no raw `society.shell.*` key may ever render on first load.
+ */
+import { readFileSync } from "node:fs";
+import { join } from "node:path";
+import { describe, expect, it } from "vitest";
+import de from "./locales/de.json";
+import en from "./locales/en.json";
+import es from "./locales/es.json";
+import pt from "./locales/pt.json";
+import zh from "./locales/zh.json";
+
+const FIRST_PAINT_FILES = [
+ join(__dirname, "..", "components", "society", "roster", "RosterRail.tsx"),
+ join(__dirname, "..", "components", "society", "roster", "RosterRow.tsx"),
+ join(__dirname, "..", "views", "society", "SocietyView.tsx"),
+];
+
+function lookup(locale: unknown, key: string): unknown {
+ return key.split(".").reduce<unknown>((node, part) =>
+ node && typeof node === "object" ? (node as Record<string, unknown>)[part] : undefined, locale);
+}
+
+describe("the Agents shell's first paint", () => {
+ const keys = new Set<string>();
+ for (const file of FIRST_PAINT_FILES) {
+ for (const match of readFileSync(file, "utf8").matchAll(/"(society\.(?:shell|roster|world\.mode_[a-z]+|profile_card\.open)[a-z0-9_.]*)"/g)) {
+ keys.add(match[1]);
+ }
+ }
+
+ it("finds the shell's keys", () => {
+ for (const key of ["society.shell.new_agent", "society.shell.section_agents", "society.shell.section_teams", "society.roster.search"]) {
+ expect(keys.has(key)).toBe(true);
+ }
+ });
+
+ it("has every one of them in the main locale of every UI language", () => {
+ for (const locale of [en, de, es, pt, zh]) {
+ for (const key of keys) expect(typeof lookup(locale, key), key).toBe("string");
+ }
+ });
+});
diff --git a/tests/unit/agent_chat/test_turn_errors.py b/tests/unit/agent_chat/test_turn_errors.py
new file mode 100644
index 0000000000..09990d47c2
--- /dev/null
+++ b/tests/unit/agent_chat/test_turn_errors.py
@@ -0,0 +1,235 @@
+"""The failed-turn card gets a short reason; raw runtime output stays redacted details."""
+
+from __future__ import annotations
+
+import asyncio
+import os
+
+import pytest
+
+from dodaios.agent_chat import turn_errors
+from dodaios.agent_chat.turn_errors import (
+ APP_RESTARTED,
+ RUNTIME_UPDATING,
+ STILL_STARTING,
+ readable_turn_error,
+ redact,
+ stall_reason,
+)
+
+HOME = os.path.expanduser("~")
+
+HERMES_DUMP = "\n".join(
+ [
+ "2026-10-27 17:05:19 [INFO] tools.tool_search: tool_search activated (tier 1): "
+ "10 core/visible tools kept, 381 deferred",
+ "2026-10-27 17:05:19 [INFO] acp_adapter.server: New session 6d5a "
+ f"(cwd={HOME}\\Desktop\\Personal Jarvis\\data\\society\\qa-hermes-local\\workspace)",
+ "2026-10-27 17:05:21 [INFO] acp_adapter.server: Prompt on session 6d5a: <jarvis_identity>",
+ "## You are QA Hermes local",
+ "Tier: specialist. Permission ceiling: ask. You do not",
+ "2026-10-27 17:05:21 [INFO] agent.turn_context: conversation turn: session=6d5a "
+ "model=qwen3.5:9b msg='<jarvis_identity> ## You are QA Hermes local Tier: spec...'",
+ "2026-10-27 17:05:25 [INFO] run_agent: OpenAI client created provider=custom "
+ "base_url=http://127.0.0.1:47821/api/runtime-gateway/v1 model=qwen3.5:9b",
+ ]
+)
+
+
+def test_a_raw_stderr_dump_becomes_a_short_reason_with_redacted_details() -> None:
+ reason, details = readable_turn_error(HERMES_DUMP, runner="hermes-cli", provider="ollama")
+ assert reason == "Hermes stopped with an error. Try again."
+ assert details is not None
+ for leak in (
+ "<jarvis_identity>",
+ "You are QA Hermes",
+ "Permission ceiling",
+ "127.0.0.1:47821",
+ "runtime-gateway",
+ HOME,
+ ):
+ assert leak not in details, leak
+ assert "tool_search activated" in details
+ assert "[url]" in details
+
+
+def test_redact_strips_prompt_blocks_urls_secrets_and_home() -> None:
+ text = (
+ "<jarvis_identity>secret persona</jarvis_identity> ok "
+ "https://api.example.com/v1?token=abc sk-abcdefghijklmnop "
+ f"{HOME}/projects/x /home/someone/y C:\\Users\\Other\\z"
+ )
+ out = redact(text)
+ assert "secret persona" not in out
+ assert "token=abc" not in out and "[url]" in out
+ assert "sk-abcdefghijklmnop" not in out
+ assert HOME not in out and "someone" not in out and "Other" not in out
+ assert out.startswith("[agent instructions removed] ok")
+
+
+ ("raw", "expected"),
+ [
+ (
+ "Internal error: UNAVAILABLE: OpenClaw agent database C:/x/state.db uses schema "
+ "version 3; run openclaw doctor --fix to migrate persisted media before using it.",
+ RUNTIME_UPDATING,
+ ),
+ (
+ "Agent main has not completed startup inspection and preparation. busy",
+ STILL_STARTING,
+ ),
+ ],
+)
+def test_gateway_unavailable_replies_read_as_reasons(raw: str, expected: str) -> None:
+ reason, details = readable_turn_error(raw, runner="openclaw-cli")
+ assert reason == expected
+ assert details and details.startswith(raw[:20]) # the raw reply, redacted, stays apart
+
+
+def test_acp_error_text_translates_unavailable_details_without_exposing_them() -> None:
+ from dodaios.agent_runtimes.acp import _error_text
+
+ error = {
+ "message": "Internal error",
+ "data": {"details": "Agent main has not completed startup inspection and preparation."},
+ }
+ assert _error_text(error) == STILL_STARTING
+ error = {
+ "message": "Internal error",
+ "data": {"details": "state db uses schema version 9; run openclaw doctor --fix first"},
+ }
+ assert _error_text(error) == RUNTIME_UPDATING
+ # Anything else stays the bare wrapper.
+ assert _error_text({"message": "Internal error", "data": {"details": "x"}}) == "Internal error"
+
+
+def test_a_bare_internal_error_names_the_runtime() -> None:
+ reason, details = readable_turn_error("Internal error", runner="openclaw-cli")
+ assert reason == "OpenClaw hit an internal error and stopped this turn. Try again."
+ assert details is None
+
+
+def test_a_stall_uses_the_display_name_and_suspects_a_local_model() -> None:
+ cloud = stall_reason("openclaw-cli", 300, provider="openai-codex")
+ assert cloud.startswith("OpenClaw got no reply from the model for 5 minutes")
+ assert "openclaw-cli" not in cloud
+ local = stall_reason("openclaw-cli", 300, provider="ollama")
+ assert "local model" in local and "busy" in local
+ legacy, _ = readable_turn_error(
+ "openclaw-cli stopped responding (nothing for 5 minutes); the turn was stopped.",
+ runner="openclaw-cli",
+ provider="ollama",
+ )
+ assert legacy == local
+
+
+def test_an_app_restart_says_so_in_old_and_new_wording() -> None:
+ for text in (
+ "Dodaios restarted while this turn was running. Everything after the last step "
+ "shown here was not captured.",
+ "Jarvis restarted while this turn was running.",
+ ):
+ assert readable_turn_error(text)[0] == APP_RESTARTED
+
+
+def test_deliberate_reasons_pass_through_unchanged() -> None:
+ for text in (
+ "The ChatGPT subscription reached its usage limit: the plan's allowance is used up "
+ "until it resets (it resets at 2026-11-18T17:19:20Z). Until then, choose another "
+ "connected model in the agent's settings. No fallback provider was called.",
+ "Ollama is not reachable. If it is a model server on this computer, start it.",
+ "mandated_tool_unfulfilled",
+ ):
+ assert readable_turn_error(text, runner="openclaw-cli") == (text, None)
+ assert readable_turn_error("openclaw-cli exited with code 1.") == (
+ "OpenClaw exited with code 1.",
+ None,
+ )
+ assert readable_turn_error(None) == (None, None)
+
+
+def test_the_service_publishes_the_reason_and_keeps_details_apart(tmp_path) -> None:
+ from dodaios.agent_chat.events import make_event
+ from dodaios.agent_chat.service import AgentChatService
+ from dodaios.agent_chat.store import AgentChatStore
+
+ store = AgentChatStore(tmp_path / "chat.db")
+ service = AgentChatService(store)
+ session = store.create_session(
+ provider="ollama",
+ model="qwen3.5:9b",
+ effort="",
+ cwd=str(tmp_path),
+ surface="society",
+ runtime="hermes",
+ )
+ seen: list[dict] = []
+
+ async def run() -> None:
+ queue = service.subscribe(session.session_id)
+ service._publish_event(
+ session.session_id,
+ make_event(
+ "turn_finished",
+ {"turn_id": "t1", "status": "error", "usage": {}, "error": HERMES_DUMP},
+ ),
+ )
+ seen.append(queue.get_nowait())
+
+ asyncio.run(run())
+ payload = seen[0]["payload"]
+ assert "jarvis_identity" not in payload["error"]
+ assert payload["error"] == "Hermes stopped with an error. Try again."
+ assert "You are QA Hermes" not in payload["error_details"]
+ stored = [e for e in store.list_events(session.session_id) if e["kind"] == "turn_finished"]
+ assert stored and stored[0]["payload"]["error"] == payload["error"]
+
+
+def test_runner_labels_cover_every_cli_runner() -> None:
+ from typing import get_args
+
+ from dodaios.agent_chat.catalog import Runner
+
+ for runner in get_args(Runner):
+ assert turn_errors.runner_label(runner) and "-cli" not in turn_errors.runner_label(runner)
+
+
+ ("raw", "expected"),
+ [
+ (
+ "2026-10-27 17:05:19 [ERROR] provider: HTTP 429 usage limit reached, "
+ "resets at 2026-10-28T15:04:00Z",
+ "The usage limit for this model is used up. It resets at 2026-10-28T15:04:00Z.",
+ ),
+ (
+ "You've hit your usage limit. " + "Upgrade for more. " * 40
+ + "try again at Oct 15th, 2026 3:37 PM",
+ "The usage limit for this model is used up. "
+ "You can try again at Oct 15th, 2026 3:37 PM.",
+ ),
+ (
+ "Internal error: usage limit reached; resets at 2026-10-28T15:04:00Z",
+ "The usage limit for this model is used up. It resets at 2026-10-28T15:04:00Z.",
+ ),
+ (
+ "error:\nrequest failed\nstatus 400\ncontext_length_exceeded: prompt is too long",
+ "The conversation no longer fits this model's context window.",
+ ),
+ ],
+)
+def test_a_dump_naming_a_spent_allowance_or_full_window_keeps_that_meaning(
+ raw: str, expected: str
+) -> None:
+ # The card hides Retry until the reset and offers the context action, so a
+ # long or logged usage-limit error must not become the generic crash reason.
+ reason, details = readable_turn_error(raw, runner="openclaw-cli")
+ assert reason == expected
+ assert details
+
+
+def test_redact_hides_a_profile_folder_with_spaces() -> None:
+ out = redact("C:/Users/First Last/proj/a.py and /home/first last/b")
+ assert "Last" not in out and "last" not in out
+ assert out == "~/proj/a.py and ~/b"
diff --git a/tests/unit/agent_runtimes/test_acp_runner.py b/tests/unit/agent_runtimes/test_acp_runner.py
index 8d89f74063..a29cf7d103 100644
--- a/tests/unit/agent_runtimes/test_acp_runner.py
+++ b/tests/unit/agent_runtimes/test_acp_runner.py
@@ -501,7 +501,8 @@ def test_a_silent_model_is_stopped_with_a_plain_reason(monkeypatch, tmp_path):
events, frames = _run_live(monkeypatch, tmp_path, "SLOW")
finished = _finished(events)
assert finished["status"] == "error"
- assert "stopped responding" in finished["error"]
+ assert "got no reply from the" in finished["error"]
+ assert "-cli" not in finished["error"]
assert "session/cancel" in _methods(frames)