Repository navigation
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
Dormant api/state responses refresh taken but retain the now value captured when the container last published. observeServerNow(state.now) then shifts the browser clock back to that publication: an old saved page dates a newly composed comment in the past and shows stale relative times. Date both fields at delivery from the same instant.
Transfer a seated native editor's frame through the shared placement owner when saved widget edits change its attachment, including after Resume. Withhold composers and reply cards whose surviving subject is hidden, and retain unanchored placement for explicitly detached quotes. Title presses have one owner and reveal held replies even when their thread or title is already selected. Restore CI's behavior-focused arrangements: open the canonical page-comment surface, exercise a real failed state read instead of an impossible inventory, settle the user's filter before testing passive insertion, consume the exact injected diagnostic, and leave browser teardown with its fixture owner. Validation: cold and later saved-state replay into original and resumed drafts, responsive composer/reply recovery, list/arrival and startup cases, lifecycle/fixture ownership, 292 runtime tests, 8 macOS appearance cases, and pinned pre-commit checks.
Reserve injected list faults before yielding and close the failed wave synchronously before releasing it. Hold the subsequent successful retry so concurrent candidates cannot overrun a shared two-failure budget. Keep complete rollback, latest-choice, native editor identity and exact expected-diagnostic assertions. Choose the filtered card with an ordinary title click, attributing its collapse to user input before observing passive insertion. Raw scripted focus previously produced the 170-pixel shift caught in Linux CI. Validation: all four rollback placements and filtered insertion pass; related failed-state consumers and pinned pre-commit pass. Independent Claude review found no correctness issue. No production behavior changes.
Keep the region selector in client coordinates and cross into its native layout frame only when painting. Export at the selected viewport dimensions. SnapDOM clipped placeholders mixed client gaps with layout margins; patch that producer in a private locked package copy before bundling. Document the condition for removing the patch. The existing real capture/send/reload regression now covers 80%, 100% and 125% zoom with actual color pixels, selection geometry, image size and semantic anchors. Its gap cannot be masked by CSS margin collapse; the unpatched 80% control fails the blue-pixel assertion. Validation: three capture cases, independent ordinary browser checks, Claude correctness review, and pinned pre-commit checks.
The early-editor fixture held every frame state request, forcing sample children through offline fallback before the parent could finish upgrading. Hold only the parent reading and use the canonical upgraded-stage readiness wait. Preserve the pending-history, unfinished text, focus and caret assertions; completed sample pages no longer alter this test arrangement.
The verifier admitted a synthetic active header and closed as soon as the follower saw its broadcast. Its pending news request could allocate a container after the next fixture took its baseline. Read the canonical activation address from the passive projection and await a real admitted browser response before closing. Keep the saved-state one-container invariant intact; add a regression using the published adapter and runtime that fails for synthetic activation.
The public asset build rebundles the browser graph after capturing the container image. Comparing a private resource with the raw baseline artifact did not prove that the public ASSETS response had matching bytes: a dormant private leaf.js selected public chunk names that were absent from its revision, waking the container during startup recovery. Remove HTTP response asset aliases and retain exact captured bodies through the existing bounded content-addressed store. Canonical record references still reuse unchanged files from the container image. Document that operations requiring Python, including exact historical comparisons and live sample allocation, can still start the container. Validation: canonical record restore tests, Worker storage/routing checks and TypeScript, independent Claude review, and an actual public-ASSETS browser control (old: 25 missing chunks; candidate: saved choice/comment presented with no missing paths or browser errors). The real stopped-container restore remains the required Linux CI gate.
leaf-agent
left a comment
There was a problem hiding this comment.
The current test job is red on the reviewed head. The new held-key clock test failed because its pause_at target was already in the past. The same job also reported an unexpected 331 px movement of the floating thread preview in test_primary_arrival_records_a_return_place_only_when_travelling[False-True-1000]; that failure needs diagnosis before this head can merge.
CI failed: held-key clock test and unexpected floating preview movement.
Keep the held-key ownership assertion across the bootstrap deadline while removing the driver latency race from a sampled near-future pause target.
Combine opaque sample exclusion with page and release scoped activation channels. Preserve durable page records and native sample capability routing. The live corpus deliberately has no local research-notes file binding. Assert its explained read-only state and acknowledge only that expected HTTP refusal; captured corpus revisions perform no live file read.
leaf-agent
left a comment
There was a problem hiding this comment.
The full test job is red on 52bb619 (3 failures, 1 teardown error), so my approval on this head no longer stands. The held-key clock regression passed, but the return-place fault control found no expected movement report; the early anchored editor timed out waiting for health sensors to drain; the opt-in page interface test never observed its hook; and shift-watch teardown reported unannounced DOM changes. These failures need diagnosis before the head can merge.
CI failed on the approved head: three Python tests failed and one teardown reported a health-sensor error.
Reserve the live sample's controls and scrolling viewport in the package's canonical initial drawing. Child allocation and saved history no longer gate the containing page's presentation. Declare stable contained work separately from layout arrivals so fragment landing stays prompt while pictures wait for complete examples. Full view keeps the child realm and captures its own reading landmark before resizing. Return retains that bookmark under its original reading intent and reapplies it on native child resize, without cross-realm viewport guesses. A repeated Full view press renews the pending capture and waits for it; newer input supersedes old completions. Choices, native editors and focus stay with their owners. Loading, failed and departed frames remain expandable. Browser diagnostics route non-DOM mutations to the receiver's document, read hidden owner layout completely and use canonical callback input ownership across isolated ports. Each animation beginning is its sole motion owner; news seals old input work, and dirty CSS discovery replaces timestamp-based adoption and repeated unconditional style sweeps. Native declarations, adopted-sheet arrays and validation APIs announce through the same receiver owner. Keep offscreen drainage with the browser driver and window-plane source travel with the floating attachment's owner. Use an independent inset fault that normal placement cannot erase, and isolate the optional-interface settlement fixture from unrelated example loading. Add causal controls for hidden frames, reciprocal mutations and delayed input; update the live gallery, authoring contract and visual capture catalogue.
leaf-agent
left a comment
There was a problem hiding this comment.
The shift watcher still uses page-wide lfApplicationPresented() to decide when a press stops owning movement (tests/shift_watch.js, settled). If a widget preparation was pending before the press, that reading stays false after the press's own work finishes. tick() then keeps the press's rendering open, and inputOwns() can suppress a movement caused by the unrelated preparation. The held lf-diff test covers preparation the press began, so it cannot catch this false attribution. #2391 has a provenance-based fix and a test for an independent preparation landing during a press; this branch needs that distinction before merging.
Use the existing queued-work lifecycle to retain cause across native awaits. Keep current application proof separate from counted loop quiet, replacing the global preparation gate introduced in #2383. Held mouse, touch and keyboard cases distinguish owned commits from passive work even after newer input.
Retain current dictation and dependency parsing changes. Replace #2390 preparation settlement tracing with the existing queued-work commit mechanism and application proof, rather than keeping two causes for the same rendering. Preserve native sample departure cancellation while reporting child errors named AbortError. Recapture and review merged thread appearance.
Retain unified focus rings, diagram identity and safety checks. Keep rendering loop quiet separate from current application presentation, rather than restoring the removed global preparation observer/count mechanism. Held-source provenance, early editor/caret, sample focus restoration and reviewed thread appearance pass on the combined tree.
Retain the quoted-passage Enter/Space result checks with an explicit quote focus for each arm. Preserve root-tab header and scroll-reach coalescing, current diagram diagnostics, and current sample reload assertions. Quoted navigation, retained stuck-tab revision, and visual-review journeys pass on the combined tree.
Keep canonical rendering queue quietness separate from current application presentation. Retain incoming comment frames and exact native event dispatch tracking; route coalesced attribute-node changes through the same source boundary so passive movement remains observable. Reviewed 43 browser controls, 346 runtime tests, and refreshed merged thread snapshots.
Provisional loading paints usable chrome without establishing the status announcement baseline. First saved state or failure establishes it; later kind and actionable work changes still announce. Preserve the gallery regression error-consumer import when main removes its former caller. Immediate and held-history announcement controls, gallery failure cases and renewed thread work pass.
leaf-agent
left a comment
There was a problem hiding this comment.
The current lint job fails with F821 in the new gallery test, so the test job was skipped. The test needs the render_harness helper in scope before this head can pass CI.
…ness Keep main class-token and template-whitespace assertions. Retain canonical page readiness and the early Loading saved state label, and assert that exact summary clears after the saved response. Focused playground and website example controls pass.
leaf-agent
left a comment
There was a problem hiding this comment.
The full test job finished red on b990207 (3 failures, 2 teardown errors), so my approval on this head no longer stands. The passage sweep failed to raise a Comment button for two passages in ship-review and eighteen in feature-gallery; both cases also reported unchanged composer writes during teardown. The complete-list rollback case previously raised in this thread still reports a passive 34 px thread-card movement. These failures need to be resolved before the head can merge. I have not established whether the passage and teardown failures share a cause.
CI failed on b990207: passage sweep and rollback failures
Every committed browser bundle is now built by one Node builder. `build/vendor.py` (Python shelling out to esbuild per bundle, copying patched packages into a scratch dir, handing `meta.json` to `shipped.mjs`'s CLI) and its five per-bundle Node scripts become `build/vendor.mjs`: one table, a row per bundle, built in-process and returned as an outputs map that `build/browser/build.mjs` writes and checks alongside the framework, initial renderers and styles. Code-quality survey items F127 and F58. What changes for a contributor: - `pnpm run build:browser` rebuilds everything (about 2s); `pnpm run check:browser`, already part of `pnpm run check`, compares every bundle with the committed bytes without writing, so it works on an uncommitted tree. `check:bundles`, its CI step and its `wt merge` block are gone. - The layer's `vendor/` and every package's `vendor/` are owned whole: any file there that no build writes is reported stale (this replaces the `git status` read). - Upstream adaptations go through one `adapt` esbuild plugin and one `seam()` count guard (Lit's three included); the floating-ui `.patch` files apply in memory with jsdiff. An adaptation whose module no longer loads now fails the build. Nothing writes `node_modules` or a scratch copy. - `build/registry.mjs` is the single generator of registry-derived runtime modules: `runtime/syntax-languages.js` (was in vendor.py) and `runtime/composing/drawing-schema.js` (was in build.mjs) are two rows of one table, so a new registry fact is one row. - `build/lit.mjs` (F58) declares the static-html renaming once and derives the export list from `lit/static-html.js`; `lit.js` and Web Awesome's `bindToVendoredLit` binding read the same table, and the binding checks per importer that the package resolves Leaf's Lit. - `crelt`, `w3c-keyname`, `style-mod`, `@floating-ui/core` and `@floating-ui/utils` leave `package.json`: they were declared only so the scratch copies could resolve dependencies after the pnpm move. The lock still pins them. **Byte identity.** All bundle contents are unchanged. Three chunk file names change (syntax's two shared chunks and Web Awesome's one), along with the lines importing them: esbuild's chunk hash includes input paths relative to the working directory, which was `.tmp/vendor-*/` and is now the repository root (confirmed by building from a depth-2 directory, which reproduces the old names). Web Awesome's chunk also carries a theme comment that named `build/vendor.py`, and the two registry modules' first-line banners now name `build/registry.mjs`. Key files: `build/vendor.mjs` (the table and `adapt`/`seam`), `build/browser/build.mjs` (aggregation, vendor-directory ownership), `build/lit.mjs`, `build/registry.mjs`. Open PRs #2336 and #2249 each touch `build/vendor.py` (a copied `scoped-registry` bundle; a snapdom `.patch`); after this lands they port to a `copy` row and a `patches(...)` adaptation respectively. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Native plugin hooks normally run the plugin's own uv environment. A website host needs those hooks to use its prepared environment, which also contains the website storage provider. Add an absolute `LEAF_HOST_LAUNCHER` override to the existing launcher. Keep `LEAF` as the agent's command locator, preserve standalone SessionEnd cleanup, and isolate the host override in development and test child processes. A redirected call consumes the selection, allowing a host wrapper to invoke Leaf without recursively selecting itself. Self and symlink aliases retain default dispatch. Validation: focused launcher/environment checks and applicable pre-commit pass. A wrapper regression fails on the old implementation and passes on this head. Independent Claude full-PR and repair review explicitly recommends merging with no further demonstrated underlying fix, after exercising command/hook forwarding, stdin/exit status, SessionEnd, wrapper/self/symlink selection, invalid paths and child isolation under macOS and Debian shells. First part of the replacement for #2249; the durable website state PR builds on this launcher boundary and supplies its website producer. > _This was written by Codex on behalf of max-sixty_
A slow or failed first saved-state read currently holds back commenting on an already rendered page. Open anchored comments, drawing and document navigation at widget upgrade, while saved-state readers wait for the actual answer. The banner says “Loading saved state…” while that request is pending; elapsed time alone no longer reports an offline server. Local comments use the existing immutable application publisher, unresolved ledger and thread fold in every phase. Complete asks, saved threads and history-dependent actions still use the server's admitted reading. Commands declare their input readiness at the owning boundary, so keyboard, native controls and pointer actions agree; recovery of an existing reaction withdraws its real saved event. Ordered startup keys wait only for inputs their commands need. A sample's existing ready boundary now means its commenting interface has upgraded. The parent can become usable while a child's state loads; selecting a saved child thread waits for authoritative presentation. Startup-error and telemetry consumers use the same upgrade boundary. The first state answer applies saved facts without rerunning composer setup or dismissing an open draft. Delayed remembered chrome retains the existing document-arrival user intent, so an old Pages drawer cannot open modally over a comment the user has begun; untouched visits still restore it. Contracts and the How it Works page describe these phases. Validation: 400 runtime tests and 50 application tests pass. Focused real-browser regressions cover held state beyond ten seconds, real failure/recovery, keyboard/native/pointer agreement, reaction undo, parent/child sample startup and selection, initial versus late shadow errors, and open draft words/caret across successful and failed first answers with focus in a sample or Leaf controls, plus the observed-selection banner route before history arrives and phone-width saved Pages restoration with and without newer commenting input. Independent Claude review of the full final proposal and owning history returns MERGE with no demonstrated underlying fix remaining. A fresh context-blind user check of the combined ordinary paragraph/sample flow holds both state reads beyond eleven seconds, preserves the parent draft through failure, resumes its words/caret after Full view and successfully sends the child comment, choice and parent comment (all HTTP 200). The final main-integrated candidate also passes a fresh phone-width blind task: a remembered Pages drawer restores on an untouched visit, yields to newer commenting input, and the anchored comment continues at its original caret and sends successfully (HTTP 200). A served-preview comparison of runtime `bdf1cec3` (unchanged by the test-only `561ed049` repair) against integrated main `a8a26745b`, with the same held first state read, loads the same 258 requests before widget upgrade and 260 through authoritative presentation. Resource paths are identical at both boundaries; the candidate adds 4,426 decoded bytes (3,678 external JavaScript and 748 inline/document bytes). These bytes make commenting usable before saved state arrives; delaying them until presentation would retain the blocked interaction. Elapsed timings are diagnostic and do not establish a production latency improvement. Faster dormant website reads shorten this window but do not eliminate missing, slow or failing saved state, sample reads, or local-server cases. Independent part of the replacement for #2249. Faster website state recall is handled by the separate storage change now on main. > _This was written by Codex on behalf of max-sixty_
Superseded by four focused pull requests:
The combined prototype is retired. Its unrelated sample/layout, generalized diagnostics, image-capture, and panel-wide notification rewrites were cut. The replacement PRs retain the existing rendering and preparation mechanisms and use canonical state, draft, and placement owners.