TypeScript
feat: auto-settle inactive threads after 7 days by default (#32325)
Theo Browned4247a5a19cc
diff --git a/apps/mobile/src/features/settings/ThreadSettingsSections.tsx b/apps/mobile/src/features/settings/ThreadSettingsSections.tsxindex df463bd1f66..710db5df26e 100644--- a/apps/mobile/src/features/settings/ThreadSettingsSections.tsx+++ b/apps/mobile/src/features/settings/ThreadSettingsSections.tsx@@ -52,7 +52,7 @@ export function SettingsLabsRouteScreen() {);}-const AUTO_SETTLE_DEFAULT_DAYS = DEFAULT_SERVER_SETTINGS.sidebarAutoSettleAfterDays ?? 3;+const AUTO_SETTLE_DEFAULT_DAYS = DEFAULT_SERVER_SETTINGS.sidebarAutoSettleAfterDays ?? 7;/*** Usage-limit and auto-settle rows. The Threads page owns their writes, so they share its queuediff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsxindex d408d6c8d5d..c53ca8a2dc7 100644--- a/apps/web/src/components/settings/SettingsPanels.tsx+++ b/apps/web/src/components/settings/SettingsPanels.tsx@@ -705,7 +705,7 @@ export function useSettingsRestore(onRestored?: () => void) {};}-const AUTO_SETTLE_DEFAULT_DAYS = DEFAULT_UNIFIED_SETTINGS.sidebarAutoSettleAfterDays ?? 3;+const AUTO_SETTLE_DEFAULT_DAYS = DEFAULT_UNIFIED_SETTINGS.sidebarAutoSettleAfterDays ?? 7;function AutoSettleDaysInput({value,diff --git a/docs/user/thread-sidebar.md b/docs/user/thread-sidebar.mdindex 25095b70f1c..94c9cc03c8d 100644--- a/docs/user/thread-sidebar.md+++ b/docs/user/thread-sidebar.md@@ -185,7 +185,7 @@ settle every thread in that section between it and the one you release on.The **Un-settle** and **Wake** buttons work the same way in their sections.Press `Escape` while dragging to cancel.-By default, environments settle inactive threads after three days and settle+By default, environments settle inactive threads after seven days and settlethreads whose pull request merged. A closed pull request can also settle an idlethread. An empty thread's inactivity counts from when it was created.Work in progress, pending questions or approvals, and background work the agentdiff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.tsindex 4d1aed1d2b2..b98ebe0fd7e 100644--- a/packages/contracts/src/settings.ts+++ b/packages/contracts/src/settings.ts@@ -94,7 +94,7 @@ export const SidebarAutoSettleAfterDays = Schema.Number.check(}),);export type SidebarAutoSettleAfterDays = typeof SidebarAutoSettleAfterDays.Type;-const DEFAULT_SIDEBAR_AUTO_SETTLE_AFTER_DAYS: SidebarAutoSettleAfterDays = 3;+const DEFAULT_SIDEBAR_AUTO_SETTLE_AFTER_DAYS: SidebarAutoSettleAfterDays = 7;export const MAX_SNOOZE_PRESET_MINUTES = 30 * 24 * 60;export const MAX_SNOOZE_PRESETS = 8;