# Chat transcript: one tool-call summary chip per agent turn ## What this item changed `android/` only — the chat transcript's tool-call surface. - **One chip per turn.** `ui/chat/ChatToolCalls.kt` no longer renders a chip per call in a `FlowRow`; `ToolCalls` renders a single summary chip reading `N tools called` (`1 tool called` for one), the transcript's only tool-call surface. The individual calls are not chips any more. - **Live summary.** The chip shows the existing spinner while any call is in flight and a `· long` mark while a running call has passed `TOOL_LONG_RUNNING_MILLIS`; both are gated on the turn still streaming (`AgentTurnItem` passes `live = streaming`), so a settled turn never shows the spinner or a long mark for a stored call whose status is stale. - **Popup list.** Tapping the chip opens `ToolPanel` as a bounded (`TOOL_PANEL_MAX_HEIGHT_DP`), scrollable list of one collapsible row per call in the order the agent made them. A row shows the call's name, its one-line detail, its `+N -M` stat for an edit and its duration, and expands in place to the pretty-printed INPUT, the synthesised diff for an `edit`-family call, then the ERROR block for a failed call or the OUTPUT (or `(no output)`). Rows expand and collapse independently, and the popup still does not re-flow or scroll the transcript. - **Pure logic.** `ui/chat/ChatFormat.kt` adds `toolCallsLabel`, `toolCallsAnnouncement` (the chip's accessibility line, e.g. "6 tool calls, expand for details"), `toolCallCount`, `toolsRunning` and `toolCallRow` (the per-row detail derivation), with cases added to `ChatFormatTest`. - **Geometry.** `ui/theme/Dimens.kt` adds `TOOL_PANEL_MAX_HEIGHT_DP`; no raw literal was introduced, so `DimensTest` is unchanged. ## Shared documents this change makes stale `android/README.md` describes the surface this item changed. The note is written here rather than edited in place; the `docs-fold` writer should update it. - `android/README.md` — the section **"Tool-call chips and the expandable panel (16 Oct 2026)"** and its **Grouped chips** bullet ("A run of consecutive `tool` parts in one assistant turn is now one `FlowRow` of compact chips") describe the per-call chips this item removed. It should say the turn renders one summary chip (`N tools called`) as the transcript's only tool-call surface, and that tapping it opens one popup listing every call of the turn as independently collapsible rows, with the chip's spinner/`long` marks gated on the turn still streaming. The **Overlay panel, scroll preserved** bullet stays true. - `docs/chat-verification.md:140` — the "Conversation — tool chip expanding" row names `ChatToolCalls.kt` and the per-chip panel; it should name the summary chip and the per-turn popup list, and the pure tests now include the label, count, announcement and per-row derivations in `ChatFormatTest` (the placement maths in `ToolPanelPositionProviderTest` is unchanged).