diff --git a/README.md b/README.md index 8ec101387f..cf90fdf7ef 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Full docs live in [docs/](./docs). There's no docs site yet. - [Permission modes](./docs/user/permission-modes.md) - [Keyboard shortcuts](./docs/user/keybindings.md) - [Customize a project icon](./docs/user/project-settings.md) +- [Appearance preferences](./docs/user/appearance.md) - [Remote access from a phone or another machine](./docs/user/remote-access.md) - [Keeping app and server in sync](./docs/user/updating.md) - [Source control integrations](./docs/user/source-control.md) diff --git a/apps/desktop/src/settings/DesktopClientSettings.test.ts b/apps/desktop/src/settings/DesktopClientSettings.test.ts index 23a75eb3f7..98135d4ae3 100644 --- a/apps/desktop/src/settings/DesktopClientSettings.test.ts +++ b/apps/desktop/src/settings/DesktopClientSettings.test.ts @@ -31,6 +31,7 @@ const clientSettings: ClientSettings = { fontSmoothing: true, glassOpacity: 80, planModeEnabled: false, + persistComposerContextStrip: true, providerModelPreferences: {}, sidebarAutoSettleAfterDays: 3, sidebarAutoSettleOnMerge: true, diff --git a/apps/mobile/src/lib/threadActivity.test.ts b/apps/mobile/src/lib/threadActivity.test.ts index c77480b8f7..2750c3303d 100644 --- a/apps/mobile/src/lib/threadActivity.test.ts +++ b/apps/mobile/src/lib/threadActivity.test.ts @@ -89,6 +89,20 @@ function assistantMessage(updatedAt = "2026-06-20T00:00:03.000Z") { } describe("buildThreadFeed", () => { + it("hides synthetic workspace preparation activity", () => { + const workspacePreparation = projected( + { + ...command(), + title: "Workspace ready", + input: "Preparing workspace", + output: "Workspace preparation completed.", + }, + 0, + ); + + expect(buildThreadFeed([workspacePreparation])).toEqual([]); + }); + it("does not treat a queued-only run as live feed activity", () => { expect( threadFeedRunIsUnsettled({ @@ -131,6 +145,33 @@ describe("buildThreadFeed", () => { ).toBe("turn_start"); }); + it("hides the interruption request and keeps the terminal result", () => { + const request = projected( + { + ...base("item-interrupt-request", "2026-06-20T00:00:02.000Z", 1), + type: "run_interrupt_request", + message: "Interrupt requested", + }, + 0, + ); + const result = projected( + { + ...base("item-interrupt-result", "2026-06-20T00:00:03.000Z", 2), + type: "run_interrupt_result", + message: "Run interrupted before provider start", + }, + 1, + ); + + const activities = buildThreadFeed([request, result]).flatMap((entry) => + entry.type === "activity-group" ? entry.activities : [], + ); + + expect(activities).toHaveLength(1); + expect(activities[0]?.summary).toBe("Run interrupted"); + expect(activities[0]?.detail).toBe("Run interrupted before provider start"); + }); + it("preserves authoritative V2 order instead of sorting reconstructed collections", () => { const rows = [ projected(userMessage("2026-06-20T00:00:03.000Z"), 0), diff --git a/apps/mobile/src/lib/threadActivity.ts b/apps/mobile/src/lib/threadActivity.ts index edde823729..393882ec43 100644 --- a/apps/mobile/src/lib/threadActivity.ts +++ b/apps/mobile/src/lib/threadActivity.ts @@ -3,6 +3,7 @@ import type { ThreadPendingUserInput, ThreadUserInputQuestion, } from "@t3tools/client-runtime/state/thread-requests"; +import { turnItemIsWorkspacePreparation } from "@t3tools/client-runtime/state/turn-item-presentation"; import { resolveT3McpToolPresentation, type T3McpToolLogo, @@ -1048,6 +1049,12 @@ export function buildThreadFeed( const entries: RawThreadFeedEntry[] = []; for (const row of visibleTurnItems) { const item = row.item; + if (turnItemIsWorkspacePreparation(item)) continue; + // Match the web timeline: only the terminal interrupt result is useful to + // users; the preceding request is transient bookkeeping. + if (item.type === "run_interrupt_request") { + continue; + } const createdAt = DateTime.formatIso(item.startedAt ?? item.updatedAt); if (item.type === "user_message" || item.type === "assistant_message") { const updatedAt = DateTime.formatIso(item.updatedAt); diff --git a/apps/web/src/components/BranchToolbarBranchSelector.tsx b/apps/web/src/components/BranchToolbarBranchSelector.tsx index 57c370c9d9..f212eab2ce 100644 --- a/apps/web/src/components/BranchToolbarBranchSelector.tsx +++ b/apps/web/src/components/BranchToolbarBranchSelector.tsx @@ -37,6 +37,7 @@ import { THREAD_DETAILS_PANEL_ICON_CLASS, THREAD_DETAILS_PANEL_ROW_POPUP_CLASS, THREAD_DETAILS_PANEL_ROW_CLASS, + THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, } from "./chat/threadDetailsPanelStyles"; import { parsePullRequestReference } from "../pullRequestReference"; import { getSourceControlPresentation } from "../sourceControlPresentation"; @@ -772,7 +773,7 @@ export function BranchToolbarBranchSelector({ render={ +