Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

feat(chat): keep transcript tool rows collapsed

vastsae50483b21c89
diff --git a/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx b/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx
index 8b725b69c..7e0137f2e 100644
--- a/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx
+++ b/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx
@@ -150,8 +150,6 @@ type ActivityGroupProps = {
embedded?: boolean;
isActive: boolean;
endedAt?: string;
- /** Last activity chunk of this assistant turn. */
- isLast?: boolean;
/** Current runtime wait phase, when the group owns the live turn tail. */
runtimeActivity?: AgentActivity;
/** Delegation statuses from the entire assistant turn (cross-activity-part). */
@@ -186,7 +184,6 @@ function activityGroupPropsEqual(
previous.embedded !== next.embedded ||
previous.isActive !== next.isActive ||
previous.endedAt !== next.endedAt ||
- previous.isLast !== next.isLast ||
previous.runtimeActivity !== next.runtimeActivity ||
previous.items.length !== next.items.length
) {
@@ -214,7 +211,6 @@ export const ActivityGroup = memo(function ActivityGroup({
embedded: _embedded = false,
isActive,
endedAt,
- isLast = false,
runtimeActivity,
turnDelegationStatuses,
turnDelegationTimings,
@@ -332,8 +328,6 @@ export const ActivityGroup = memo(function ActivityGroup({
const renderedItems = <ActivityItems
items={items}
- compact={compact}
- isLast={isLast}
isActive={isActive}
live={live}
delegateItems={delegateItems}
diff --git a/apps/desktop/src/features/chat/transcript/ActivityItems.tsx b/apps/desktop/src/features/chat/transcript/ActivityItems.tsx
index 6b88273d7..720fce5d5 100644
--- a/apps/desktop/src/features/chat/transcript/ActivityItems.tsx
+++ b/apps/desktop/src/features/chat/transcript/ActivityItems.tsx
@@ -16,8 +16,6 @@ function itemKey(item: AssistantActivityItem) {
type ActivityItemsProps = {
items: readonly AssistantActivityItem[];
- compact: boolean;
- isLast: boolean;
isActive: boolean;
live: boolean;
delegateItems: DelegationActivityItem[];
@@ -36,7 +34,7 @@ type ActivityItemBlockProps = Omit<ActivityItemsProps, "items" | "delegateItems"
};
const ActivityItemBlock = memo(function ActivityItemBlock({
- block, compact, isLast, isActive, live, lastItem, topologyItem,
+ block, isActive, live, lastItem, topologyItem,
delegateItems, delegationStatuses, delegationTimings, onUserInteraction,
}: ActivityItemBlockProps) {
return <>{block.items.map((item) => {
@@ -53,12 +51,11 @@ const ActivityItemBlock = memo(function ActivityItemBlock({
onUserInteraction={onUserInteraction}
/>;
}
- // The literal last item of the last activity part owns this default,
- // never the last item of an internal render block.
- const autoOpenLatest = !compact && isLast && item === lastItem;
+ // A tool or hosted-search row always starts collapsed: only the user opens
+ // a payload, never the row's position in the turn.
if (item.kind === "tool") return (
<Fragment key={item.message.id}>
- <ToolRow imagesInTurn message={item.message} autoOpen={autoOpenLatest}
+ <ToolRow imagesInTurn message={item.message}
onUserInteraction={onUserInteraction} {...(item.delegate ? { delegate: item.delegate } : {})} />
<ReviewChangeCard message={item.message} />
</Fragment>
@@ -68,7 +65,6 @@ const ActivityItemBlock = memo(function ActivityItemBlock({
messageId={item.message.id}
round={item.round}
streaming={isActive && item.message.status === "streaming"}
- autoOpen={autoOpenLatest}
onUserInteraction={onUserInteraction}
/>;
return <ThinkingRow
@@ -91,8 +87,6 @@ export const ActivityItems = memo(function ActivityItems({ items, ...context }:
return <ActivityItemBlock
key={block.key}
block={block}
- compact={context.compact}
- isLast={ownsLast && context.isLast}
isActive={context.isActive}
live={context.live}
lastItem={ownsLast ? lastItem : undefined}
diff --git a/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx b/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx
index 1657c9122..779dc781c 100644
--- a/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx
+++ b/apps/desktop/src/features/chat/transcript/AssistantTurn.tsx
@@ -314,9 +314,9 @@ export const AssistantTurn = memo(function AssistantTurn({
resolveThinkingDisplayMode(state.settings?.thinkingDisplayMode),
),
);
- const { process, responses, lastActivityPart } = summary;
+ const { process, responses } = summary;
const activePart = isActive ? entry.parts.at(-1) : undefined;
- const partContext = { isActive, activePart, lastActivityPart, runtimeActivity, turnDelegationStatuses, turnDelegationTimings };
+ const partContext = { isActive, activePart, runtimeActivity, turnDelegationStatuses, turnDelegationTimings };
return (
<div
diff --git a/apps/desktop/src/features/chat/transcript/AssistantTurnParts.tsx b/apps/desktop/src/features/chat/transcript/AssistantTurnParts.tsx
index 5af84c09c..876e36b7d 100644
--- a/apps/desktop/src/features/chat/transcript/AssistantTurnParts.tsx
+++ b/apps/desktop/src/features/chat/transcript/AssistantTurnParts.tsx
@@ -40,14 +40,13 @@ function partKey(part: AssistantTurnPart) {
type PartContext = {
isActive: boolean;
activePart?: AssistantTurnPart;
- lastActivityPart?: AssistantTurnPart;
runtimeActivity?: AgentActivity;
turnDelegationStatuses: ReadonlyMap<string, SubagentOutcome>;
turnDelegationTimings: ReadonlyMap<string, SubagentTiming>;
};
const TurnPartBlock = memo(function TurnPartBlock({
- block, isActive, activePart, lastActivityPart, runtimeActivity,
+ block, isActive, activePart, runtimeActivity,
turnDelegationStatuses, turnDelegationTimings,
}: PartContext & { block: RenderBlock<AssistantTurnPart> }) {
return <>{block.items.map((part) => part.kind === "activity" ? (
@@ -57,7 +56,6 @@ const TurnPartBlock = memo(function TurnPartBlock({
items={part.items}
endedAt={part.endedAt}
isActive={part === activePart}
- isLast={part === lastActivityPart}
runtimeActivity={part === activePart ? runtimeActivity : undefined}
turnDelegationStatuses={turnDelegationStatuses}
turnDelegationTimings={turnDelegationTimings}
@@ -77,13 +75,11 @@ export const AssistantTurnParts = memo(function AssistantTurnParts({ parts, ...c
const blocks = useRenderBlocks(parts, partKey);
return <>{blocks.map((block) => {
const activePart = context.activePart && block.items.includes(context.activePart) ? context.activePart : undefined;
- const lastActivityPart = context.lastActivityPart && block.items.includes(context.lastActivityPart) ? context.lastActivityPart : undefined;
return <TurnPartBlock
key={block.key}
block={block}
isActive={context.isActive}
activePart={activePart}
- lastActivityPart={lastActivityPart}
runtimeActivity={activePart ? context.runtimeActivity : undefined}
turnDelegationStatuses={context.turnDelegationStatuses}
turnDelegationTimings={context.turnDelegationTimings}
diff --git a/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx b/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx
index e91206fd2..f832af253 100644
--- a/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx
+++ b/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx
@@ -35,13 +35,11 @@ export const HostedSearchRow = memo(function HostedSearchRow({
messageId,
round,
streaming,
- autoOpen = false,
onUserInteraction,
}: {
messageId: string;
round: HostedSearchRound;
streaming: boolean;
- autoOpen?: boolean;
onUserInteraction?: () => void;
}) {
const { t } = useTranslation();
@@ -49,7 +47,8 @@ export const HostedSearchRow = memo(function HostedSearchRow({
const searching = streaming && round.status === "searching";
const failed = round.status === "failed";
const revealRequest = useMessageRevealRequest(messageId);
- const disclosure = useAutomaticDisclosure(autoOpen && !failed, revealRequest, disclosureKey("hostedSearch", messageId, round.id));
+ // The row never opens itself; its query and sources wait behind the header.
+ const disclosure = useAutomaticDisclosure(false, revealRequest, disclosureKey("hostedSearch", messageId, round.id));
const { open, toggle: toggleDisclosure, collapse: collapseDisclosure } = disclosure;
const titleRef = disclosure.titleRef;
const toggleRow = useCallback(() => {
@@ -153,6 +152,5 @@ export const HostedSearchRow = memo(function HostedSearchRow({
previous.messageId === next.messageId &&
previous.round === next.round &&
previous.streaming === next.streaming &&
- previous.autoOpen === next.autoOpen &&
previous.onUserInteraction === next.onUserInteraction,
);
diff --git a/apps/desktop/src/features/chat/transcript/PlanHistoryCard.tsx b/apps/desktop/src/features/chat/transcript/PlanHistoryCard.tsx
index 79d5c050d..a2946f86c 100644
--- a/apps/desktop/src/features/chat/transcript/PlanHistoryCard.tsx
+++ b/apps/desktop/src/features/chat/transcript/PlanHistoryCard.tsx
@@ -11,13 +11,13 @@ import { useMessageRevealRequest } from "./shared";
import "../../../styles/plan-history.css";
/** Historical submissions are read-only; approval remains in PlanApprovalBar. */
-export function PlanHistoryCard({ message, proposal, autoOpen = false, onUserInteraction }: {
- message: UiMessage; proposal: PlanProposal; autoOpen?: boolean; onUserInteraction?: () => void;
+export function PlanHistoryCard({ message, proposal, onUserInteraction }: {
+ message: UiMessage; proposal: PlanProposal; onUserInteraction?: () => void;
}) {
const { t } = useTranslation();
const bodyId = useId();
const reveal = useMessageRevealRequest(message.id);
- const disclosure = useAutomaticDisclosure(autoOpen, reveal, disclosureKey("tool", message.id));
+ const disclosure = useAutomaticDisclosure(false, reveal, disclosureKey("tool", message.id));
const openTab = useAppStore(state => state.openWorkPanelTabForSession);
const views = useAppStore(state => state.pluginViews);
const sessionId = useSlotSessionId() || proposal.sessionId;
diff --git a/apps/desktop/src/features/chat/transcript/ToolRow.tsx b/apps/desktop/src/features/chat/transcript/ToolRow.tsx
index a0305e460..c01515089 100644
--- a/apps/desktop/src/features/chat/transcript/ToolRow.tsx
+++ b/apps/desktop/src/features/chat/transcript/ToolRow.tsx
@@ -91,8 +91,6 @@ type ToolRowProps = {
delegate?: SubagentRun;
/** Card treatment used when several Task calls form a delegation topology. */
variant?: "default" | "topology";
- /** Open the latest detailed-mode tool unless the user took over. */
- autoOpen?: boolean;
/** The containing turn renders image results outside its process disclosure. */
imagesInTurn?: boolean;
/** Claims the containing activity group when this row is manually used. */
@@ -124,7 +122,6 @@ function toolRowPropsEqual(
if (
previous.message !== next.message ||
previous.variant !== next.variant ||
- previous.autoOpen !== next.autoOpen ||
previous.imagesInTurn !== next.imagesInTurn ||
previous.onUserInteraction !== next.onUserInteraction ||
!subagentRunsEqual(previous.delegate, next.delegate)
@@ -160,7 +157,7 @@ export const ToolRow = memo(function ToolRow(props: ToolRowProps) {
);
const proposal = planSubmission(message);
if (proposal && variant === "default" && message.toolStatus !== "denied") {
- return <PlanHistoryCard message={message} proposal={proposal} autoOpen={props.autoOpen} onUserInteraction={props.onUserInteraction} />;
+ return <PlanHistoryCard message={message} proposal={proposal} onUserInteraction={props.onUserInteraction} />;
}
const hostRow = <HostToolRow {...props} />;
return cardEntry ? (
@@ -174,7 +171,6 @@ function HostToolRow({
message,
delegate,
variant = "default",
- autoOpen = false,
imagesInTurn = false,
onUserInteraction,
delegationStatuses,
@@ -194,12 +190,11 @@ function HostToolRow({
// (D227). Property reads only, so a streaming row can afford it every tick.
const run = action === "run" ? runOutcome(message) : null;
const failed = status === "error" || run === "failed";
- // Detailed mode opens the last tool of the last activity group. Compact keeps
- // payloads collapsed so a live burst only updates the header. Failure and
- // denial stay in the row head without expanding the payload automatically.
+ // A tool call never opens itself: the payload waits for the user, and a
+ // failure or denial stays in the row head either way.
const revealRequest = useMessageRevealRequest(message.id);
const disclosure = useAutomaticDisclosure(
- autoOpen && !failed && status !== "denied",
+ false,
revealRequest,
disclosureKey("tool", message.id),
);
diff --git a/apps/desktop/src/lib/transcript-summary.ts b/apps/desktop/src/lib/transcript-summary.ts
index e984e1d38..219e578f8 100644
--- a/apps/desktop/src/lib/transcript-summary.ts
+++ b/apps/desktop/src/lib/transcript-summary.ts
@@ -32,7 +32,6 @@ export type AssistantTurnSummary = {
hasContent: boolean;
process: AssistantTurnPart[];
responses: Extract<AssistantTurnPart, { kind: "message" }>[];
- lastActivityPart?: AssistantTurnPart;
};
const summaries = new WeakMap<readonly AssistantTurnPart[], AssistantTurnSummary>();
@@ -56,7 +55,6 @@ export function getAssistantTurnSummary(entry: AssistantTurnEntry): AssistantTur
for (const part of entry.parts) {
if (part.kind === "activity") {
result.process.push(part);
- result.lastActivityPart = part;
for (const item of part.items) {
result.activityItems.push(item);
if (item.kind !== "tool") continue;
diff --git a/apps/desktop/src/lib/turn-process.ts b/apps/desktop/src/lib/turn-process.ts
index 502bcbd86..adbfdbe13 100644
--- a/apps/desktop/src/lib/turn-process.ts
+++ b/apps/desktop/src/lib/turn-process.ts
@@ -54,18 +54,6 @@ export function shouldGroupTurnProcess(mode: ThinkingDisplayMode): boolean {
return mode === "detailed" || mode === "compact";
}
-/** The last activity chunk of a turn owns detailed-mode's default-open tool. */
-export function isLastActivityPart(
- parts: readonly AssistantTurnPart[],
- part: AssistantTurnPart,
-): boolean {
- if (part.kind !== "activity") return false;
- for (let index = parts.length - 1; index >= 0; index -= 1) {
- if (parts[index].kind === "activity") return parts[index] === part;
- }
- return false;
-}
-
/** Active processes open in Detailed; settled processes default closed. */
export function shouldAutoOpenTurnProcess(
mode: ThinkingDisplayMode,
diff --git a/apps/desktop/test/interaction-performance.test.mjs b/apps/desktop/test/interaction-performance.test.mjs
index c4510b2f7..6d210d4e1 100644
--- a/apps/desktop/test/interaction-performance.test.mjs
+++ b/apps/desktop/test/interaction-performance.test.mjs
@@ -92,12 +92,12 @@ test("stream rendering avoids duplicate frame state and coalesces following", ()
});
test("expanded live tool output stays local to the changed row", () => {
- // Only the last detailed-mode tool opens automatically. Collapsed rows skip
- // the payload walk so a Bash burst does not rerender every sibling.
+ // No row opens itself, so only a row the user opened walks its payload and a
+ // Bash burst does not rerender every sibling.
assert.match(transcript, /const ToolRow = memo\(function ToolRow/);
assert.match(transcript, /function toolRowPropsEqual\(/);
assert.match(transcript, /if \(previous.variant !== "topology"\) return true;/);
- assert.match(transcript, /const autoOpenLatest =\s*!compact && isLast && item === lastItem/);
+ assert.doesNotMatch(transcript, /autoOpenLatest/);
assert.match(transcript, /if \(variant !== "topology" && open && hasDetails && disclosure\.parentVisible/);
assert.match(transcript, /const blocks = variant !== "topology" && open && hasDetails \? presentation\.current\?\.blocks : null/);
});
@@ -114,9 +114,9 @@ test("tool errors stay local to their rows instead of failing the activity group
assert.doesNotMatch(toolRow, /const hasFailure = items.some/);
assert.doesNotMatch(toolRow, /processingFailedAfter/);
assert.doesNotMatch(toolRow, /tool-activity-group[\s\S]*?failed/);
- // Failures remain visible in the row header; automatic open is last-tool
- // ownership, not error ownership.
- assert.match(toolRow, /const disclosure = useAutomaticDisclosure\(\s*autoOpen && !failed && status !== "denied",\s*revealRequest,\s*disclosureKey\("tool"/);
+ // Failures remain visible in the row header; no row opens its payload on its
+ // own, failed or not.
+ assert.match(toolRow, /const disclosure = useAutomaticDisclosure\(\s*false,\s*revealRequest,\s*disclosureKey\("tool", message\.id\),\s*\);/);
assert.match(transcript, /bodyEvents: \{ onPointerDownCapture: claim, onFocusCapture: claim \}/);
assert.match(toolRow, /status === "error"\s*\? t\("chat.toolFailed"\)/);
});
diff --git a/apps/desktop/test/thinking-ui.test.mjs b/apps/desktop/test/thinking-ui.test.mjs
index 26c338146..c65170c58 100644
--- a/apps/desktop/test/thinking-ui.test.mjs
+++ b/apps/desktop/test/thinking-ui.test.mjs
@@ -276,7 +276,7 @@ test("expanded assistant activity rails collapse their disclosures", () => {
assert.match(stylesSource, /\.disclosure-collapse-rail:focus-visible\s*\{/);
});
-test("detailed mode opens the last tool while compact keeps payloads collapsed", () => {
+test("tool and search rows stay collapsed while thinking keeps its leaf default", () => {
assert.match(transcriptDisclosureSource, /export function useAutomaticDisclosure\(/);
assert.match(transcriptDisclosureSource, /revealRequest\?: number/);
assert.match(transcriptDisclosureSource, /const currentOpen = useRef\(open\)/);
@@ -286,12 +286,11 @@ test("detailed mode opens the last tool while compact keeps payloads collapsed",
transcriptSource,
/<ThinkingRow[\s\S]*?autoOpen=\{live && item === lastItem\}/,
);
- assert.match(
- transcriptSource,
- /const autoOpenLatest =\s*!compact && isLast && item === lastItem/,
- );
- assert.match(transcriptSource, /<ToolRow[\s\S]*?autoOpen=\{autoOpenLatest\}/);
- assert.match(transcriptToolRowSource, /const disclosure = useAutomaticDisclosure\(\s*autoOpen && !failed && status !== "denied",\s*revealRequest/);
+ // The leaf default stays with thinking only; a tool, hosted-search or plan
+ // row waits for an explicit user action in either mode.
+ assert.doesNotMatch(transcriptSource, /autoOpenLatest/);
+ assert.doesNotMatch(transcriptSource, /<ToolRow[^>]*\sautoOpen/);
+ assert.match(transcriptToolRowSource, /const disclosure = useAutomaticDisclosure\(\s*false,\s*revealRequest,\s*disclosureKey\("tool", message\.id\),\s*\);/);
assert.match(transcriptSource, /onClick=\{toggleDisclosure\}/);
assert.match(transcriptSource, /onCollapse=\{collapseDisclosure\}/);
assert.match(transcriptSource, /onUserInteraction=\{claimDisclosure\}/);
diff --git a/apps/desktop/test/transcript-summary.test.mjs b/apps/desktop/test/transcript-summary.test.mjs
index c1dc32d32..0e052073b 100644
--- a/apps/desktop/test/transcript-summary.test.mjs
+++ b/apps/desktop/test/transcript-summary.test.mjs
@@ -190,10 +190,9 @@ test("memo boundaries check scalar changes before identity and skip stable child
const tail = { ...props, isRunning: true };
assert.equal(TranscriptTail.compare(tail, { ...tail }), true);
assert.equal(TranscriptTail.compare(tail, { ...tail, isRunning: false }), false);
- const group = { items: part.items, isActive: true, isLast: true };
+ const group = { items: part.items, isActive: true };
assert.equal(ActivityGroup.compare(group, { ...group }), true);
assert.equal(ActivityGroup.compare(group, { ...group, isActive: false }), false);
- assert.equal(ActivityGroup.compare(group, { ...group, isLast: false }), false);
assert.equal(ActivityGroup.compare(group, { ...group, endedAt: "now" }), false);
const opaque = new Proxy(item, { get() { throw new Error("stable item was inspected"); } });
assert.equal(activityItemsEqual(opaque, opaque), true);
diff --git a/apps/desktop/test/turn-process.test.mjs b/apps/desktop/test/turn-process.test.mjs
index f63f3c772..fed99a512 100644
--- a/apps/desktop/test/turn-process.test.mjs
+++ b/apps/desktop/test/turn-process.test.mjs
@@ -7,7 +7,6 @@ const {
projectTurnProcess,
visibleProcessSteps,
resolveThinkingDisplayMode,
- isLastActivityPart,
shouldAutoOpenTurnProcess,
shouldGroupTurnProcess,
turnProcessTiming,
@@ -112,27 +111,6 @@ test("completed turn processes stay closed by default while active failures rema
assert.equal(shouldAutoOpenTurnProcess("compact", false, true), false);
});
-test("the last activity part owns detailed-mode's default-open tool", () => {
- const entry = turn([
- message("intro", "assistant", "Inspect", { thinking: "Plan" }),
- message("read", "tool", "result", { toolName: "Read" }),
- message("progress", "assistant", "Next"),
- message("edit", "tool", "updated", { toolName: "Edit" }),
- message("final", "assistant", "Fixed"),
- ]);
- const activities = entry.parts.filter((part) => part.kind === "activity");
- assert.ok(activities.length >= 2);
- assert.equal(isLastActivityPart(entry.parts, activities[0]), false);
- assert.equal(isLastActivityPart(entry.parts, activities.at(-1)), true);
- assert.equal(
- isLastActivityPart(
- entry.parts,
- entry.parts.find((part) => part.kind === "message"),
- ),
- false,
- );
-});
-
test("history timing uses recorded ends and rejects invalid timestamps and durations", () => {
const entry = turn([
message("read", "tool", "", { toolCompletedAt: "2026-09-17T00:00:02.000Z" }),
diff --git a/docs/adr/turn-process-and-thinking-display.md b/docs/adr/turn-process-and-thinking-display.md
index 3f3020be1..11454f4c9 100644
--- a/docs/adr/turn-process-and-thinking-display.md
+++ b/docs/adr/turn-process-and-thinking-display.md
@@ -44,12 +44,12 @@ on turn completion if still untouched. Compact mode keeps every tool/search
payload closed and renders no reasoning text or excerpt; it shows only the
active thinking indicator and omits empty completed thinking-only containers.
-Detailed mode preserves the leaf default only for the literal final item of the
-last activity group. If that item is an eligible tool-call or hosted-search row,
-its payload starts open; failed and denied items remain guarded closed. The
-renderer does not scan backward past a final thinking item to open an earlier
-tool. Opening a closed ancestor exposes the retained leaf state without opening
-all descendants.
+The leaf default that this decision first introduced was later removed. Item
+payloads never open themselves in either mode: a tool-call, hosted-search or
+plan row stays a header row until the user opens it, wherever it sits in the
+group. Group and whole-process defaults are unchanged, and opening a closed
+ancestor still exposes the retained item choices without opening all
+descendants.
Each header toggles only its own level. Parent and child states are independent:
closing a parent preserves descendant choices, reopening restores them, and
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index a06ddb979..ab94754eb 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -864,11 +864,11 @@ through later successful recovery, and closes on completion if still untouched.
Group headers summarize count, running state and issue count without treating a
failed child as a failed turn.
-In Detailed, only the literal final item of the last activity group receives the
-leaf auto-open default when it is an eligible tool-call or hosted-search row.
-Failed and denied rows remain closed, and a final thinking item does not cause a
-backward scan for an earlier tool. Compact keeps all tool/search payloads closed and
-suppresses reasoning text and excerpts; only its active thinking indicator remains.
+No item payload opens itself in either mode: a tool, hosted-search or plan call
+stays a header row until the user opens its disclosure. The activity group and
+the whole process keep their automatic open defaults, so a live turn still shows
+its work. Compact keeps all tool/search payloads closed and suppresses reasoning
+text and excerpts; only its active thinking indicator remains.
Whole process, group and item are independent controls. Closing an ancestor keeps
descendant choices and reopening restores them; opening a parent never expands all
@@ -2217,10 +2217,9 @@ ordinary processing group only when it has two or more visible items. A singleto
uses its item disclosure directly, and Task topology keeps its existing container.
While the turn is active, the ordinary group owning the execution segment opens in
Detailed and remains closed in Compact; when it settles, an untouched Detailed
-group closes. Detailed auto-opens a leaf payload only when the literal final item
-of the last activity group is an eligible tool-call or hosted-search row. Earlier,
-failed and denied rows remain closed, and a final thinking item does not select an
-earlier tool. Compact keeps every tool/search payload closed.
+group closes. No item payload opens itself in either mode: a tool, hosted-search
+or plan row stays a header row until the user opens it, whichever item of the
+group it is. Compact keeps every tool/search payload closed.
The group header shows `Processing · 12s` while active or `Processed for 12s`
after completion, plus bounded item and issue counts. Expanding it reveals the
@@ -2252,10 +2251,9 @@ seconds when non-zero) from one hour onward. Zero-value units are omitted, so
in the transcript after completion. In Detailed the active group starts open and
closes on completion only if untouched; completed groups otherwise start closed.
Compact groups start closed. A singleton has no group header.
-- Tool/search payloads remain collapsed in Compact. In Detailed, only an eligible
- literal final item of the last activity group starts expanded; failed/denied
- items remain closed, and a final thinking item does not select an earlier tool.
- Live thinking follows its own disclosure policy and never opens sibling payloads.
+- Tool/search payloads stay collapsed in both modes until the user opens them; no
+ row auto-opens, so a final thinking item never selects an earlier tool. Live
+ thinking follows its own disclosure policy and never opens sibling payloads.
- The processing group spans the full available assistant column, so expanded
result details keep a usable width even when the header or payload is short.
- The visible label is a natural-language action (`Read`, `Ran`, `Searched`),
@@ -2328,17 +2326,16 @@ twice.
| State | Header treatment | Expanded content |
|---|---|---|
-| Running | Progressive action with readable text and a pulsing marker; a `run` row also shows its spinner and pulses the status dot beside `Working…` | Detailed opens the active multi-item group; only an eligible literal-final tool/search payload opens. Compact payloads stay closed; live thinking follows its own indicator/disclosure policy |
-| Success | Past-tense action + result chips; no green success badge, except a `run` row's dot and `Done` | Result blocks, then arguments if not already shown; an untouched active group closes on completion, while manual group/item choices and the detailed literal-final leaf state are retained |
+| Running | Progressive action with readable text and a pulsing marker; a `run` row also shows its spinner and pulses the status dot beside `Working…` | Detailed opens the active multi-item group; no item payload opens itself. Compact payloads stay closed; live thinking follows its own indicator/disclosure policy |
+| Success | Past-tense action + result chips; no green success badge, except a `run` row's dot and `Done` | Result blocks, then arguments if not already shown; an untouched active group closes on completion, while manual group and item choices are retained |
| Error | Past-tense action + compact danger status; details remain collapsed by default and open only on user request. A `run` row is in this state whenever its command exited nonzero, whatever the call reported (D227) | Error note first, then arguments |
| Denied | Muted `Denied` status; payload remains closed until requested | Permission result when available |
### 9.6 Interactions
- Click the row: expand/collapse only that result payload. Compact payloads start
- closed. Detailed starts a payload open only when the row is the eligible literal
- final item of the last activity group; earlier, failed and denied rows remain
- closed until the user opens them.
+ closed. No payload opens itself in either mode, so the row the user opens is the
+ only expanded one; failed and denied rows behave the same.
- A file path that a row or its result names is a link, not decoration: clicking
the summary path of a `Read`, `Write`, `Edit`, or `fetch` row, or a path in a
result's file list or match groups, completes the reference through the same
diff --git a/docs/spec/04-ux/09-interaction-patterns.md b/docs/spec/04-ux/09-interaction-patterns.md
index db8e67f94..2637abde0 100644
--- a/docs/spec/04-ux/09-interaction-patterns.md
+++ b/docs/spec/04-ux/09-interaction-patterns.md
@@ -885,11 +885,12 @@ may be retained while exactly one workspace supplies the visible shell context.
groups otherwise start closed. Compact starts the process and groups closed,
except an untouched active process with any recorded failed/denied tool remains
open through recovery and closes on completion.
-- In Detailed, leaf auto-open applies only when the literal final item of the last
- activity group is an eligible tool-call or hosted-search row. Failed/denied
- items stay closed, and a final thinking item never causes a backward scan.
- Compact keeps every item payload closed and hides reasoning text/excerpts while
- retaining its active thinking indicator.
+- No item payload opens itself in either mode: a tool, hosted-search or plan call
+ stays a header row until the user opens it, including the literal final item of
+ the last activity group. Group and whole-process defaults are unchanged, so a
+ final thinking item never causes a backward scan. Compact keeps every item
+ payload closed and hides reasoning text/excerpts while retaining its active
+ thinking indicator.
- Activating a process, group or item header toggles only that level. Closing a
parent preserves child state, reopening restores it, and sibling groups remain
independent. Opening a parent is never an expand-all action.
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 4f6b83bb3..80b3a8d8b 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -3026,10 +3026,10 @@ identify the platform validation still needed.
active multi-item group opens, then closes on completion only if untouched.
Compact starts processes/groups and all payloads closed, hides reasoning text,
and keeps an untouched active process open after a failed/denied tool through
- later recovery. A singleton has no group wrapper. Detailed auto-opens a payload
- only when the literal final item of the last activity group is an eligible
- tool/search; it never scans backward past thinking, and failure/denial guards
- keep that leaf closed. Parent, child and sibling choices are independent;
+ later recovery. A singleton has no group wrapper. No item payload opens itself:
+ a tool/search row stays a header until the user opens it, while a final thinking
+ item keeps its own leaf default and never selects an earlier tool. Parent, child
+ and sibling choices are independent;
closing/reopening a parent preserves descendants, and streaming/completion does
not override user-owned choices. Retained-pane remounts preserve choices;
renderer restart reapplies defaults while tool names, arguments, results and
@@ -16146,9 +16146,9 @@ plugin-form fixtures in an isolated temporary directory at runtime.
is open and an untouched group closes on completion. Compact starts processes
and groups closed, hides reasoning, and keeps payloads closed; an untouched
active process with a recorded failed/denied tool stays open through recovery
- and closes on completion. Singletons have no group. Detailed auto-opens only
- an eligible literal final tool/search item of the last activity group; it does
- not scan past thinking, and failed/denied leaves stay closed. Parent/child/
+ and closes on completion. Singletons have no group. No item payload opens
+ itself: a tool/search row stays closed until the user opens it, while a final
+ thinking item keeps its own leaf default. Parent/child/
sibling states remain independent, pane-owned user choices survive updates,
mode changes and remounts, and renderer restart reapplies defaults. Search
reveals the process and activity group that own the named message once per
diff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.md
index f6e6e7813..a52666203 100644
--- a/docs/spec/08-meta/decisions-log.md
+++ b/docs/spec/08-meta/decisions-log.md
@@ -43,6 +43,7 @@ This log freezes previously open questions into concrete decisions.
| D648 | Skill Market pins an acceptable address for mixed direct DNS answers | **Amend ADR 0272: on a direct route, when DNS includes both rejected and acceptable answers, Skill Market selects and pins one acceptable address instead of letting Chromium choose among them. Third-party content prefers a public answer; the benchmark fake-IP is eligible only under the existing opt-in. ULA-only and other non-public-only answers remain blocked. Proxied and unreadable routes keep the existing policy. See ADR 0321 and E2E-SKILL-MARKET-NET-BOUNDARY.** | Dual-stack and transparent-proxy DNS can include an unused synthetic ULA answer beside an address the request can safely use; pinning prevents the rejected address from being dialed while avoiding the false refusal. |
| D649 | Cloud backup stays closed to users | **Amend D642 / D643: the Settings `sync` destination carries `developmentOnly: true` again, so a packaged build omits its rail row, page, and settings-search hits and falls back to General, while development builds keep it. Developer mode stays irrelevant to the destination and it still carries no Experimental badge. Sync behavior, protocol, host schema, and persisted data are unchanged; dropping the flag reopens it for packaged builds. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | The encrypted WebDAV backup is not ready to be offered to packaged-build users yet, so it stays implemented but out of the way until it opens. |
+| D650 | Transcript tool rows never auto-open | **Amend the leaf auto-open provision of the turn-process / thinking-display decisions and ADR `turn-process-and-thinking-display`: a tool-call, hosted-search or plan row keeps its payload collapsed in both display modes and only an explicit user action opens it, including the literal final item of the last activity group. Whole-process and ordinary-group defaults, failed/denied behavior, retained per-item choices, and the thinking row's own leaf default are unchanged. Renderer-only; no host protocol, persistence, permission or plugin contract change. See `04-ux/08-component-spec.md` §9.1/§9.2/§9.5/§9.6, `04-ux/09-interaction-patterns.md` §4.2, and E2E-040.** | A payload that opened itself under the newest call pulled attention away from the answer the user was waiting for and made one turn look different depending on how it ended; leaving every payload to the user keeps one predictable row. |
## B. Secondary implementation defaults
@@ -7535,3 +7536,18 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
and `apps/desktop/test/config-sync-settings.test.mjs`; the Cloud sync probe in
`pnpm test:e2e:settings-scroll` runs a development build. See
`04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.
+
+## 2026-10-08 — Transcript tool rows never auto-open (D650)
+
+- D650 amends the leaf auto-open provision introduced with the turn-process
+ disclosure: in both Detailed and Compact a tool-call, hosted-search or plan row
+ keeps its payload collapsed until the user opens it, wherever it sits in the
+ activity group. Whole-process and ordinary-group defaults, failed and denied
+ behavior, per-item retained choices, and the thinking row's own leaf default are
+ unchanged.
+- Covered by `apps/desktop/test/interaction-performance.test.mjs`,
+ `apps/desktop/test/thinking-ui.test.mjs`, and
+ `apps/desktop/test/transcript-summary.test.mjs`; the unit test for the removed
+ leaf-ownership helper is retired. See `04-ux/08-component-spec.md`
+ §9.1/§9.2/§9.5, `04-ux/09-interaction-patterns.md` §4.2, ADR
+ `turn-process-and-thinking-display`, and E2E-040.