Skip to content

Report allocated sample views and keep offscreen drafts painted - #1686

Merged
leaf-agent merged 9 commits into
mainfrom
codex/fix-ci-draft-contracts
Oct 3, 2026
Merged

leaf-agent merged 9 commits into
mainfrom
codex/fix-ci-draft-contracts

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Browser checks failed when connected gallery samples submitted unallocated 0×0 viewports that the server rejected with HTTP 400, and when Chromium stopped painting a floating draft after its scrolled anchor was released, despite valid fixed window geometry.

The shared context observer now waits for positive dimensions; existing resize events and the heartbeat resume reporting when space returns. Floating editors and thread cards have independent compositing while attached to the window, keeping the previous anchor’s visibility state from suppressing their paint.

A served sample regression spans positive allocation, a connected 0×0 interval covering the heartbeat, and accepted recovery from the same session. The wheel-return test now captures the actual outgoing painted window position before observing the return and recognizes its saturated fixture marker through JPEG compression, excluding the tinted heading pixels reported by Linux. Its original one-pixel attachment assertion still rejects a deliberately shifted returning frame.

Validation: the original context module fails with two rejected zero-sized reports. The corrected module passes the regression, scheme/tab controls, and all 18 loaded restored-gallery copies. A standalone HTML/CSS reproduction confirms the paint failure. Eight focused wheel-return and editor/card controls pass; the shifted-return fault still fails. The integrated everyday gate passes 2,063 tests with one platform-specific skip, all 195 runtime tests and pre-commit pass, and independent review covers both repairs.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new wheel-return test fails in both pane variants on this head: its target-pixel check reads antialiased heading text after the red target has scrolled away. The suggested marker-specific threshold makes all four variants pass.

Comment thread tests/test_render_send_placement.py Resolved
leaf-agent added a commit that referenced this pull request Oct 3, 2026
A rejected insertion sometimes stayed invisible after Undo in the [full
main run](https://github.com/max-sixty/leaf/actions/runs/37144903078).
The decision hid the suggestion's entire wrapper with `display: none`;
after Undo removed the decision marks, the wrapper and its text
sometimes still had no layout rectangle. The retired slot already hides
the rejected words, so this change keeps the empty wrapper in the layout
tree for Undo to fill again.

The existing margin journey now checks that rejection hides the inserted
words and Undo restores every suggestion before comparing pin positions.
On the original CSS, 14 of 18 loaded copies failed; with this change, 18
of 18 passed. Six focused suggestion, Undo, and gallery rest checks also
passed.

Refs #1592. The separate sample-view HTTP 400 failures in that main run
are covered by #1686.

Co-authored-by: leaf-agent <[email protected]>
@leaf-agent
leaf-agent merged commit 5984ca1 into main Oct 3, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the codex/fix-ci-draft-contracts branch October 3, 2026 22:51
max-sixty added a commit that referenced this pull request Oct 3, 2026
Floating comment editors and thread cards now share one attachment
reading and plane decision. CSS grid allocates the editor, media,
choices and More control within Floating UI's bounds, replacing separate
control-width sums and editor-height subtraction. Floating UI's platform
supplies the scale even when an offscreen passage leaves a zero-height
reference.

Markers and menu options use one reading presenter, including accessible
labels, workflow receipts and unread state. Initial placement reserves
the future card's footprint so typing at the right edge keeps the
editor's position.

Browser regressions cover media and choices beside a scrolling draft,
withholding and restoring the complete draft in a short window, and a
scaled draft whose passage scrolls away. After integrating main, 23
focused browser cases, 195 runtime tests and lint pass. The local full
suite passed 2,062 cases with one skip and one wheel-return paint
failure that also reproduces on the merged baseline; its separate repair
is owned by [PR #1686](#1686).

> _This was written by Codex on behalf of max-sixty_
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.

2 participants