# Messages on the work chart

A message block on the [work chart](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/chat/activity-panel.html#task-chart) has up to three lines: its task's title, what the reader asked, and how it stands. While it goes it says what it is doing now and for how long; once it ended, how long it took and what it did.

## The last line

| State | Last line |
| --- | --- |
| Running a call | "Running xelatex pres.tex · 3m 12s": the newest call under way, read from the reply as it streams; a command is named by its first part that is not a `cd` or an `export`, without its options or what follows `&&`; another tool is named in the step's own words, such as "Read notes.md" |
| Sub-agents going | "Running 2 sub-agents · 3m 12s" |
| No call running | "Thinking · 3m 12s", "Writing the reply · 3m 40s", "Retrying (2/3) · 1m 5s": read from the conversation's own copy of the reply as it streams. "Working" when the chart has no copy. |
| Not started, stopping | "Queued", with no time; "Stopping…", "Pausing…" |
| Waiting on the reader | "Waiting for your answer · 2m", "Waiting for approval · 2m", from its last event. What it asked takes the second line, in quotes. |
| Paused | "Paused · 3m 12s", the time it worked |
| Finished | "2m 42s · 4 commands, 2 edits"; with ", 1 failed" in the bright colour when a command, an edit or a sub-agent failed. Reads are not counted. |
| Ended otherwise | "Failed · 41s" with the error as its second line; "Stopped by you · 44s"; "Interrupted · 12s"; a scheduled check's Nothing new, Skipped, Missed, Check failed |

- It never names the last step it took as if it were taking it now.
- While it goes, waits or is paused, the agent's glyph on it breathes.
- A topic sums its messages up: "Waiting for you · 2 messages", "Running · 2 messages", "Paused · 2 messages", else the count.

## One button, only when it needs the reader

| Run | On the block |
| --- | --- |
| Waiting for an answer or approval | Answer, or Review: goes to the composer's card |
| Paused | Continue |
| Under way | Nothing. The composer stops it (its Stop, or Esc); what is typed while it runs is added to it. |

Why. Every peer we read keeps run controls off the list and names the one thing under way in the present tense; none mixes tenses as our old "Running Ran · 4 commands" did.

| Peer | Controls | Status words |
| --- | --- | --- |
| Codex desktop | One composer button: Stop, Steer or Queue | "Working for 1m 5s", "Worked for 2m 3s", "You stopped after 12s"; Needs input, Needs approval on the item |
| Claude desktop | Stop in the composer | "Thinking…", "Running a command", "Waiting for your answer" |
| Codex CLI, OpenCode, Pi | Esc | "Working", "Thinking…", "Retrying (2/3)" |
| Cline | An answer pair while it waits, Cancel while it streams | "Thinking...", "Running" |

We follow Codex desktop, the closest fit, and keep Continue because a paused run has no composer control.

## No stand-ins

- A message has a title line only once it has a task. Until then it shows what was asked alone.
- A run nobody asked for is titled once it said something.
- A message not sorted into a topic yet has a topic block with nothing drawn: room only, no name, not a button. The column's crumb is empty.
- While no topic has a name yet, the chart starts at the messages column and cannot be moved back to the empty one; once a topic is named, the way back appears.
- What was asked is its first line with a letter or a digit, so a pasted email's ______ rule is passed over.

## What arrives

- Each new chart glides what moved from where it was, in the slow tier (240 ms) on `--ease-standard`.
- What the old chart did not have fades in: a message that starts, a topic that gets its name.
- A title that arrives on a block already drawn fades in; the lines under it ride down to make room while the block grows.

Source: `messageLine`, `doingNow` and `messageWords` in `running/agent-chart/agent-chart-model.ts`; `RunActions`, `useChartOptions` and `place` in `agent-chart.tsx`.
