Repository navigation
e2e document.spec: caretAtEndOf places the caret again when it misses, and reports each miss - #638
Merged
Merged
Conversation
…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)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 13, 2026
…aret helper only) Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
e2e/document.spec.ts:735, the restore scene, failed twice on the guest lane atcaretAtEndOf, 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.
toPass, so a placement that misses is made again.document.hasFocus(). It goes to acaret-retryannotation and acaret-retry: paragraph N: …log line (the architect's addition), so a retry that ends green still shows the cause.toMatchObjectprints 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-retryline. 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 acaret-retryline.Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)