Skip to content

Check comment draft return after reopening a folded diff file - #2735

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38333313254-thread-focus
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38333313254-thread-focus

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The folded-diff draft test now checks the behavior introduced by #2650: folding a file withholds its seated comment box, and reopening the file returns the same draft with focus and caret intact. The previous test expected the hidden box to stay focused and set the caret while the file was already folded, so both variants timed out in main CI run 38333313254.

Both browser variants, with native retained moves and with the fallback move, fail before this correction and pass after it. The check still verifies that typing after reopening inserts at the pre-fold caret.

A seated composer now withholds when the folded file hides its target. The old browser case expected focus to stay on that hidden field and placed the caret after the fold, so both move variants timed out before checking return. Set the caret while the user can still edit, then check that reopening restores focus, caret, and words. Both variants fail before and pass after.
@leaf-agent
leaf-agent merged commit bd79f16 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38333313254-thread-focus branch October 13, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant