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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
refactor(agentic-ide): tighten the status badge feeds after review
rubenluetke10-beepbb8cce09d916
diff --git a/jarvis/agentic_ide/activity.py b/jarvis/agentic_ide/activity.pyindex 9ae85361ae..01b9164af2 100644--- a/jarvis/agentic_ide/activity.py+++ b/jarvis/agentic_ide/activity.py@@ -347,7 +347,13 @@ def _has_current_instruction(term: Any) -> bool:def read_activity(term: Any, *, now: float | None = None, still_since: float | None = None) -> Activity:- """What ``term`` is doing at this instant.+ """What ``term`` is doing at this instant — the RAW movement reading.++ Raw means: no submit grace, no burst confirmation. This is the word for+ callers that want the movement rule itself (the bell, a caller deciding+ whether it is safe to type into the pane); the word the badge SHOWS is+ :func:`observed`'s, and a caller reaching here for display will spin on a+ lone printout.``still_since`` is the moment this pane's screen last changed, which thecaller tracks across sweeps (see :func:`screen_digest`). Duck-typed on@@ -504,8 +510,14 @@ def observed(term: Any, *, now: float | None = None) -> Reading:at = float(getattr(term, "activity_at", 0.0) or 0.0)if word and 0 <= moment - at <= STAMP_FRESH_S:since = float(getattr(term, "activity_since", 0.0) or 0.0)- return _submit_graced(term, Reading(word, since), moment) # type: ignore[arg-type]- return _submit_graced(term, Reading(read_activity(term, now=moment), 0.0), moment)+ reading = Reading(word, since) # type: ignore[arg-type]+ else:+ # The stampless fallback is the RAW single look: with no sweep history+ # it cannot demand that movement outlast a burst, so a lone printout+ # can read as working here. Rare by construction — the sweep runs for+ # as long as any workspace is open.+ reading = Reading(read_activity(term, now=moment), 0.0)+ return _submit_graced(term, reading, moment)def has_work_behind_it(term: Any) -> bool:diff --git a/jarvis/ui/web/agentic_ide_routes.py b/jarvis/ui/web/agentic_ide_routes.pyindex 6e120e55a5..e4a29ee294 100644--- a/jarvis/ui/web/agentic_ide_routes.py+++ b/jarvis/ui/web/agentic_ide_routes.py@@ -876,12 +876,56 @@ class ContinueInterruptedResponse(BaseModel):)-class TerminalRecap(BaseModel):- """What one pane is doing, in the two lengths its header renders."""+class TerminalActivity(BaseModel):+ """What one pane is DOING, and nothing about what it is doing it about.++ The skinny base of :class:`TerminalRecap`, and the whole answer of the+ badge's fast poll: the recap poll also schedules a summarizer pass over+ every pane's transcript, which is why it runs on a relaxed clock — and why+ the status badge that rode on it always lagged the pane by several+ seconds. This row costs one look at the pane's stamped reading, so it can+ be polled fast enough for the badge to feel live. One declaration for both+ rows, so the two polls cannot drift apart about what these fields mean.+ """key: strname: str- status: str+ status: str = Field(+ description="The pane's process status: 'pending', 'live', 'exited' or 'error'."+ )+ activity: str = Field(+ default="",+ description=(+ "Whether this pane's agent is still on the job: 'working' (its "+ "screen is moving), 'waiting' (alive and standing still), 'asking' "+ "(standing still with a question on screen), 'starting', 'exited' "+ "or 'failed'. Read from the terminal itself rather than from "+ "anything a particular CLI prints, so it holds for every coding CLI "+ "a pane can run, including ones added later. Empty for a plain "+ "terminal, which runs no agent."+ ),+ )+ activity_since: float = Field(+ default=0.0,+ description=(+ "When the pane entered that state (epoch seconds), so 'waiting' can "+ "be shown with how long it has been waiting. 0 when unknown."+ ),+ )+ worked: bool = Field(+ default=False,+ description=(+ "Has anything ever been asked of this pane — an instruction sent to "+ "it, or the conversation it resumed? It is what separates an agent "+ "that FINISHED from a terminal nobody has asked for anything: the "+ "same still screen, and not the same news."+ ),+ )+++class TerminalRecap(TerminalActivity):+ """What one pane is doing, in the two lengths its header renders."""+recap: str = Field(description="One clause for the pane header; the pane's width clips it.")recap_detail: str = Field(description="The several-sentence version, shown in the recap card.")source: str = Field(@@ -920,34 +964,6 @@ class TerminalRecap(BaseModel):"transcript-derived recap, which is recomputed on every read."),)- activity: str = Field(- default="",- description=(- "Whether this pane's agent is still on the job: 'working' (its "- "screen is moving), 'waiting' (alive and standing still), 'asking' "- "(standing still with a question on screen), 'starting', 'exited' "- "or 'failed'. Read from the terminal itself rather than from "- "anything a particular CLI prints, so it holds for every coding CLI "- "a pane can run, including ones added later. Empty for a plain "- "terminal, which runs no agent."- ),- )- activity_since: float = Field(- default=0.0,- description=(- "When the pane entered that state (epoch seconds), so 'waiting' can "- "be shown with how long it has been waiting. 0 when unknown."- ),- )- worked: bool = Field(- default=False,- description=(- "Has anything ever been asked of this pane — an instruction sent to "- "it, or the conversation it resumed? It is what separates an agent "- "that FINISHED from a terminal nobody has asked for anything: the "- "same still screen, and not the same news."- ),- )class RecapsResponse(BaseModel):@@ -955,42 +971,6 @@ class RecapsResponse(BaseModel):terminals: list[TerminalRecap] = Field(default_factory=list)-class TerminalActivity(BaseModel):- """What one pane is DOING, and nothing about what it is doing it about.-- The skinny sibling of :class:`TerminalRecap`: the recap poll also schedules- a summarizer pass over every pane's transcript, which is why it runs on a- relaxed clock — and why the status badge that rode on it always lagged the- pane by several seconds. This row costs one look at the pane's stamped- reading, so it can be polled fast enough for the badge to feel live.- """-- key: str- name: str- status: str = Field(- description="The pane's process status: 'pending', 'live', 'exited' or 'error'."- )- activity: str = Field(- default="",- description=(- "Whether this pane's agent is still on the job: 'working', "- "'waiting', 'asking', 'starting', 'exited' or 'failed'. Empty for "- "a plain terminal, which runs no agent. Same reading as /recaps."- ),- )- activity_since: float = Field(- default=0.0,- description="When the pane entered that state (epoch seconds). 0 when unknown.",- )- worked: bool = Field(- default=False,- description=(- "Has anything ever been asked of this pane — an instruction sent "- "to it, or the conversation it resumed?"- ),- )--class ActivityResponse(BaseModel):workspace_id: str | None = Noneterminals: list[TerminalActivity] = Field(default_factory=list)@@ -2172,22 +2152,28 @@ async def get_activity(workspace_id: str | None = None) -> ActivityResponse:session = get_registry().get(workspace_id)if session is None:return ActivityResponse(workspace_id=None, terminals=[])- rows: list[TerminalActivity] = []- for term in session.terminals:- # The pane's own stamped reading — the same source /recaps reports, so- # the fast poll and the slow one can never disagree about a pane.- reading = term.reading()- rows.append(- TerminalActivity(- key=term.key,- name=term.name,- status=term.status,- activity=reading.activity,- activity_since=reading.since,- worked=has_work_behind_it(term),- )- )- return ActivityResponse(workspace_id=session.id, terminals=rows)+ return ActivityResponse(+ workspace_id=session.id,+ terminals=[TerminalActivity(**_activity_fields(term)) for term in session.terminals],+ )+++def _activity_fields(term: Terminal) -> dict[str, object]:+ """The activity half of a pane row, from the pane's own stamped reading.++ One builder for the fast poll and the recap poll both, so "the two polls+ report the same reading" is a property of the code rather than a promise+ kept by two call sites staying in step.+ """+ reading = term.reading()+ return {+ "key": term.key,+ "name": term.name,+ "status": term.status,+ "activity": reading.activity,+ "activity_since": reading.since,+ "worked": has_work_behind_it(term),+ }def _recap_row(term: Terminal, summary: recap_engine.SmartRecap) -> TerminalRecap:@@ -2195,13 +2181,11 @@ def _recap_row(term: Terminal, summary: recap_engine.SmartRecap) -> TerminalRecaOne builder for all four, so the poll and the three actions can never driftinto describing the same pane differently — the drift class §5 calls out,- on a payload that is read four times a minute.+ on a payload that is read four times a minute. The activity half rides in+ from `_activity_fields`, the same builder the fast poll answers with."""- reading = term.reading()return TerminalRecap(- key=term.key,- name=term.name,- status=term.status,+ **_activity_fields(term),recap=summary.headline,recap_detail=summary.detail,source=summary.source,@@ -2209,12 +2193,6 @@ def _recap_row(term: Terminal, summary: recap_engine.SmartRecap) -> TerminalRecawriter=summary.writer,note=summary.note,generated_at=summary.generated_at,- # This poll is what keeps the pane list current, so it carries what the- # pane is DOING as well as what it is doing it about. Both come from the- # pane itself; neither is recomputed here, or the two would drift.- activity=reading.activity,- activity_since=reading.since,- worked=has_work_behind_it(term),)diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsxindex 72311ce1a9..0385ce29fd 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx@@ -74,7 +74,7 @@ import { PromptPreview } from "./PromptPreview";import { PromptEditor } from "./PromptEditor";import { WorkspaceSettings } from "./WorkspaceSettings";import { usePaneFileDrag } from "./paneFileDrag";-import { initialChatOrder, orderChatTerminals, reconcileChatOrder, sameRecaps } from "./chatState";+import { initialChatOrder, orderChatTerminals, reconcileChatOrder, sameRows } from "./chatState";import {extractPaneDrop,extractPasteFiles,@@ -305,15 +305,17 @@ const ACTIVITY_POLL_MS = 1500;/*** How long a just-sent prompt is allowed to claim "working" on its own.*- * The backend only reports `working` once the pane's screen MOVES, and an- * agent can sit for a few seconds between receiving a prompt and painting- * anything. Without this bridge the badge stays on "done" after Send, which- * reads as a send that did not happen. Long enough to cover a slow first- * paint, short enough that a prompt the agent truly swallowed goes back to- * telling the truth. The backend's own reading takes over the moment it says- * `working` — see `activityOf`.+ * Only until the backend can answer for itself: the submit grace over there+ * (`SUBMIT_GRACE_S` in `jarvis/agentic_ide/activity.py`) reports a freshly+ * submitted pane as working on the very next poll, so all this bridge covers+ * is the send-to-next-poll gap this window alone can see. Two poll beats+ * rather than one, so a poll already in flight when Send lands cannot carry+ * the answer away. Deliberately NOT longer: past this window the backend's+ * word is the truer one, including its 10-second verdict on a prompt the+ * agent swallowed — a second, longer client policy on top of that would just+ * disagree at the edges.*/-const SENT_BRIDGE_MS = 12_000;+const SENT_BRIDGE_MS = 2 * ACTIVITY_POLL_MS;/** How tall the prompt bar is — dragged by its top edge, and remembered.@@ -856,7 +858,7 @@ export function AgenticGrid({const next = Object.fromEntries(answer.terminals.map((term) => [term.name, term]));setRecapCache((current) => {const currentRows = current.workspaceId === session.id ? current.rows : {};- return sameRecaps(currentRows, next) ? current : { workspaceId: session.id, rows: next };+ return sameRows(currentRows, next) ? current : { workspaceId: session.id, rows: next };});warned = false;} catch (error) {@@ -901,10 +903,11 @@ export function AgenticGrid({** The optimistic half of the badge: the moment Send succeeds the pane is* shown as working, because the user just watched themselves put work in- * front of it — waiting for the screen-movement proof to round-trip made- * every send look ignored for several seconds. The backend's reading takes- * over as soon as it confirms (the entry is dropped), and the entry expires- * after `SENT_BRIDGE_MS` so a prompt that truly went nowhere stops lying.+ * front of it. The backend knows about the submit too (its own grace covers+ * the seconds before the first paint) — what it cannot cover is the beat+ * until the next poll fetches that answer, and that beat is all this+ * carries. An entry is dropped the moment the backend confirms, and expires+ * after `SENT_BRIDGE_MS` either way.*/const [sentAt, setSentAt] = useState<Record<string, number>>({});@@ -919,12 +922,23 @@ export function AgenticGrid({const answer = await fetchTerminalActivity(session.id);if (cancelled) return;const next = Object.fromEntries(answer.terminals.map((row) => [row.name, row]));- setActivityCache({ workspaceId: session.id, rows: next });- // The backend has seen these panes working: its reading is now the- // truer one, so the optimistic bridge behind it is finished.+ // Same keep-identity guard as the recap poll above: most ticks change+ // nothing, and a fresh-but-equal object every 1.5 seconds would+ // re-render this very large component forty times a minute for it.+ setActivityCache((current) => {+ const currentRows = current.workspaceId === session.id ? current.rows : {};+ return sameRows(currentRows, next)+ ? current+ : { workspaceId: session.id, rows: next };+ });+ // The bridge ends here: dropped once the backend confirms the pane+ // working, and expired past its window — inside the poll, not at+ // render time, so an expired entry does not linger until something+ // else happens to redraw the grid.+ const cutoff = Date.now() - SENT_BRIDGE_MS;setSentAt((current) => {const keep = Object.entries(current).filter(- ([name]) => next[name]?.activity !== "working",+ ([name, at]) => next[name]?.activity !== "working" && at > cutoff,);return keep.length === Object.keys(current).length? current@@ -951,12 +965,15 @@ export function AgenticGrid({* Three sources, freshest first: the fast `/activity` poll, the recap poll,* and the opening value the workspace state carried — so a pane never* renders a blank badge, and never renders a stale one for longer than the- * fast poll's beat. All three come straight from the pane; nothing is- * derived here, or two views of one terminal would disagree.+ * fast poll's beat. The middle leg looks redundant beside the fast one and+ * is not: `/activity` is the newer route, and against an older backend that+ * does not serve it the fast cache stays empty forever — the recap poll's+ * rows are then what keeps the badges alive, at their old five-second+ * cadence instead of not at all. All three come straight from the pane;+ * nothing is derived here, or two views of one terminal would disagree.** On top of that sits the one honest local claim: a prompt THIS window just- * delivered. The backend cannot know about it until the pane's screen moves,- * and the user cannot un-know it — see `sentAt`.+ * delivered and the polls have not fetched back yet — see `sentAt`.*/const activityOf = (term: TerminalState) => {const live = liveActivity[term.name];@@ -985,14 +1002,17 @@ export function AgenticGrid({* the pane has mounted and connected — so on the first seconds of a* workspace (and for panes a view keeps off screen) the rail showed a grey* "connecting" spinner for terminals the backend already reported live. The- * backend's word is the truthful fallback; "connecting" stays only for a- * pane nobody knows anything about yet.+ * backend's word is the truthful fallback, and one of the two backend+ * sources always has one — every pane in the workspace state carries a+ * status — so this never comes back empty.*/const statusOf = (term: TerminalState) => {const socket = statuses[term.name];if (socket) return socket;- const backend = liveActivity[term.name]?.status ?? term.status;- return backend ? { status: backend as PaneStatus, detail: undefined } : undefined;+ return {+ status: (liveActivity[term.name]?.status ?? term.status) as PaneStatus,+ detail: undefined,+ };};/*@@ -2476,8 +2496,8 @@ export function AgenticGrid({what the user is scanning for is which of them stillowes them something. See ./PaneActivityPill. */}<PaneActivityPill- status={state?.status ?? "connecting"}- detail={state?.detail}+ status={state.status}+ detail={state.detail}{...activityOf(term)}/></span>@@ -2968,8 +2988,8 @@ export function AgenticGrid({><span>{term.name}</span><PaneActivityPill- status={state?.status ?? "connecting"}- detail={state?.detail}+ status={state.status}+ detail={state.detail}{...activityOf(term)}/></button>diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsxindex 6abff59a43..7a0ebf8b9d 100644--- a/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneActivityPill.tsx@@ -218,16 +218,16 @@ export function durationLabel(since: number, now: number): string {return hours === 1 ? "1 hour" : `${hours} hours`;}+/** The soft self-coloured halo a dot that holds something for you wears. */+const GLOW = "shadow-[0_0_5px_currentColor]";+function Icon({ look }: { look: Look }) {if (look.icon === "spinner")return <Loader2 className="h-3 w-3 animate-spin motion-reduce:animate-none" />;if (look.icon === "dot")return (<span- className={cn(- "h-2 w-2 rounded-full bg-current",- look.glow && "shadow-[0_0_5px_currentColor]",- )}+ className={cn("h-2 w-2 rounded-full bg-current", look.glow && GLOW)}aria-hidden="true"/>);@@ -237,7 +237,7 @@ function Icon({ look }: { look: Look }) {{/* The halo — a slow ping, hidden for anyone who asked their OS forless motion; the still dot underneath carries the state alone. */}<span className="absolute inset-0 animate-ping rounded-full bg-current opacity-60 [animation-duration:1.8s] motion-reduce:hidden" />- <span className="relative h-2 w-2 rounded-full bg-current shadow-[0_0_5px_currentColor]" />+ <span className={cn("relative h-2 w-2 rounded-full bg-current", GLOW)} /></span>);if (look.icon === "ring")diff --git a/jarvis/ui/web/frontend/src/components/agentic/chatState.test.ts b/jarvis/ui/web/frontend/src/components/agentic/chatState.test.tsindex 9777ddc9b9..6fcaea0508 100644--- a/jarvis/ui/web/frontend/src/components/agentic/chatState.test.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/chatState.test.ts@@ -5,7 +5,7 @@ import {initialChatOrder,orderChatTerminals,reconcileChatOrder,- sameRecaps,+ sameRows,} from "./chatState";function terminal(@@ -107,16 +107,16 @@ describe("chat session ordering", () => {describe("recap poll equality", () => {it("recognizes a repeated response", () => {const current = { T1: recap("T1") };- expect(sameRecaps(current, { T1: { ...current.T1 } })).toBe(true);+ expect(sameRows(current, { T1: { ...current.T1 } })).toBe(true);});it("detects an activity transition", () => {- expect(sameRecaps({ T1: recap("T1") }, { T1: recap("T1", "working") })).toBe(false);+ expect(sameRows({ T1: recap("T1") }, { T1: recap("T1", "working") })).toBe(false);});it("detects a changed optional field even when both values are undefined", () => {- const before = { T1: { ...recap("T1"), note: undefined } };- const after = { T1: { ...recap("T1"), writer: undefined } };- expect(sameRecaps(before, after)).toBe(false);+ const before: Record<string, TerminalRecap> = { T1: { ...recap("T1"), note: undefined } };+ const after: Record<string, TerminalRecap> = { T1: { ...recap("T1"), writer: undefined } };+ expect(sameRows(before, after)).toBe(false);});});diff --git a/jarvis/ui/web/frontend/src/components/agentic/chatState.ts b/jarvis/ui/web/frontend/src/components/agentic/chatState.tsindex 4a8754429c..e09c5f803c 100644--- a/jarvis/ui/web/frontend/src/components/agentic/chatState.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/chatState.ts@@ -1,4 +1,4 @@-import type { TerminalRecap, TerminalState } from "@/lib/agenticIdeApi";+import type { TerminalState } from "@/lib/agenticIdeApi";/** One pane lifetime, independent of its reusable grid call-sign. */export function chatTerminalIdentity(terminal: TerminalState): string {@@ -48,10 +48,18 @@ export function orderChatTerminals(});}-/** Avoid repainting every terminal when a recap poll returns unchanged data. */-export function sameRecaps(- current: Readonly<Record<string, TerminalRecap>>,- next: Readonly<Record<string, TerminalRecap>>,+/**+ * Avoid repainting every terminal when a poll returns unchanged rows.+ *+ * Generic over the row type because two polls need it for the same reason:+ * the recap poll (sentences, every 5s) and the activity poll (status words,+ * every 1.5s) both replace a per-pane map on a timer inside a very large+ * component, and a fresh-but-equal object every tick is a full re-render+ * bought for nothing.+ */+export function sameRows<T extends object>(+ current: Readonly<Record<string, T>>,+ next: Readonly<Record<string, T>>,): boolean {const currentNames = Object.keys(current);const nextNames = Object.keys(next);@@ -60,8 +68,8 @@ export function sameRecaps(const before = current[name];const after = next[name];if (!before || !after) return false;- const beforeFields = Object.keys(before) as (keyof TerminalRecap)[];- const afterFields = Object.keys(after) as (keyof TerminalRecap)[];+ const beforeFields = Object.keys(before) as (keyof T)[];+ const afterFields = Object.keys(after) as (keyof T)[];if (beforeFields.length !== afterFields.length ||afterFields.some((field) => !Object.hasOwn(before, field))diff --git a/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts b/jarvis/ui/web/frontend/src/lib/agenticIdeApi.tsindex 97e76b0461..abac622c94 100644--- a/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts+++ b/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts@@ -199,25 +199,25 @@ export type RecapReason =| "unavailable"| "";-/** One pane's live recap, as `/recaps` reports it. */-export interface TerminalRecap {+/**+ * What one pane is DOING, and nothing about what it is doing it about.+ *+ * The skinny base of `TerminalRecap`, and the whole answer of the fast poll+ * behind the status badge: the recap poll also schedules a summarizer pass+ * per pane, so it runs on a relaxed clock — and a badge that only learns+ * "working" on that clock trails the pane it describes by several seconds.+ * This row is one stamped word per pane and is cheap enough to poll fast.+ * One declaration for both rows, so the two polls cannot drift apart about+ * what these fields mean.+ */+export interface TerminalActivityRow {key: string;name: string;+ /** The pane's process status: `pending`, `live`, `exited` or `error`. */status: string;- recap: string;- recap_detail: string;- source?: RecapSource;- reason?: RecapReason;- /** The model that wrote it, when one did. */- writer?: string;- /** What went wrong the last time this pane was summarized. */- note?: string;- /** When the model wrote it, or when the user did. 0 for the derived one. */- generated_at?: number;/**- * Is its agent still on the job, or has it stopped? This poll is what keeps- * the pane list current, so it carries what the pane is DOING as well as what- * it is doing it about.+ * Is its agent still on the job, or has it stopped? What keeps the pane+ * list current: what the pane is DOING, beside what it is doing it about.*/activity?: PaneActivity;/** When it entered that state (epoch seconds); 0 when unknown. */@@ -232,33 +232,26 @@ export interface TerminalRecap {worked?: boolean;}+/** One pane's live recap, as `/recaps` reports it: the activity row plus words. */+export interface TerminalRecap extends TerminalActivityRow {+ recap: string;+ recap_detail: string;+ source?: RecapSource;+ reason?: RecapReason;+ /** The model that wrote it, when one did. */+ writer?: string;+ /** What went wrong the last time this pane was summarized. */+ note?: string;+ /** When the model wrote it, or when the user did. 0 for the derived one. */+ generated_at?: number;+}+export interface RecapsResponse {/** Which workspace answered; null when none is on screen. */workspace_id: string | null;terminals: TerminalRecap[];}-/**- * What one pane is DOING, and nothing about what it is doing it about.- *- * The skinny sibling of `TerminalRecap`, for the poll behind the status badge:- * the recap poll also schedules a summarizer pass per pane, so it runs on a- * relaxed clock — and a badge that only learns "working" on that clock trails- * the pane it describes by several seconds. This row is one stamped word per- * pane and is cheap enough to poll fast.- */-export interface TerminalActivityRow {- key: string;- name: string;- /** The pane's process status: `pending`, `live`, `exited` or `error`. */- status: string;- activity?: PaneActivity;- /** When it entered that state (epoch seconds); 0 when unknown. */- activity_since?: number;- /** Has anything ever been asked of this pane? */- worked?: boolean;-}-export interface ActivityResponse {/** Which workspace answered; null when none is on screen. */workspace_id: string | null;