Skip to content

Match nightly browser tests to thread-first comment focus - #972

Merged
max-sixty merged 9 commits into
mainfrom
codex/repair-nightly-workflow-tests
Sep 23, 2026
Merged

max-sixty merged 9 commits into
mainfrom
codex/repair-nightly-workflow-tests

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Main's earlier complete-suite run failed browser journeys that still expected a newly sent comment to move focus into the next reply editor. The current submission path deliberately lands on the thread card, leaving Reply as an explicit next action. This PR updates those journeys to assert the landing, the Reply action, and the resulting Escape route.

The inline-card geometry test now opens Reply before measuring its textarea. The narrow-panel resize test names Close threads directly, because the panel now also contains a hidden unread button. These changes retain the browser checks for thread placement, draft continuity, geometry, and keyboard exit.

Local verification: all four owning browser files pass (367/367), the everyday suite passes (1,337/1,337), and pre-commit passes. The complete Linux suite is being dispatched on this exact head because main's nightly slot is queued behind an older run.

This was written by Codex on behalf of max-sixty

max-sixty and others added 7 commits September 22, 2026 18:40
A proposal to replace Leaf's document/workspace dichotomy with independent layout axes: posture (flow or bounded), measure (column width), arrangement (sequence, grid, tabs), and height (natural or fill). Includes design using CSS grid sizing instead of JS measurement, pane grammar, and region reading unification. Planned in five slices starting with lf-grid in flow (#29) and CSS fitting for bounded pages (#30).
Folds in a second review: a container query on lf-workspace's allocation picks
bounded or flow with no mixed-scroll state, answers the Threads panel, and
keeps posture local to tabs. One lf-grid with a column count and no spans;
grid cells bound the width their contents take; reading continuity ships with
the posture change. A Chrome probe backs the two-state behavior.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@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 diff lands more than the title and body describe. Alongside the test repair, commits 86e61ba and 0e58b3a add notes/layout-model.md (226 lines) and a TODO entry under a new Layout heading, proposing to replace the document/workspace choice with independent layout axes. Nothing in the body mentions them.

Merging squashes with PR_TITLE/PR_BODY, so main's commit message for that proposal would read "Match nightly browser tests to thread-first comment focus". The proposal is also the half most worth weighing on its own: five slices, a delete list that names readBoundedFit, lf-partition and arrangeReadingElement, and the global-threshold assumption its own TODO entry marks Unconfirmed.

Either split the note and its TODO entry into their own PR, or extend the body to say what they are and why they ride along with the test repair.

@max-sixty
max-sixty merged commit 54fc744 into main Sep 23, 2026
7 of 8 checks passed
@max-sixty
max-sixty deleted the codex/repair-nightly-workflow-tests branch September 23, 2026 03:44
max-sixty pushed a commit that referenced this pull request Sep 23, 2026
… label (#974)

On a 320px phone the Threads button sat past the window's right edge, at
every unread count. `.lf-threads-toggle::after` reserved an inline 6px
dot with a 5px inline-start margin whether or not anything was unread,
which made the button 124px wide instead of 113px. The banner's primary
row is sized to seat its controls on that phone with nothing to spare,
so those eleven pixels put the button's right edge at 321px and
overflowed the row past its own clip. This paints the marker as an
absolutely positioned dot inside the box the button already reserves, so
it costs no width at any count — the treatment the rest of that row
already uses for state, where `.lf-banner-more[data-lf-news]` recolours
the control's border and an open auxiliary toggle wears an inset shadow,
neither of them taking width. Nothing else on the page reads the
marker's box, and the reserved-width intent behind the old rule is
better served by a dot that is out of flow than by one that is in it.

The regression arrived with
[642c553](642c553),
whose nightly `ci` run
([35803415808](https://github.com/max-sixty/leaf/actions/runs/35803415808))
failed 31 browser cases. Twenty-nine of those were readings of contracts
that had moved, which #969 and #972 have since repaired. These two are
the product regression, and they are the ones still red on `main`:

- `test_the_responsive_action_row_keeps_primary_actions_in_reach` —
`.lf-threads-toggle is outside the first 320px view: {'left': 197,
'right': 321, 'width': 124, ...}`
- `test_the_banner_uses_the_page_mark_and_puts_each_edge_by_its_panel` —
`{'shown': 320, 'needed': 331, 'pageShown': 320, 'pageNeeded': 320,
...}`

Both reproduce on `main` at `ee7f973e` and pass with this change.
`tests/test_render_controls.py` and `tests/test_render_navigation.py`
pass whole (271), and `tests/test_render_read_state.py` passes whole
(13) — including its assertion that filling and emptying the marker
leaves the button's measured width unchanged, which now holds because
the marker never enters that measurement. The everyday suite passes
1,332 with five failures this sandbox owns rather than the change: three
need `AF_UNIX`, which it blocks, one reads a umask it does not apply,
and one shells out to an `esbuild` bundle. All five fail identically on
unmodified `main` here, and CI's `test` job runs them green.

<details><summary>Why an overlay rather than making room on the
row</summary>

The row already carries `max-width: calc(100% - var(--lf-status-floor) -
var(--lf-mark-w) - 2 * var(--lf-banner-gap))` and `overflow: hidden`,
with `flex: none` on each primary control so a control keeps its words
at every width. That arrangement has no slack to give back: widening the
cap trades the status sentence's floor for the marker, and narrowing the
controls' padding trades the aim floor for it. The marker is not content
the reader reads, it is state — so the row's own rule for state, paint
on the box the control already holds, is the one that applies.

Visual check at 1200px and 320px: the dot reads as a badge over the
button's inline-end corner in both, and the button no longer moves when
the count fills.

</details>

Co-authored-by: leaf-agent <[email protected]>
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