Repository navigation
fix(settlement): keep a merged thread when its last reply still needs you - #48
Merged
Merged
Conversation
… you A merged or closed pull request no longer settles a thread right away. The text generation model first reads the latest run's last reply and keeps the thread when the reply asks something, hands over a step, or says work is still running. The verdict is cached per run; errors and timeouts hold the thread, with two retries per run. Inactivity still settles held threads. A run that failed, was interrupted, or was stopped never settles on a pull request, and a looked-up pull request no longer settles a thread whose links were all its own work. sidebarAutoSettleReplyCheck turns the model check off.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
maschwenk
marked this pull request as ready for review
November 9, 2026 11:32
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
the settle audit for 11-02 to 11-09 flagged 40 of 64 top-level auto-settled threads as wrong. two patterns: 130 of the 194 PR settles were repeats, where a PR merged before my last message kept settling the thread every time an automated run ended. and plenty settled on merge while the last message was "want both, or just one?", "i'm holding until you say yes", "the one step left is yours", or "i'll be woken when they merge". i usually replied within minutes
builds on these (both merged)
what changed
checkSettlementReplynext totriageCompletion, same text generation model settingwouldSettle, so holding doesn't add host calls every sweepauto-settle reply checked(needsUser, origin) andauto-settle held for the latest run(reason) once per runfailed. the stop case was trickier: run 114 stayedcompletedand Stop only left arun_interrupt_requestturn item when it killed the background work, so the check reads that too. this rule doesn't depend on the settingresolveAutoSettlementanywaysidebarAutoSettleReplyCheck, on by default, with a Fork row under auto-settle ("Check the last reply first")not doing the
unsettledAtcutoff or the scheduled task exemption: hourly runs keep resetting the idle timer, so both would leave monitor threads in the active list forever. the reply check handles repeats insteadtradeoffs
eval
offline, using the final reply before each of the 194 top-level PR settles from the audit (Haiku 5.5 through the pool proxy, 2 runs, same prompt as shipped)
written with claude opus 5.5 in claude code