Repository navigation
fix: a withdrawn resolve reopens its thread in the press that takes it - #4327
Merged
Merged
Conversation
Undoing a resolve left the thread closed until the server's reading arrived, because the thread fold dropped withdrawn messages but kept a closure whose event was withdrawn. A margin draws no card for a closed thread, so undo's return to the thread waited for the log's answer, and returning sooner fell back to the floating panel. The fold now treats a thread whose closing event the tab is withdrawing as open, as `localTodos` already does for a to-do whose Done is withdrawn; the log's answer restores any earlier closure. Undo's return no longer waits for the answer: it shows the thread once the page presents the withdrawal. Behavior change: after `z` on a resolve, the thread stands open (its margin card, the panel's Open list) before the server answers. Probed with the undo POST held: the margin card opens and takes focus while the request is pending; without the fold change the same return opens the floating panel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
previously approved these changes
Oct 27, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
approved these changes
Oct 27, 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.
Undoing a resolve left the thread closed until the server's reading arrived. The browser's thread fold (
foldThreads) dropped withdrawn messages but kept a closure whose event was being withdrawn, and a margin draws no card for a closed thread. Soz's return to the thread (#4303) had to wait for the log's answer; returning sooner fell back to the floating panel.The fold now treats a thread whose closing event the tab is withdrawing as open, as
localTodosalready does for a to-do whose Done is withdrawn; the log's answer restores any earlier closure. Undo's return no longer waits for the answer: it shows the thread once the page presents the withdrawal.Behavior change: after
zon a resolve, the thread stands open (its margin card, the panel's Open list) before the server answers.Evidence: a
leaf-dev probejourney holding the undo POST: with the change, the margin card opens and takes focus while the request is pending; without the fold change, the same return opens the floating panel. Panel, margin and refusal journeys from #4303 still land on the thread in Chromium and Firefox. The new assertion intests/runtime/thread-workflow.test.mjsfails without the fix.pnpm run check,pnpm run test:runtime(668) and 71 targeted undo/resolve browser tests pass.