Skip to content

fix: isolate held-news wrapping from delivery receipt width - #4531

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-4530
Oct 28, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-4530

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

The held-news wrapping test now starts with an agent-authored message, so its first fact has room before a later fact arrives. It keeps the 390 px viewport and every assertion about fixed width, the whole first fact, the dropped second fact and the +1 count, and adds an explicit check that the first fact fits initially.

The original fixture passed at the preceding run's commit and fails at #4513: its longer Queued for … delivery receipt leaves only 39 px for the notice. The first fact is already clipped before the second arrives; this does not demonstrate broken whole-fact wrapping. Using an agent-authored opening removes that unrelated receipt from the fixture. No product behavior changes, and #4013's decision about a growing single count remains open.

Validation: both focused held-news tests pass. The original test fails on current main and at #4513, and passes at its parent. The repository-pinned Ruff checks and formatting pass (run through uvx because Ruff is not installed in the local project environment).

Closes #4530 — automated triage

The test passed before #4513 and fails at that change: the longer Queued for receipt leaves only 39 px for the notice on a 390 px viewport. It clips the first fact before the later fact arrives, so this is not a regression in dropping later facts. Start with an agent-authored message and post its follow-up by parent, keeping the wrapping assertions and explicitly requiring the first fact to fit before the second arrives. Product behavior and the separate #4013 design decision do not change.

Closes #4530
@leaf-agent
leaf-agent merged commit 6c63933 into main Oct 28, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4530 branch October 28, 2026 00:47
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.

Held-news notice clips its first fact after a second fact arrives

1 participant