Skip to content
TypeScript

feat(sidebar): working section is on by default (#25190)

maria3de45c625434
diff --git a/apps/mobile/src/features/settings/SettingsThreadsRouteScreen.tsx b/apps/mobile/src/features/settings/SettingsThreadsRouteScreen.tsx
index 0b3c7b5d2b4..c8f3c4c7d17 100644
--- a/apps/mobile/src/features/settings/SettingsThreadsRouteScreen.tsx
+++ b/apps/mobile/src/features/settings/SettingsThreadsRouteScreen.tsx
@@ -246,7 +246,7 @@ function BetaSettingsSection() {
const savePreferences = useAtomSet(updateMobilePreferencesAtom);
const preferences = useAtomValue(mobilePreferencesAtom);
const workingShelfEnabled =
- AsyncResult.isSuccess(preferences) && preferences.value.workingShelfEnabled === true;
+ AsyncResult.isSuccess(preferences) && preferences.value.workingShelfEnabled !== false;
return (
<View className="gap-3">
diff --git a/apps/mobile/src/features/threads/use-thread-list-v2-shelf-preferences.ts b/apps/mobile/src/features/threads/use-thread-list-v2-shelf-preferences.ts
index b06eeb18a17..4348908e537 100644
--- a/apps/mobile/src/features/threads/use-thread-list-v2-shelf-preferences.ts
+++ b/apps/mobile/src/features/threads/use-thread-list-v2-shelf-preferences.ts
@@ -11,7 +11,7 @@ export function useThreadListV2ShelfPreferences() {
loaded && preferencesResult.value.threadListSnoozedShelfExpanded === true;
const settledShelfExpanded =
loaded && preferencesResult.value.threadListSettledShelfExpanded === true;
- const workingShelfEnabled = loaded && preferencesResult.value.workingShelfEnabled === true;
+ const workingShelfEnabled = loaded && preferencesResult.value.workingShelfEnabled !== false;
const workingShelfExpanded =
loaded && preferencesResult.value.threadListWorkingShelfExpanded === true;
diff --git a/docs/user/thread-sidebar.md b/docs/user/thread-sidebar.md
index 02fd676dc39..85158e68732 100644
--- a/docs/user/thread-sidebar.md
+++ b/docs/user/thread-sidebar.md
@@ -118,14 +118,17 @@ open.
### Fold working threads (beta)
-Turn on **Settings → Beta → Working section** on web and desktop, or **Settings →
-Thread behavior → Working section** on iOS and Android, to move threads that are working or
-waiting on work they will resume from into a collapsed **Working** section below the active list.
+Threads that are working or waiting on work they will resume from move into a collapsed
+**Working** section below the active list.
That includes subagents, watched pull requests, and background commands or monitors the agent
says it is waiting on. A dev server or other process an agent leaves running does not keep a thread
there. A thread returns to the top of the active list when it finishes, fails, or needs an approval or
answer. The Working section lists the thread you last sent work to first. Pinned threads stay in
-the pinned section. Each device keeps its own choice.
+the pinned section.
+
+This is on by default. Turn it off with **Settings → Beta → Working section** on web and desktop,
+or **Settings → Thread behavior → Working section** on iOS and Android. Each device keeps its own
+choice.
While this is on, the active list is ordered by when each thread last came back to you, so you
cannot drag or move threads within it. Your saved order returns when you turn it off.
diff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.ts
index 045e71a5eae..c2071af3236 100644
--- a/packages/contracts/src/settings.ts
+++ b/packages/contracts/src/settings.ts
@@ -436,9 +436,7 @@ export const ClientSettingsSchema = Schema.Struct({
proactivePanelsEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
showSkillsInSlashMenu: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),
legacySidebarEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
- sidebarWorkingShelfEnabled: Schema.Boolean.pipe(
- Schema.withDecodingDefault(Effect.succeed(false)),
- ),
+ sidebarWorkingShelfEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),
sidebarProjectGroupingMode: SidebarProjectGroupingMode.pipe(
Schema.withDecodingDefault(Effect.succeed(DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE)),
),