Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): do not auto-settle closed unmerged pull requests #7178

Closedmaslinedwin(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7178/headopened View on GitHub

Fixes #6417.

Merged pull requests still auto-settle immediately when that setting is on. Closed-without-merge no longer short-circuits: after Un-settle, a follow-up turn stays in the active list instead of bouncing back into Settled when the agent finishes.

Closed threads can still settle later through the inactivity window if one is configured. Explicit settle/unsettle, running/pending blockers, and open-PR review blocking are unchanged.


Note

Medium Risk Changes client-side thread settled classification used by the sidebar and chat UI; behavior is well covered by updated tests but affects which threads appear active vs settled.

Overview Closed PRs no longer force threads into Settled. Only merged PRs still short-circuit to settled when auto-settle-on-merge is enabled; a closed-without-merge PR is treated like normal work so follow-up turns (e.g. after Un-settle) stay in the active list.

Inactivity auto-settle still applies to closed-PR threads when that setting is on—same as threads with no PR. Open PRs still block the inactivity path; running sessions, pending approval/input, and explicit settle/unsettle behave as before.

The General settings copy for auto-settle on merge was trimmed to describe merge-only behavior.

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

Note

Fix changeRequestAutoSettles to not auto-settle closed unmerged pull requests

  • Previously, closing a PR (without merging) would immediately settle its associated thread, regardless of the auto-settle-on-merge setting.
  • changeRequestAutoSettles in threadSettled.ts now only returns true for merged PRs when autoSettleOnMerge is enabled; closed PRs no longer short-circuit to settled.
  • Threads with a closed (unmerged) PR now follow the same inactivity-based settling path as threads with no PR.
  • The settings UI copy in SettingsPanels.tsx is updated to remove the now-incorrect mention of closed PRs auto-settling.
  • Behavioral Change: closed PRs no longer immediately settle threads; they now require inactivity thresholds or an explicit override to settle.
Macroscope summarized f0e48cd.
    1. 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: e4683938-d156-49dc-b61d-7ba85b9f632e

      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:unvouched

    3. Approvability

      Verdict: Needs human review

      This PR changes runtime behavior for how closed (unmerged) PRs affect thread settling - they will no longer auto-settle immediately but instead follow the inactivity rules. This user-facing behavior change warrants human review to confirm the intended product direction.

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

      🤖 GPT-5.6 Sol responding on behalf of Theo

      Closing this PR after an automated pass over open pull requests. Reverses the tested rule that closed pull requests settle their threads.

Sign in to join this conversation.