Skip to content

fix: await a new heading copy control before keyboard activation - #4261

Closed
leaf-agent wants to merge 1 commit into
mainfrom
fix/issue-4247
Closed

leaf-agent wants to merge 1 commit into
mainfrom
fix/issue-4247

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Enter on a section can create its heading-link copy control and try to click the inner button before Lit renders it. Wait for that control's updateComplete before activation. This preserves #3971's intent: arriving on a section shows no mark; Enter reveals the mark and copies its address.

The heading-link regression now starts before any hover has created the control and checks the actual clipboard contents. The reported obligation journey failed before the fix and passes afterward; heading keyboard/reference and touch checks pass, along with all 668 runtime tests. The browser build passes and its generated kernel is included.

Closes #4247 — automated triage

Enter on a section can create its lazy heading link in the same task. Wait for the Lit control to render before clicking its button, preserving the hidden mark on section arrival from #3971. Cover first-use copying before any hover warms the control.

Closes #4247
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

The red CI diagnostic is in leaf-dev verify-site website-worker: verify_saved_state calls LocalWorker.stop, and its assertion immediately after docker stop --time 1 reports RuntimeError: the page container did not stop. This PR changes heading-link activation and its regression test; the container-stop check needs separate reproduction before choosing a repair.

I could not reproduce the delivery check here: docker info cannot connect to the Docker daemon at /var/run/docker.sock. No speculative code change or CI rerun was made. The remaining blocker is reproducing the container lifecycle failure on a runner with a working Docker daemon; the existing CI traceback does not establish whether the container stayed running or restarted. This head has not been cleared for landing by this repair run.

@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Superseded by #4331, which merged the same heading-link fix: Enter waits for the copy control to be defined and for updateComplete before clicking its button. It also added test_enter_copies_a_link_no_pointer_has_shown, covering first-use copying after m lands on an obligation. The remaining conflict here duplicates that implementation; closing this proposal without merging it.

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.

Selected obligation keyboard action calls click on null

1 participant