Skip to content

test: retract the folding summary with the user's rewrite, not the agent's edit - #6644

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6636-summary-rewrite
Nov 21, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6636-summary-rewrite

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_summary_folds_its_messages_where_they_stand failed in both Chromium and WebKit on main's push run 44859344032 (ffd552baa). After the agent edited a folded message, it waited for the summary's checkpoint to disappear, but the checkpoint stayed (Locator expected to have count '0', Actual value: 1).

#6633 meant to change that: now the agent's own edit leaves its summary standing, and only the user's rewrite of a folded message, or their taking back a message, retires it. #6633 updated the summary-overlap test that way but missed this one. Here the edited message is the user's own reply and the user rewrites it. The test still checks what it is for: when a user standing in the thread sees the retraction, it draws at once, the frame keeps its loaded document, and the selection survives. No product code changes.

Locally, both parametrizations fail on main with the CI assertion and pass on this branch.

Refs #6636

…ent's edit

#6633 made the agent's own edit of a folded message leave its summary standing; only the user's rewrite, or their taking back a message, retires it. test_a_summary_folds_its_messages_where_they_stand still retracted its summary with an agent edit, so it waited for a checkpoint that now rightly stays. The edited message is now the user's, and the user rewrites it, as #6633 did for the summary-overlap test. The test still protects that a retraction draws at once for a user standing in the thread, leaving the frame loaded and the selection kept.

Refs #6636
@leaf-agent
leaf-agent merged commit 028644a into main Nov 21, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6636-summary-rewrite branch November 21, 2026 06:12
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