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

Threads settle as soon as their pull request merges, with no way to keep follow-up work active.

This adds an Auto-settle merged threads setting for web, desktop, and mobile. It stays enabled by default. Turning it off keeps merged threads active unless the inactivity rule settles them later. Closed pull requests still settle automatically.

Tests:

  • 264 focused tests
  • scoped type checks for contracts, client runtime, web, mobile, and desktop
  • targeted lint and formatting checks

Made with GPT-5.6-sol in the Codex harness.


Note

Medium Risk Changes shared thread-settlement classification used across web, mobile, and desktop UIs; default behavior is unchanged, but a wrong wiring could mis-partition threads or disagree between sidebar and chat.

Overview Adds an Auto-settle merged threads preference (default on) so users can keep merged pull-request threads in the active inbox for follow-up work. Closed PRs still auto-settle regardless of the toggle.

Shared settlement logic gains changeRequestAutoSettles and an optional autoSettleOnMerge flag on effectiveSettled. Web/desktop expose sidebarAutoSettleOnMerge in client settings (General settings switch, search, restore defaults); mobile stores autoSettleOnMerge in device preferences with a matching General settings switch.

Sidebar partitioning, chat settled state, thread context menus, and mobile v2 thread lists pass the preference through so list placement, settle actions, and the “Woke” pill stay consistent with the configured merge rule.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 65c2e538d00f3d8d372f92a5bc273f68b8ec8016. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add user-configurable auto-settle on merge setting for threads

  • Adds a new autoSettleOnMerge / sidebarAutoSettleOnMerge boolean setting (default true) to both web and mobile, controlling whether merged PRs automatically settle threads.
  • Introduces changeRequestAutoSettles in threadSettled.ts as a single source of truth; closed PRs always auto-settle regardless of the setting.
  • Exposes a toggle in General settings on web (SettingsPanels.tsx) and mobile (SettingsRouteScreen.tsx), including settings search support on web.
  • Behavioral Change: users with the setting disabled will see merged-PR threads remain active in the sidebar and thread list instead of being auto-settled.
Macroscope summarized 65c2e53.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: db762cc9-1fba-416d-8320-244b4f543fdc

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e3f303b2212981d4a0c7fb78ddd3697ed41436eb. Configure [here](https://www.cursor.com/dashboard/bugbot).
    4. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire11.3 KiB11.3 KiB−3 B (−0.0%)15.1 KiB✅
      CodexThread snapshot wire5.5 KiB5.5 KiB−2 B (−0.0%)7.3 KiB✅
      CodexLive turn WebSocket wire5.9 KiB5.9 KiB−1 B (−0.0%)7.8 KiB✅
      CodexLive turn WebSocket decoded49.7 KiB49.7 KiB0 B (0.0%)66.4 KiB✅
      CodexLive turn messages16160 (0.0%)21✅
      ClaudeTotal thread wire11.3 KiB11.3 KiB−17 B (−0.1%)15.1 KiB✅
      ClaudeThread snapshot wire5.5 KiB5.5 KiB−6 B (−0.1%)7.3 KiB✅
      ClaudeLive turn WebSocket wire5.9 KiB5.8 KiB−11 B (−0.2%)7.8 KiB✅
      ClaudeLive turn WebSocket decoded50.6 KiB50.6 KiB0 B (0.0%)66.4 KiB✅
      ClaudeLive turn messages16160 (0.0%)21✅

      Baseline: bd18d8d · PR result: 65c2e53 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 94.6 KiB
      • Claude decoded thread snapshot: 95.4 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    5. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs human review

      This PR introduces a new user-facing feature (auto-settle on merge toggle) that changes runtime thread-settling behavior across web and mobile. New features that introduce user-facing capabilities warrant human review even when well-implemented.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.