Skip to content

fix: verify the re-vendor reply independently of log order - #5022

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The re-vendor reload test treated the log's final record as the sent reply. It now identifies the original thread and requires exactly one user reply containing the draft's exact words, preserving the existing checks for unsent words, focus, deferred reload and the eventual fresh document. This corrects the test introduced in #3098 without changing product behavior.

An admitted seen record appended after delivery makes the old assertion deterministically fail with KeyError: 'text'; the corrected test passes with the same ordering. The historical failure's log does not identify its final record's kind, so this reproduction establishes the unsafe ordering assumption rather than claiming that historical record was seen. The focused browser test, Ruff check, Ruff format check and diff whitespace check pass.

Closes #4955 — automated triage

The reload test confused the last record with the sent reply. An admitted seen record after delivery reproduces its KeyError. Identify the original thread and require one user reply containing the exact draft, while preserving the unsent draft and deferred reload assertions. No product behavior changes.

Closes #4955
@leaf-agent
leaf-agent merged commit 5f4ac17 into main Nov 1, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4955 branch November 1, 2026 23:48
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.

Re-vendor reply verification fails on a record without text

1 participant