Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Thread with Auto-settle behavior "Never" is still settled when a PR it watches merges #44884

Openfwends(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

apps/server

Steps to reproduce

  1. Pin a long-lived "orchestrator" thread, then set its Auto-settle behavior (thread context menu) to Never.
  2. In that thread, have the agent call watch_pull_request on a PR with until: "merged". The PR is opened by a different worker thread.
  3. Merge the PR (here the worker thread merged it).

Expected behavior

The thread stays active. The per-thread Never setting should override every automatic settle path, including watch-on-merge and link-on-merge.

Actual behavior

The watch reports "#N: merged, stopped watching" and the thread is settled. Its context menu still shows Auto-settle behavior: Never and it is still pinned. The agent made no t3_thread_organize settle call; the thread's activity log shows only watch_pull_request, then the merge notification.

It happens every time. I have had to unsettle the same pinned thread by hand several times today.

Impact

Orchestrator threads that are meant to stay open permanently keep disappearing from the active list whenever any PR they watch merges. Users then lose track of their main thread. The only workaround is to stop the orchestrator from ever watching PRs.

Version or commit

T3 Code (Nightly) 0.1.14-nightly.20261128.5372

Environment

macOS 15 (Darwin 24.6), desktop app. Thread provider: Cursor (grok-4.6). Same behaviour seen earlier with a Claude thread that watched and merged a PR.

Workaround

A PreToolUse hook blocks watch_pull_request / link_pull_request in orchestrator threads, plus a scheduled task that unsettles them.

Related, not the same: #26097 (re-settle after later runs, no MCP opt-out) and #43263 (merge settles only the creating thread).

  1. tanstack-source added labelsbug

  2. @fwends When the orchestrator was settled, did the worker thread that merged the PR (or any other thread or scheduled task) call t3_thread_organize with action "settle" and the orchestrator's threadId? That call shows in the calling thread's activity log, not the orchestrator's, and it is the only way main settles a pinned or Never thread.

  3. juliusmarminge added labelsneeds more info

Sign in to join this conversation.