Skip to content

fix: read admitted events in the example thread test - #4589

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4453
Oct 28, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The example-opening test folded ship-review.jsonl as stored events, but #3881 changed companion logs to writer commands admitted when building each page. Actions in that input correctly omit meaning, so the test raised KeyError while computing expected thread counts even after the browser had opened the example.

Read the served page's admitted log instead, preserving the checks for open and resolved threads, attached passage paint, and the reply widget. This keeps #3881's admission boundary and changes no product behavior.

Validation: the focused example-opening browser test fails with KeyError: 'meaning' before this correction and passes after it. Pre-commit passes, including Ruff and Vulture.

Closes #4453 — automated triage

Read the served page's admitted events when computing expected thread counts. Companion seeds have been writer commands since #3881, so folding them directly lacks the meaning admission derives. Preserve the existing thread, anchor and reply-widget assertions.

Closes #4453
@leaf-agent
leaf-agent merged commit 9548eb3 into main Oct 28, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4453 branch October 28, 2026 12:59
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.

Shipped example log opening raises KeyError for meaning

1 participant