Skip to content

Put the caret in the reply when a thread reopens in the panel - #3278

Merged
max-sixty merged 2 commits into
mainfrom
fp-reopen-caret
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fp-reopen-caret

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Reopen in the floating panel left focus on the pressed button, which turned into Resolve, so what the user typed next went nowhere until they clicked the field. Reopen now gives the panel a settlement landing that puts the caret in the reply the reopening draws; a refusal, or z while the user has not acted since, stands them on the thread's view again, through the same mechanism Resolve's landing uses.

A rewrite saved in a resolved thread also reopens it, and its editor's landing ran before the reopened thread drew a reply box, so the user ended on the thread rather than in the reply #46 chose for them. The landing now follows the save's presentation into the box it draws, in the panel and in a seated thread alike. The panel test of that decision had been weakened to to_be_visible when the classic chrome went; it asserts focus again.

Cards needed no change: Reopen in a margin card or a seated thread already lands in the reply, in Chromium and Firefox. A page comment being written keeps its words, focus and caret across an in-place or a fresh revision in both engines, so that case needed no change either.

Picked as gain-caret on the floating-panel review page.

This was written by Claude Code on behalf of max-sixty

Reopen in the floating panel left focus on the pressed button, which
turned into Resolve, so what the user typed next went nowhere until they
clicked the field. Reopen now gives the panel a settlement landing that
puts the caret in the reply the reopening draws; a refusal, or `z` while
the user has not acted since, stands them on the thread's view again,
through the same mechanism Resolve's landing uses.

A rewrite saved in a resolved thread also reopens it, and its editor's
landing ran before the reopened thread drew a reply box, so the user
ended on the thread rather than in the reply #46 chose for them. The
landing now follows the save's presentation into the box it draws, in
the panel and in a seated thread alike. The panel test of that decision
had been weakened to `to_be_visible` when the classic chrome went; it
asserts focus again.

Cards needed no change: Reopen in a margin card or a seated thread
already lands in the reply, in Chromium and Firefox. A page comment
being written keeps its words, focus and caret across an in-place or a
fresh revision in both engines, so that case needed no change either.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 20, 2026
# Conflicts:
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit 678f0d1 into main Oct 20, 2026
2 checks passed
@max-sixty
max-sixty deleted the fp-reopen-caret branch October 20, 2026 07:24
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.

2 participants