Repository navigation
Seat annotations in clear space and retain access when crowded - #2680
Merged
Merged
Conversation
leaf-agent
approved these changes
Oct 12, 2026
This was referenced Oct 13, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
The [main CI run](https://github.com/max-sixty/leaf/actions/runs/38317918344) found that opening a narrow suggestion pin's options with `e` immediately hid the entire cluster and moved focus to the page body. #2680's seating pass preserves a held pin when no clear resting seat exists, but its held-row selector omitted a row whose options are open. The layout now treats that open face as held, so its controls remain reachable through the gesture. The failing browser node ID reproduced before this change and passes after it. The neighboring test that requires a resting pin with no clear seat to stay withheld also passes. `pnpm run test:runtime` passed (392 tests). Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
The [main CI run](https://github.com/max-sixty/leaf/actions/runs/38317918344) found two geometry tests still requiring the pin positions that #2680 replaced with clear-space seating. A moved card's suggestion row now takes a clear seat near the card's top instead of beside the changed words; the test checks that it stays on the moved card and its action still works. A short touch sample offers no clear finger-sized seat for its receipt, so the test checks that the pin is withheld and the receipt remains reachable through that sample's More menu and Page Map. Both node IDs failed on current `main` before this change and pass afterward with a focused `uv run pytest -q -n0` run. No product code changes. --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 13, 2026
A reply can carry a widget introduced after the page a reader has pinned, or use a different meaning of an existing widget. Previously, every pinned page had to accept that markup and one globally registered implementation rendered all revisions. Each page and frozen message now retains its own widget publication: declarations, constructors, private modules, styles, initial drawings and recorded command meaning. Decisions and asks keep their captured meaning while the reader changes page versions. The document still runs one current Leaf kernel and one instance of shared runtime/vendor libraries. Publication-addressed widget resources and scoped custom-element registries isolate their implementations. Samples preserve those identities, including generated children; served pages, captured exports and Worker delivery follow the same resource ownership. Classic initial drawings remain classic scripts outside the module graph. Shared reaction chrome follows the viewed document. Registry-declared widgets now default-export a constructor; Leaf owns registration. Generated child widgets use `createWidgetElement(owner, tag, Constructor)`, and `layerFact(owner, name)` reads the owning publication. All maintained widgets, authoring examples, public references and callers are converted together. Removing the old registration wrapper outdents class bodies by two spaces and accounts for most raw changed lines; the loader and all maintained widget callers move to this registration contract together. Independent survey fixes landed first in [#2672](#2672) (preview producer), [#2673](#2673) (preparation lifetime), [#2679](#2679) (deferred presence), [#2680](#2680) (annotation seats), [#2683](#2683) (preview shutdown), and [#2685](#2685) (native Git evidence). This PR now contains only the publication migration and its integration proof: 228 files, +17,248/−14,329 lines; ignoring whitespace leaves +5,052/−2,133 (77% of raw changed lines disappear). Validation exercises different meanings of the same tag, new reply widgets in old pinned pages, captured actions and undo, generated sample children, classic initial drawings, private-module/shared-runtime identity, and historical offline exports with zero external requests. Independent readers used desktop, keyboard and phone interactions. The last browser-startup source caac297 served triage comparison against maina3a139255 adds four code requests and 19,133 code bytes before presentation; both arms have no browser errors, identical layout shifts and byte-identical settled screenshots. The current integrated source passes 108 framework/build checks, 410 runtime tests, the complete lint gate and focused model/browser contrasts. Earlier source-specific proof includes 82 Worker and eight eval-runner checks; the integrated 51310e7 build passes all 105 site pages and three public Worker startup checks against main250595204. Its product/triage add about 4.7 KB with unchanged code request counts, while the frozen gallery adds 94,125 code bytes for its captured registry, scoped styles and separately addressed constructors. Layout shifts are identical in each pair. Integration with main3a7414145 preserves the upgraded commenting interface while private history loads. Local comments now paint through the canonical publication presenter in that waiting phase; existing early-send, arrival and refusal controls pass. Sample conversation selection captures intent when its command arrives, before waiting for child history, and carries it through both canonical destinations. Four held-child contrasts verify ordinary page/panel selection and cancellation after newer child typing. Structured admission and source refusals now preserve canonical finding codes through the publication-specific callers; seven focused model/process controls cover captured commands, retired captures, approval and quiet hooks. The subsequent CLI JSON integration also passes five reply/refusal controls and the complete-publication atomicity control; the constructor and browser runtime source is unchanged. The newly merged late-shadow usability fixture also uses the constructor export; its unchanged browser assertions pass. The scoped-registry vendoring adapter forwards native retained-move callbacks; the unchanged composer selection assertion and five lifecycle/browser contrasts pass. Broad CI exposed eager page-parser imports in the quiet Codex hook. Reserved revision identities now stay lightweight, while content reads use the unchanged canonical capture validator. Quiet/pending hook paths and seven incomplete/obsolete/duplicate capture controls pass. Ten other failures were outdated fixtures for complete captures, captured replies, native Git headers, scoped child creation, split widget styles, structured findings and the ask API; all eleven original failures pass locally with their behavioral assertions preserved. Final exact-head Linux CI passes the broad Python suite, complete website lifecycle including dormant reads and wake/restore/write, all bundle/runtime/Worker/eval assertions, pre-commit, website build and bundled-release Chrome measurement. The fresh automated review approves 80d3708 with no findings. [Final CI run](https://github.com/max-sixty/leaf/actions/runs/38334710468). The main risk is a constructor-timing or generated-child caller missed by the focused contrasts. The scoped-registry dependency and the across-corpus API cutover are the architectural cost of removing the old pinned-page vocabulary restriction. > _This was written by Codex on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Oct 21, 2026
…side it (#3396) A survey of `notes/` against the code and history at d91b67b. Where a note's design has landed, its contract moves beside the code if it wasn't already there, and the note or section goes; what is still unresolved stays. - **Deleted:** `floating-panel/GOAL.md` (every departure is now recorded in `floating-panel.js` and `styles/floating-panel.css`; #3392 moved the last one, the draft posture, beside `drafted`, and this adds the no-key-hints decision to the header), `browser-reactivity.md` (its design is in module headers; why paints that must land in the turn use `render` moves to `assets/AGENTS.md`, and the margin's double draw becomes a TODO implementation candidate) and `chrome-and-covers.md` (`page-layout.md` holds the workspace decision; the `layouts.css` Workspace comment now records the rejected main-region-scrolls design). - **Trimmed:** `agent-usability-evals.md` drops the findings through 2026-10-12, which have landed. `comparisons.md` drops the phone-pin finding (#2680), the 4 October follow-up proposals and two landed lessons. `user-feedback-responsiveness.md` narrows delegated work to Codex and Pi (#3370) and drops "Explicit stdin" (#3375). `threads.md` drops request buttons (#1327), placement (#2134) and notification transitions. `shared-decisions.md` points at the recorded owner contract. `browser-support.md` drops two fixed entries and owners #3100 removed. - **TODO.md** follows each: #28 points at the module header, #25 asks for the board's write rather than an owner, the annotation-placement item loses its landed phone half, and the delegated-work and reply-budget items lose what #3370 and #3372 settled. - Smaller corrections in `shift-watch-cost`, `undo-reach` (#3271), `named-widget-interfaces`, `codex-integration` (`codex_tool.py`), the long-read eval's provenance comment, and `motion.js`'s fold comment. The runtime comment edits rebuild `kernel.json` only. No behavior changes. > _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.
Resting annotation pins could cover words or native controls when a crowded pane had no free seat, and opening a thread there could squeeze its transcript into that pane. Placement now tries clear space outside the containing boundary, shares the chosen attachment with thread and composer placement, and withholds a pin when no clear seat exists. Page Map retains access to its thread and actions.
The placement owner seats pins and rail rows in one held-and-arrival order, so a later packing pass cannot move a clear seat onto content. A held exterior pin retains its attachment when nearer space opens; its original target still determines visibility and affinity. The corresponding author guidance no longer tells readers to hide pins to read underneath them.
Validation covers dense code, drawings and CSS scrollers; native controls; exhausted seating and Page Map; and focused pins, long threads and retained drafts. Independent code, prose and fresh rendered-reader review passed. All 381 runtime tests, 17 focused browser cases, and both applicable Mac thread appearance snapshots pass. Five paired browser probes show no extra startup requests; the three placement modules add about 9 KB before presentation.