Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: allow disabling auto-settle on merge #5880

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/5880/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 17 changed files with 20 additions and 2 deletions (loading 14).

x
0 of 17 viewed, 17 left
1 addition and 0 deletionsapps/desktop/src/settings/DesktopClientSettings.test.tsModified
View file
@@ -32,6 +32,7 @@
planModeEnabled: false,
providerModelPreferences: {},
sidebarAutoSettleAfterDays: 3,
+ sidebarAutoSettleOnMerge: true,
sidebarProjectGroupingMode: "repository_path",
sidebarProjectGroupingOverrides: {
"environment-1:/tmp/project-a": "separate",
7 additions and 2 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -206,6 +206,9 @@
>(() => new Map());
const preferencesResult = useAtomValue(mobilePreferencesAtom);
const threadListV2Enabled = useThreadListV2Enabled();
+ const autoSettleOnMerge =
+ !AsyncResult.isSuccess(preferencesResult) ||
+ preferencesResult.value.autoSettleOnMerge !== false;
const savePreferences = useAtomSet(updateMobilePreferencesAtom);
const openSwipeableRef = useRef<SwipeableMethods | null>(null);
const listRef = useRef<LegendListRef | null>(null);
@@ -482,8 +485,8 @@
// Settled threads stay in the live shell stream (settled ≠ archived), so
// the partition works directly off live shells — no snapshot merging or
// optimistic holds.
- // PR states stream in per-row (rows own the VCS subscriptions); a merged or
- // closed PR auto-settles its thread on the next partition (mirrors web).
+ // PR states stream in per-row. The next partition applies the configured