Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
Merge remote-tracking branch 'origin/main' into feat/turn-process-header
v_wyxgwang30afd29f583e
diff --cc docs/adr/turn-process-and-thinking-display.mdindex 921abafcd,390ee3a2e..414fd6a4a--- a/docs/adr/turn-process-and-thinking-display.md+++ b/docs/adr/turn-process-and-thinking-display.md@@@ -64,30 -64,24 +64,30 @@@ still load, is no longer exposed in Setwrites store `transcriptDisplayMode`.Group folding defaults are unified across modes and do not depend on the- thinking preference. Where a group renders, the group that owns the active- execution segment starts open, then closes on completion only while untouched.- Other completed groups start closed. An untouched active group containing any- recorded failed or denied tool stays open through later recovery and closes on- turn completion if still untouched.+ thinking preference. The active ordinary group stays open while its segment is+ active. After completion, ordinary groups with at most four visible items stay+ open, larger ordinary groups start closed, and Task topology groups stay open.+ Tool, search and run-row payloads keep their own closed defaults. Explicit user+ choices remain authoritative.-The turn's disclosure header states the turn's outcome and never echoes the item-it is working on, because a shell command or search query can be arbitrarily-long. It reads `failed`, `stopped`, `running`, or finished, in that precedence:-a recorded failure outranks a stop, because the turn produced no answer and a-normal-looking header hid that. A stop is read from an aborted message, the only-signal the runtime records — the turn result distinguishes completed from failed-only. Aborted activity rows also record a stop while a tool or reasoning step is-in flight; delegated child rows do not determine the parent turn's outcome.-While running, stages a reader can sit in front of (compaction, recovery)-name themselves; a live reasoning step reads `Thinking`, and momentary stages-read as plain running. Durations are dropped when the transcript recorded no-timing rather than shown as zero, and issue counts sit beside the label.+The turn's disclosure header states the turn's outcome and carries only its+bounded metadata: status, recorded duration and direct tool/search count. It+never echoes the item it is working on, because a shell command or search query+can be arbitrarily long. It reads `failed`, `stopped`, `running`, or finished, in+that precedence: a recorded failure outranks a stop, because the turn produced no+answer and a normal-looking header hid that. A stop is read from an aborted+message, the only signal the runtime records — the turn result distinguishes+completed from failed only. Aborted activity rows also record a stop while a tool+or reasoning step is in flight; delegated child rows do not determine the parent+turn's outcome. While running, stages a reader can sit in front of (compaction,+recovery) name themselves; a live reasoning step reads `Thinking`, and momentary+stages read as plain running. Durations are dropped when the transcript recorded+no timing rather than shown as zero. Issue counts are not repeated here: a+failure is already named by the status itself. The header is a full-width row+separated by a hairline; status, duration, tool count and the disclosure caret+form one left-aligned run, so the caret trails the metadata instead of sitting at+the far edge of the band. Hovering strengthens the text colour only and never+paints a background.The disclosure and its group headers share one left edge. A nested activitygroup keeps the released v0.20.1 hierarchy below that header: its body indents@@@ -175,13 -167,11 +174,13 @@@ own bounded issue summariesgroups; all three render exactly one disclosure, and reading the mode whilerendering repaints the transcript immediately instead of waiting for newmessages.- - With `showThinking` on, Thinking rows default expanded in `flat` and- `command-first`; `fully-folded` keeps the live-only auto-open exception.+ - With `showThinking` on, Thinking rows default expanded in `flat`,+ `command-first`, and `fully-folded`.-- The header answers "how did this turn end up" in one short line. Echoing the- current command was removed: it pushed the counts off the row and duplicated- what opening the item already shows.+- The header answers "how did this turn end up" in one short line and carries+ only status, recorded duration and direct tool/search count. A hairline+ underlines the row, the caret trails the metadata, and hover changes ink only.+ Echoing the current command was removed: it pushed the counts off the row and+ duplicated what opening the item already shows.- Disclosure memory is pane-owned presentation state with stable turn, group,and item identities; it is neither a persisted transcript contract nor acentral workflow-store concern.@@@ -214,12 -211,3 +220,12 @@@ Settings row label and search indexing`apps/desktop/test/settings-roundtrip.test.mjs` covers normalization, writevalidation and the `fully-folded` default. SeeE2E-CHAT-turn-process-and-thinking-display for the synchronized scenario text.- For the 2026-10-22 amendment,++For the top-level header amendment on 2026-10-22,+`apps/desktop/test/turn-process-header.test.mjs` renders the top-level header and+covers status, duration, tool count, inline-caret order and the absence of issue+counts in both completed and failed turns;+`apps/desktop/test/turn-process-header-style.test.mjs` covers the hairline,+text-only hover and the inline caret position, while `turn-process.test.mjs` and+`transcript-style.test.mjs` continue to cover phase precedence and the shared+header geometry. See E2E-CHAT-turn-process-and-thinking-display for the+synchronized scenario text.diff --cc docs/spec/04-ux/08-component-spec.mdindex 34fb69f36,7fbc06daa..f9ec4695b--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@@ -897,32 -900,26 +900,31 @@@ thinking never creates an empty wrappertop-level process disclosure and change neither what a tool received nor what isstored.- The ordinary group owning the active execution segment starts open while a turn is- active, then closes on completion only if untouched; other completed groups start- closed. An untouched active group remains open when any failed or denied tool has- been recorded, through later successful recovery, and closes on completion if still- untouched. These group defaults are unified across modes and do not depend on the- thinking preference. Group headers summarize count, running state and issue count- without treating a failed child as a failed turn.+ The ordinary group owning the active execution segment stays open while its turn+ is active. Afterward, ordinary groups with at most four visible items remain open;+ larger groups start closed, while Task topology groups remain open. These defaults+ are unified across modes and do not depend on the thinking preference. Explicit+ user choices remain authoritative. Group headers summarize count, running state+ and issue count without treating a failed child as a failed turn.-The turn disclosure header states the turn's outcome and never echoes the item it-is working on, because a shell command or search query can be arbitrarily long. It-reads `Failed`, `Stopped`, `Running`, or `Finished`, with failure outranking stop,-stop outranking completion, and a live turn reporting running. While running,-stages a reader can sit in front of (compaction, recovery) name themselves; a-live reasoning step reads `Thinking`, and momentary stages read as plain running.-Elapsed time is omitted when the-transcript recorded no timing rather than shown as zero, and issue counts sit-beside the label. The disclosure and its group headers share one left edge; a-nested activity group keeps the released v0.20.1 hierarchy below that header,-indenting its child rows by 12px and keeping the group's collapse rail in that-gutter. The rail stays invisible at rest, shows a 2px bar on hover or focus, and-collapses the group when clicked. The outer turn fold adds no extra hierarchy.+The turn disclosure header states the turn's outcome and carries only its bounded+metadata: status, recorded duration and direct tool/search count. It never echoes+the item it is working on, because a shell command or search query can be+arbitrarily long. It reads `Failed`, `Stopped`, `Running`, or `Finished`, with+failure outranking stop, stop outranking completion, and a live turn reporting+running. While running, stages a reader can sit in front of (compaction, recovery)+name themselves; a live reasoning step reads `Thinking`, and momentary stages read+as plain running. Elapsed time is omitted when the transcript recorded no timing+rather than shown as zero. Issue counts are not repeated at this level: a failed+turn is already named by its status. The header is a full-width row separated by+a 1px hairline; status, duration, tool count and the disclosure caret form one+left-aligned run, so the caret trails the metadata. Hovering strengthens the text+colour only and never paints a background. The disclosure and its group headers+share one left edge; a nested activity group keeps the released v0.20.1 hierarchy+below that header, indenting its child rows by 12px and keeping the group's+collapse rail in that gutter. The rail stays invisible at rest, shows a 2px bar on+hover or focus, and collapses the group when clicked. The outer turn fold adds no+extra hierarchy.Except for the display mode's Thinking default, no item payload opens itself: atool, hosted-search or plan call stays a header row until the user opens its