Repository navigation
fix: isolate held-news wrapping from delivery receipt width - #4531
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
+1count, 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
uvxbecause Ruff is not installed in the local project environment).Closes #4530 — automated triage