Skip to content

test: walk back to the thread past the kept comment in the comment-targets journey - #6746

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6740
Nov 22, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6740

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6675 made the thread walk stop at each comment the user began and put away, as Threads lists them. This journey keeps a comment at Paragraph 3 and then pressed t to travel to the open thread at Paragraph 41, so t now lands on the kept comment's box ("1 of 2 threads and drafts") and the thread is never focused; in the early-Resume case no trip to the thread starts, so earlyResumeBoxes is never written and the wait times out.

The test now presses Shift+t at both points. From the kept comment, the walk's first stop, walking back wraps straight to the thread in one trip, so the journey still covers what it protects: Resume interrupting a trip to the thread (before its first frame, and mid-scroll on a slowed CPU) returns the same editor with its words and caret, and Comment at the thread opens the thread's own reply while the earlier words stay with Paragraph 3. Pressing t twice instead would put a stop at the comment itself before the trip, which changes the scenario under test. No product code changes, so #6675's behavior stands as its author intended.

All three cases fail on d53e9994f and pass with this change (uv run pytest "tests/journeys/drafts/test_comment_targets.py::test_comment_follows_a_thread_current_location_instead_of_an_earlier_draft").

Closes #6740 — automated triage

…rgets journey

Since #6675, the thread walk stops at each comment the user began and put
away. The journey keeps a comment at Paragraph 3 and then pressed `t` to
travel to the open thread at Paragraph 41, so `t` now stopped at the kept
comment first and never reached the thread. Shift+t walks back from that
first stop and wraps to the thread in one trip, so the journey still covers
Resume interrupting a trip to the thread and the comment staying with its
own passage. No product behavior changes.

Closes #6740
@leaf-agent
leaf-agent merged commit 982b13c into main Nov 22, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6740 branch November 22, 2026 12:04
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.

test_comment_follows_a_thread_current_location_instead_of_an_earlier_draft: t no longer reaches the thread since #6675

1 participant