Skip to content

Let c from a question's frame comment on the question - #4306

Merged
max-sixty merged 3 commits into
mainfrom
fix-c-in-lf-shot
Oct 27, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fix-c-in-lf-shot

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

After m lands on a question whose lf-ask holds an lf-shot, a click that flips the shot or drags its divider put focus on one of the shot's own controls, and c then opened a comment on the shot rather than on the question the user was walked to. A press on the shot's Pixels button left c on the question only because that button is offered chrome, which OBLIGATION_CONTROL happens to match. The page's markup was ordinary; the gesture became common when #3704 made Slider the shot's first view and its images click-focusable (on a 2026-10-21 checkout, a click on the shot left focus on the question).

currentTarget (browser/runtime/composing/current-target.js) now reads a question's frame from the markup: focus inside an obligation's context but outside its answer widgets names the context, unless it rests on a datum, a visual part or an addressable element itself. That holds whether the question is answered and however many widgets share its frame. A focused link inside an option still names the option (test_c_comments_on_what_the_user_is_located_in).

Behavior change: from a control or link in an lf-ask's frame (its heading, prose or evidence such as an lf-shot), c and e target the question instead of the innermost addressable element there. Outside any question nothing changes.

New test: test_c_from_a_shot_in_a_questions_frame_comments_on_the_question, which fails on the code before this change.

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

max-sixty and others added 3 commits October 26, 2026 10:53
After `m` lands on a question whose lf-ask holds an lf-shot, a click that
flips the shot or drags its divider put focus on one of the shot's own
controls, and `c` then opened a comment on the shot rather than on the
question the user was walked to. A press on the shot's Pixels button left
`c` on the question only because that button is offered chrome, which
`OBLIGATION_CONTROL` happens to match. The markup was ordinary; the gesture
became common when #3704 made Slider the shot's first view and its images
click-focusable.

`currentTarget` (composing/current-target.js) now reads a question's frame
from the markup: focus inside an obligation's context but outside its answer
widgets names the context, unless it rests on a datum, a visual part or an
addressable element itself. That holds whether the question is answered and
however many widgets share its frame. A focused link inside an option still
names the option.

Behavior change: from a control or link in an lf-ask's frame (its heading,
prose or evidence such as an lf-shot), `c` and `e` target the question
instead of the innermost addressable element there. Outside any question
nothing changes.

New test: `test_c_from_a_shot_in_a_questions_frame_comments_on_the_question`,
which fails on the code before this change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit 6348901 into main Oct 27, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix-c-in-lf-shot branch October 27, 2026 00:19
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