Repository navigation
Give a workspace playground's stage at least half the window - #3622
Merged
Merged
Conversation
A playground whose controls all stand on its stage, laid out in a workspace that fills the window, kept the instruction and its Send button whole in view and gave the stage whatever was left, down to a 12rem floor. At 900×700 that left a 192 px stage on the study's alert page, with none of its 12 controls in view; the judge in the bad-pages study found the stage too short on 4 of 9 configuration pages. The stage now keeps at least half the window (`max(12rem, 50dvh)`), and the instruction takes its content's height (`max-content`) below it. Where both don't fit, the workspace scrolls to the instruction and Send instead of squeezing the stage. The instruction row has to be `max-content` as well: with only a larger floor, a short window scrolled the instruction inside its own box while the workspace scrolled too. Measured on the study page, Chromium and Firefox alike: - 900×700: stage 192 → 350 px, controls in view 0 → 2 of 12; Send moves 164 px of workspace scroll below. - 1280×720: stage 225 → 360 px, controls in view 1 → 3 of 12. - 900×500: stage 192 → 250 px; the instruction no longer scrolls inside itself. Windows narrower than 720 px or shorter than 480 px, where the workspace flows, are unchanged, as are playgrounds with a controls rail (notification-playground, data-explorer). The short-workspace playground test now holds the new contract: the stage keeps half the window, the instruction doesn't scroll on its own, and the workspace scrolls to its end and to Send. Max's decision #28c on the overnight report. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 22, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 22, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 22, 2026
On a workspace page, every line of premise between a playground's question and the playground pushes the instruction and its Send button further below the window. The study's alert page at 900×700 spent 149 px above the stage, three lines of it premise. The playground's author instructions now ask for one or two sentences there, leave a fact the preview already shows to the preview, and put a qualification the user may want in an `lf-gloss`, which opens on hover, focus or a tap without moving the page. This follows Max's decision #28c on the overnight report, and his follow-up asking to cut or collapse the prose at the top. Measured on the study page with the half-window stage floor from #3622, with the premise cut from three sentences to one (Chromium and Firefox gave the same numbers): | Window | Playground top | Workspace scroll to Send | Stage | Controls in view | |---|---|---|---|---| | 900×700 | 149 → 128 px | 151 → 131 px | 350 px, unchanged | 2 of 12, unchanged | | 1280×720 | 149 → 128 px | 122 → 102 px | 360 px, unchanged | 3 of 12, unchanged | The stage stands at its floor at both sizes, so prose above it moves only the instruction and Send. It gives the stage room only in taller windows: at 1440×900 one line less grows it from 450 to 465 px. No collapse mechanism is added. `lf-gloss` is already the on-demand route: in both engines it opens by hover, by keyboard (Tab reaches it first and opens it) and by tap, and nothing on the page moves. Clamping the premise in the runtime would save at most the 66 px the whole paragraph takes, and would hide the premise the question rests on. `playground-controls-stand-by-their-item` gains a `workspace-premise-is-short` rubric. Claude Code: base 0/2 (three sentences each); the rule placed in `page-layout.md`'s workspace section 0/2 (read, not followed); the rule in the playground's `author.md` 2/2. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
pushed a commit
that referenced
this pull request
Nov 5, 2026
#5446) A playground whose premise and presets push its bar below the window keeps half the window for its stage (#3622), and the workspace scrolls on to the bar. In Chromium the wheel reached Send only over the premise. Over the stage it scrolled the stage to its end and stopped there, and over the presets band it did nothing, because every pane body in a full-height workspace contained its overscroll (`browser/layouts.css`), the playground's generated panes among them. Now only a page's own panes contain it. A widget's generated pane (`data-lf-generated`) passes a scroll spent at its edge to the box around it, as a bounded block in a document does, since it is one part of the widget's task rather than a task of its own. Reading keys follow `overscroll-behavior` too (`navigation.js`), so `d` at the stage's end goes on as the wheel does. Visual review's queue, evidence and discussion panes are the other generated panes, and chain the same way. Measured with `leaf-dev probe --base --viewport middle --journey` on an agent-authored alert page from the 2026-10-12 comparison runs, made a workspace (presets, then 12 controls on the stage), at 900×700. Each wheel notch was its own gesture, starting from the workspace's top: | Wheel over | main | this change | | --- | --- | --- | | the premise's heading | Send in view | Send in view | | the presets | Send at y 791–822, below the 700px window | Send in view | | the stage, past its end | Send at y 791–822 | Send in view | Playwright's Firefox showed Send in view from all three on both arms, but review found it also ignores `contain` on a plain control page where Chromium honours it, so that reading describes the harness and says nothing about real Firefox. ## The bad-pages defects, re-measured Part of #4041. The eval's 190–280px stage is gone since #3622: the study-shaped page above gets 350px, and the 13 agent-authored workspace playgrounds from the 26 October to 1 November hill-climb runs get 350–518px, each of the 12 with a bar showing Send at rest. What remained was the wheel, which this PR repairs, and Send a scroll away below a tall premise is the cost #3622 recorded. A phone's thread pin over a line's last words is unchanged here and stays open on that issue. ## Tests - `test_the_wheel_takes_a_short_workspace_to_its_playgrounds_send` (stage and presets) is new. It fails on main's `layouts.css`, with Send left half in view, and passes here. It shares its page with `test_inline_playground_keeps_half_a_short_workspace_for_its_stage`, which now reads it from a module constant. - Pass: the short-workspace, notification, rail, note and small-playground tests in `test_playgrounds.py`; the chaining, task-boundary and pane tests in `navigation/test_panes.py`; the workspace bounds tests that read panes and end room; the visual review tests in flow and on load. - Four tests in that selection fail on main's `layouts.css` exactly as on this branch: `test_a_short_workspace_shows_more_below_its_playground_regions` (the controls' cue reads 13 pixels), both cases of `test_visual_review_keeps_its_inline_comment_editor_in_view_after_phone_resize`, and `test_workspace_end_room_stays_inside_the_last_reading_region[pane]` (a key badge takes the click). - `uv run pre-commit run --files` on both files. ## Not verified - A trackpad's elastic overscroll on macOS. A generated pane's wheel at its edge, in a workspace with nothing left to scroll, now reaches the root, which may bounce; headless Chromium shows no bounce. - Visual review's panes chaining to a workspace that scrolls: no test reads that. - Real Firefox, on main and with this change. - WebKit. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 <[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 playground whose controls all stand on its stage, in a workspace that fills the window, kept the instruction and its Send button whole in view and gave the stage what was left, down to a 12rem floor. At 900×700 that left a 192 px stage on the study's alert page with none of its 12 controls in view; the judge in the bad-pages study found the stage too short on 4 of 9 configuration pages. This implements Max's decision #28c on the overnight report.
The stage now keeps at least half the window (
max(12rem, 50dvh)), and the instruction takes its content's height (max-content) below it. Where both don't fit, the workspace scrolls to the instruction and Send instead of squeezing the stage. The instruction row must bemax-contenttoo: with only a larger floor, a short window scrolled the instruction inside its own box while the workspace scrolled as well. The cost is that on short windows Send is a scroll away.Measured on the study page with
leaf-dev probe --base, Chromium and Firefox alike:Unchanged: windows narrower than 720 px or shorter than 480 px (where the workspace flows; checked at 900×460, 700×900, and a 390×844 and 844×390 touch viewport), and playgrounds with a controls rail (
notification-playground,data-explorer, identical numbers at every size above).The short-workspace playground test now holds the new contract: the stage keeps half the window, the instruction doesn't scroll on its own, and the workspace scrolls to its end and to Send. Run against main's theme, it fails on the stage height (192 < 249.5).