Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Thread with an open PR auto-settles after every completed turn — even with background watchers still running (regression, started 2026-08-06) #5476

Closediamtoled(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Not sure

Steps to reproduce

  1. Start a thread; the agent's first completed turn creates a PR (still open, neither merged nor closed — the thread shows the PR badge).
  2. Continue working in the thread: every time a turn completes, the thread immediately auto-settles.
  3. This happens even when the turn explicitly leaves background work running — e.g. the agent's last message says it is waiting on a background watcher for a PR re-review, yet the "This thread is settled" banner appears right away.

Observed on the desktop app (macOS).

Expected behavior

A thread on an open PR should not auto-settle. At minimum, a thread with active background commands/watchers should never settle.

Actual behavior

Once a turn has created a PR, every subsequent completed turn settles the thread. I have to click "Un-settle" (or send a message) after every single turn, which makes the PR-follow-up workflow miserable.

Additional context

Started this morning (2026-08-06) — was not happening before, so it looks like a recent nightly regression. Not a duplicate of #4982: that one asks for a toggle on the merged/closed-PR auto-settle rule; here the PR is still open. Possibly related to the settle-state issues in #4817 / #5377, but neither describes this trigger.

  1. Note

    🤖 GPT-5.6 Sol responding on behalf of Theo

    Related report #5043 adds a deterministic background-liveness settlement case.

    In Variant B, a parent turn starts a local_bash child in the background and then completes. The child remains alive while the foreground session is idle. The source evidence shows that this task can emit task.started with agentKind: background and then no progress until completion. T3 can report backgroundLiveness as working or monitoring during this period, but settlement still ignores it.

    Acceptance requires every working or monitoring backgroundLiveness value to block both manual settlement and automatic settlement, with or without an open PR. The existing open-PR auto-settle condition in this issue remains a separate case and must not depend on confirmed background work. The remaining settlement bug is not fixed.

  2. juliusmarminge closed this

Sign in to join this conversation.