The terminal card showed no run state: a running command and a settled command that produced no output rendered the same prompt line, so whether a command was still running had to be inferred from the absence of output. Lead the prompt line with a StateDot in three of its states — the spinning ring while running, red for the same exit status that renders the status pill, green for a clean settle. That is the same indicator a tool row's leading icon carries, so a row and its own card cannot disagree about one command; the row/card agreement is pinned in the ui-conversation spec. StateDot is aria-hidden, so a visually hidden text label rides beside it, which is what the refreshed aria goldens now record. The e2e adds what jsdom cannot compute: the dot's color resolves to the green success token through the real theme stylesheet, and the dot precedes the prompt label in document order.
252 B
252 B
- text: bash
- button "关闭详情"
- text: Input json
- button "复制"
- code: "{ "command": "echo NAVIGATION_OK", "description": "Print NAVIGATION_OK" }"
- text: Output 已完成 $ echo NAVIGATION_OK
- button "复制"
- text: NAVIGATION_OK