Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit 32c6012

Browse files
t3dotggclaudemaria-rcks
authored
Sidebar v2 beta: flat thread list with a server-backed settled lifecycle (pingdotgg#4026)
Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: maria-rcks <[email protected]>
1 parent 6f34ad3 commit 32c6012

79 files changed

Lines changed: 5834 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/desktop/src/settings/DesktopClientSettings.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ const clientSettings: ClientSettings = {
2020
diffIgnoreWhitespace: true,
2121
favorites: [],
2222
providerModelPreferences: {},
23+
sidebarAutoSettleAfterDays: 3,
2324
sidebarProjectGroupingMode: "repository_path",
2425
sidebarProjectGroupingOverrides: {
2526
"environment-1:/tmp/project-a": "separate",
2627
},
2728
sidebarProjectSortOrder: "manual",
2829
sidebarThreadSortOrder: "created_at",
2930
sidebarThreadPreviewCount: 6,
31+
sidebarV2Enabled: false,
3032
timestampFormat: "24-hour",
3133
wordWrap: true,
3234
};

‎apps/mobile/src/features/archive/archivedThreadList.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ function makeThread(
4141
hasPendingUserInput: false,
4242
hasActionableProposedPlan: false,
4343
...input,
44+
settledOverride: input.settledOverride ?? null,
45+
settledAt: input.settledAt ?? null,
4446
};
4547
}
4648

‎apps/mobile/src/features/home/HomeRouteScreen.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export function HomeRouteScreen() {
2828
const { savedConnectionsById } = useSavedRemoteConnections();
2929
const navigation = useNavigation();
3030
const [searchQuery, setSearchQuery] = useState("");
31-
const { archiveThread, confirmDeleteThread } = useThreadListActions();
31+
const { archiveThread, confirmDeleteThread, settleThread, unsettleThread } =
32+
useThreadListActions();
3233
const pendingTasks = usePendingNewTasks();
3334
const { openPendingTask, confirmDeletePendingTask } = usePendingTaskListActions();
3435
const environments = useMemo(
@@ -111,6 +112,8 @@ export function HomeRouteScreen() {
111112
}
112113
onArchiveThread={archiveThread}
113114
onDeleteThread={confirmDeleteThread}
115+
onSettleThread={settleThread}
116+
onUnsettleThread={unsettleThread}
114117
onEnvironmentChange={setSelectedEnvironmentId}
115118
onOpenEnvironments={() =>
116119
navigation.navigate("SettingsSheet", { screen: "SettingsEnvironments" })
@@ -120,6 +123,8 @@ export function HomeRouteScreen() {
120123
onProjectSortOrderChange={setProjectSortOrder}
121124
onSearchQueryChange={setSearchQuery}
122125
onSelectThread={(thread) => {
126+
// Settled threads are live shells: opening one is plain
127+
// navigation, and sending a message un-settles server-side.
123128
navigation.navigate("Thread", {
124129
environmentId: thread.environmentId,
125130
threadId: thread.id,

0 commit comments

Comments
 (0)