Repository navigation
Keep margin controls clear when the card's minimum fits - #1810
Merged
Merged
Conversation
leaf-agent
commented
Oct 5, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The comment above cardMinimum still says the preferred measure decides whether the surfaces stand past the margin row, but commentPlacement().options() now makes that decision with the minimum width. This comment is the module's placement contract; update it to describe the new rule.
leaf-agent
added a commit
that referenced
this pull request
Oct 5, 2026
Update the feature-gallery thread test for the pin-clearance rule introduced by #1810. At the 1600px arrangement, the space past the pin holds the card's minimum width, so the card clears the pin and fits inside the visible edge without clipping its transcript. The old overlap assertion failed in [main's full-suite run](https://github.com/max-sixty/leaf/actions/runs/37333554962); the revised test and the three existing margin-placement cases pass locally (4 cases). --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 7, 2026
The margin-placement repair in PR #1810 reversed PR #1781's intentional behavior to satisfy older assertions. Require the originating PR's rationale and current contract to inform whether tests or behavior change. When the evidence remains uncertain, make and validate the best-supported fix, then open an issue for the original contributor's judgment. Keep that issue open until the contributor decides, including across later Tend runs. Clarify validation for justified removal of tests protecting no behavior. Validation: per-file pre-commit checks and instruction scenario smoke checks passed; independent review found no remaining issues. The baseline also passed the scenarios, so they establish conformance rather than a measured reliability improvement.
max-sixty
added a commit
that referenced
this pull request
Oct 12, 2026
…a red test (#2607) Bot CI repairs have reversed deliberate behavior twice. After #1781 let thread cards cover the margin rail to keep message width, #1810 changed the code back to satisfy an old test, and #1838 rewrote the remaining test to match; #2330 restored it. Then #2102 landed after "Reading a red suite" already asked Tend to preserve intended behavior. It let every widget-offered control keep its pointer gestures in Draw mode, so clicking a choice selected it, and it rewrote the capture test on the bot reviewer's request; #2341 repaired it. "Reading a red suite" now names what a repair weighs: the intent of the change that turned the test red, and the interface users and callers rely on. A repair keeps both where it can. Where no repair can, reverting the change, or the part at fault, is allowed. A revert, any intent given up, or an interface moved beyond the change needs an issue addressed to the change's author, so the fix can return deliberately. For a bot's change, that is the person who requested or merged it, or the maintainer. The rule covers changes still in a pull request, and the review threshold holds any fix for a red test to it. Validation: a scratch A/B with each arm's running-tend pasted into the prompt (Opus 5.5; 2–3 runs per scenario per arm). Both arms reverted an unsafe change and filed an issue; the new text's issues carry the intent, the conflict and what was given up. Both arms updated only the test, with no issue, for a pure rename and for a test the change deliberately made stale. Both refused to merge the #2102 shape. These cases establish conformance, not a measured improvement: the failures happened deep in long CI sessions, which a cold scenario does not reproduce. Codex reviewed the text, and its two findings (scope to open pull requests, an addressee when no person touched a bot change) are applied. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
A right-side thread card now stands beyond its margin controls whenever the remaining lane holds the card's minimum width. In the failed main run, both wide-layout card cases placed the card from x=1328 while the controls extended to x=1403, covering them. The shared comment placement rule previously required room for the card's preferred width before clearing the controls; the minimum is the width the card needs to remain usable.
The two wide-layout cases failed before this change and pass after it. The neighboring margin placement cases pass at 1440px, 1920px and 2400px, and the runtime suite passes (222 tests). The placement contract and its boundary test now use the minimum-width rule. This fixes one cause in the full Python job; other failures remain tracked in #1592.
Refs #1592