Skip to content

e2e document.spec: caretAtEndOf places the caret again when it misses, and reports each miss - #638

Merged
SSFSKIM merged 2 commits into
masterfrom
caret-at-end-retry
Nov 13, 2026
Merged

SSFSKIM merged 2 commits into
masterfrom
caret-at-end-retry

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 13, 2026

Copy link
Copy Markdown
Owner

e2e/document.spec.ts:735, the restore scene, failed twice on the guest lane at caretAtEndOf, most recently in 43471601277 at 129f6d3 (U8b's default). The same code passed on the mini's host in 43479442472. The failure read { page: false, editor: false } after the click and End, and nothing recorded where the caret had gone. document-app runs the same spec on the guest, and the flake ledger holds no guest failure of it there.

Change. Placing the caret at the paragraph's end is the case's precondition, not what it tests.

  • The click, End, the focus check and both caret readings now run inside a 10 s toPass, so a placement that misses is made again.
  • Each attempt that misses writes what it saw before the next attempt runs: the focus node's text and offset, whether the selection was collapsed, the editor's from/to against the paragraph's end, and document.hasFocus(). It goes to a caret-retry annotation and a caret-retry: paragraph N: … log line (the architect's addition), so a retry that ends green still shows the cause.
  • If no attempt holds, toMatchObject prints the same reading.

All three callers (the paste scenes at :653 and :678, and the restore at :764) keep their meaning.

Verification. Gate 43485772313: static green, and e2e:document-app on a hosted Mac with 22 passed and no caret-retry line. I did not run it on the guest, to spare it during the wave. The flake is rare, so one green proves the helper works, not that the flake is gone. The next miss on any lane will show up as a caret-retry line.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

…ot hold, and says where it was

document.spec.ts:735's restore scene failed twice on the guest lane at
caretAtEndOf (last in run 43471601277 at 129f6d3, green on the mini's
host on the same code in 43479442472): page and editor both false after
the click and End, with nothing recorded about where the caret went.

The caret at the paragraph's end is the case's precondition, not what it
tests. The click, End and both readings now run inside a 10 s toPass, so
a placement that misses is made again. The poll returns the focus node's
text and offset, the editor's from/to against the paragraph's end and
document.hasFocus(), and toMatchObject prints them if it never holds.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…later one holds

The architect's addition: the retry must not hide the cause it was added to
find. Each attempt whose readings fail writes the caret it saw (focus node
text and offset, editor from/to against the paragraph's end,
document.hasFocus()) as a `caret-retry` annotation and a `caret-retry:` log
line before the next attempt.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:01:07.255116Z 871b463 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 871b463 into master Nov 13, 2026
@SSFSKIM
SSFSKIM deleted the caret-at-end-retry branch November 13, 2026 19:00
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
…aret helper only)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 13, 2026
The chain head moved: master took #638 (871b463), which changes only
e2e/document.spec.ts (the caret helper places the caret again when it did not
hold), merged into U6c as f446a7c. U3a does not touch that spec; no conflict.
WIRE_MINOR stays 42.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
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