Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: threads with open PRs no longer auto-settle #5151

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5151/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Threads with a PR out for review were auto-settling after the inactivity window, hiding unfinished work in the settled tail. Review can take days of silence; quiet is not done.

An open change request now blocks the inactivity path in the shared effectiveSettled (used by web sidebar, ChatView, and mobile). Merge/close still settles immediately, an explicit user settle still wins, and the existing activity blockers are unchanged. Client-side only — the server has no inactivity auto-settle.

Extended the truth table plus a focused test for open-PR staleness and explicit settle.

Written by Claude Fable 5 via Claude Code.

🤖 Generated with Claude Code


Note

Low Risk Client-only settled-state logic with expanded tests; no server or auth changes, but inbox visibility behavior shifts for stale threads with open PRs.

Overview Threads with an open change request no longer auto-settle when they pass the inactivity window. Quiet time during review was incorrectly moving them into the settled tail and hiding unfinished PR work.

effectiveSettled in client-runtime now treats changeRequestState === "open" as blocking the inactivity path only: merged/closed PRs still auto-settle immediately, explicit settledOverride === "settled" still wins, and existing blockers (pending approvals, live session, queued turn) are unchanged. This is client-side classification for sidebar/ChatView/mobile list partitioning.

Tests extend the truth table and add a case for stale + open PR (plus explicit settle still settling).

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

Note

Prevent threads with open PRs from auto-settling due to inactivity

Adds an early return in effectiveSettled so that threads with changeRequestState === "open" always return false, bypassing the inactivity-based auto-settle path. Threads with open PRs now only settle via an explicit user action or when the change request is merged or closed.

Macroscope summarized 944c87c.
    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: 7859d293-2111-4581-8ba6-32571b41489f

      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. Approvability

      Verdict: Approved 944c87c

      Small, focused bug fix that adds a single conditional check to prevent auto-settling threads when a PR is open. The change is well-scoped, clearly intentional, and tested to confirm user explicit settles still work.

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

Sign in to join this conversation.