Auto-settle on merge re-settles a thread after every later run, and agents can't opt a thread out over MCP #26097
Version: desktop app as of 2026-10-27. Source references are from main at da7c4f234d.
What happens
A thread's linked PR merges, but the thread still has work to do after the merge: a production check, deploy verification, or a follow-up round that another agent asks for. Each time one of its runs ends, the thread is auto-settled with settledAt equal to that run's completedAt. An orchestrating agent wakes it again with t3_thread_send, the next run ends, and the thread is settled again. In one day, one thread was settled 5 times this way. On all 5 threads I checked, settledAt matched the last run's completedAt to the millisecond.
Why (from the source)
ThreadSettlementService.tspullRequestSettlessettles when the PR'smergedAtis at or aftermax(createdAt, latestUserAuthoredMessageAt).ProjectionStore.tssetslatestUserAuthoredMessageAtonly from messages withcreatedBy === "user". A message sent by another agent through MCPt3_thread_sendhascreatedBy: "agent", so it never moves that anchor. The merge therefore keeps qualifying after every later run.- The per-thread switch (
autoSettleDisabledAt, #11846) can't be set over MCP:t3_thread_organizeoffers only pin, snooze, settle, unsettle, archive and mark_unread.unsettledoesn't hold either, because the next run's activity clears the override.
Requests (either one fixes it)
- Treat a run requested after
mergedAt(or an agent-authored message) as activity for the merge rule, so work started after a merge isn't settled when that run ends. - Expose the per-thread auto-settle switch through MCP, for example
t3_thread_organizeactionsdisable_auto_settleandenable_auto_settle, so an orchestrating agent can keep a thread open until its follow-up work is done.
Related: #26083 (the same merge rule racing a background-task wake turn). Current workaround: turn off auto-settle on merge in settings.
tanstack-source added labelsbug
johnatfreecoffee(GitHub profile, opens in a new tab) linked this to #33995
tombowditch(GitHub profile, opens in a new tab) linked this to #35162
One more case of this, with numbers from my local store (0.1.9, macOS).
A thread had a linked PR that merged. After that, every turn in it was started by a message sent from another thread (
t3_thread_send) or by a scheduled task. Those do not move the "latest user-authored message" time, so the merged PR kept winning the check inpullRequestSettlesand the thread was settled again right after each turn ended, 107 ms after the last one. Four times in two days, each time while the final message asked me a question.Over 7 days the event log shows 108
thread.settledevents with aserver:auto-settle:command id. In 5 of them the last agent message before the settle held an open question for me.What would have helped: a message that reaches the thread through
t3_thread_sendon the user's behalf counts as activity for this check, or agents can set the per-thread opt-out over MCP as described above. I turnedsidebarAutoSettleOnMergeoff for now.Another case for request (2), an MCP way to turn auto-settle off for a thread, on 0.1.10-nightly.20261115.4736 (macOS).
A long-running "coordinator" thread tracks other threads' PRs and links them to itself (
link_pull_requests) so they show in its header. The first time one of those PRs merges, the coordinator is settled and unpinned, although its work is not finished. Every coordinator thread needs Auto-settle behavior → Never, and today only a person can set that, from the thread menu. Neithert3_thread_configurenort3_thread_organizeexposes it, so an agent that sets up a coordinator cannot do it on the first turn.Ask: accept the per-thread auto-settle setting (
autoSettleDisabledAt) int3_thread_configure.juliusmarminge closed this
Sign in to join this conversation.
Opened a PR that implements request (1): intentional MCP/CLI agent sends now count as resume anchors (
latestResumingMessageAt), so merge auto-settle no longer drops a settled thread back into Settled after a follow-up turn. Automatic server/provider wakes are unchanged.https://github.com/pingdotgg/t3code/pull/33995