Skip to content

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

Merged
t3dotgg merged 1 commit into
mainfrom
t3code/prevent-auto-settle-open-pr-threads
Jul 31, 2026
Merged

fix: threads with open PRs no longer auto-settle#5151
t3dotgg merged 1 commit into
mainfrom
t3code/prevent-auto-settle-open-pr-threads

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Jul 31, 2026

Copy link
Copy Markdown
Member

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 for commit 944c87c. Bugbot is set up for automated code reviews on this repo. Configure here.

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.

An open change request blocks the inactivity auto-settle path in
effectiveSettled: a thread with a PR out for review is unfinished work
regardless of how quiet it has been. Merge/close still settles
immediately, and an explicit user settle still wins.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Jul 31, 2026
@macroscopeapp

macroscopeapp Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

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.

@t3dotgg
t3dotgg merged commit 491219b into main Jul 31, 2026
17 checks passed
@t3dotgg
t3dotgg deleted the t3code/prevent-auto-settle-open-pr-threads branch July 31, 2026 22:46
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 1, 2026
## What's Changed
* feat(web): add settings sidebar search by @shivamhwp in pingdotgg/t3code#4682
* fix: threads with open PRs no longer auto-settle by @t3dotgg in pingdotgg/t3code#5151
* fix(server): bound thread catch-up replay and stop full-DB snapshot hydration by @t3dotgg in pingdotgg/t3code#5147


**Full Changelog**: pingdotgg/t3code@v0.0.32-nightly.20260731.968...v0.0.32-nightly.20260801.969

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.32-nightly.20260801.969
sollaholla pushed a commit to sollaholla/t3code that referenced this pull request Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant