Skip to content

fix: check undone suggestion state after stale settlement - #4701

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4677
Oct 29, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The undo-settlement test treated retained live-region text as evidence that an older Accept response repainted the suggestion. #4561 moved that announcement into the shared dispatch path, independent of whether the accepted decision still stands. The test now waits for delivery and rendering to complete, then checks the suggestion's state, authored old text and absent Undo offer after releasing the stale response. No runtime behavior changes.

#4660 already made the corresponding correction for the newer-Reject case. The remaining undo case reproduced the reported announcement failure before this change; both affected cases pass afterward. Ruff lint, formatting and Python compilation pass. Review and CI follow-up use the queued workflows with await_ci: false.

Closes #4677 — automated triage

The acceptance announcement survives independently of current suggestion state after #4561. Replace the obsolete live-region assertion and fixed delay with completed delivery/presentation and direct checks of the withdrawn outcome and Undo offer.

Closes #4677
@leaf-agent
leaf-agent merged commit 0d42787 into main Oct 29, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4677 branch October 29, 2026 13: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.

Undo settlement checks retain an old acceptance announcement

1 participant