Repository navigation
Give hosted agents the complete native Leaf plugin - #2385
Merged
Merged
Conversation
leaf-agent
previously approved these changes
Oct 11, 2026
test_phone_diff_headers_keep_distinguishing_parent_folder_readable failed at teardown on loaded CI runners: the second lf-diff file header "moved without input by (0, 49)px" after the tap that opened the first file. Opening a closed file loads its evidence in a promise (the Markdown grammar and Shiki rendering) that lf-diff declares through `present`, so the page's presentation proof stays pending until the lines land. The shift watch ended a gesture's ownership on `lfRenderingSettled` alone, which by its contract (runtime/rendering.js) cannot see promise-held work. On a slow machine the loop settled before the file's lines arrived, so their growth read as passive. The product behaved correctly: the files below moved because the user opened the one above them. The watch now ends a gesture's rendering once the page has also presented its current publication (`lfReadiness(null, "presented")`), widget preparations included, which is the declared completion `pageReadiness` already states. Deferred arrivals stay outside that credit, so a late arrival still fails as passive. New test: test_an_input_owns_a_widget_preparation_it_began_until_presented holds the Markdown grammar with page.route, so the loop settles while the preparation is pending, and checks that the press owns the growth and that a passive move after presentation still fails. With the old reading it fails with the same 49 px report the CI runs showed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 11, 2026
This was referenced Oct 11, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 12, 2026
…eys and two examples (#2541) `worker/README.md` mixed a retelling of `docs/website.html`, the hosted-agent delivery contract, and patch-on-patch diagnostics prose, so an operator had to dig for the commands. It is now a runbook: credentials, local development, the dev environment, production deploy, checking the live release, rolling back, diagnostics by record type, and configuration. Every command in it exists (checked with `--help`, the workflow, `package.json`, or a live `curl`). The delivery contract moved into the `worker/leaf_website` module header, and the README keeps the failure-code table the deploy check and an operator read. The new rollback section says to revert on `main` rather than use `wrangler rollback`, because a Worker rollback leaves containers on the newer release and the Worker then answers every private request with the `rollingOut` 503. Seventeen registry `$keys` descriptions, which `leaf-dev keydocs` publishes as `docs/registry.html`, got a plain-language pass that defines their terms and states each claim literally. `security-boundary.html` now expands SRT and Astra, `docs/website.html` drops a sentence that #2385 made false, and the feature gallery's long guides are now a short lede plus one step per gesture, each naming what to look at. > _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.
The hosted agent could describe a thread as collapsed without changing it: its website harness disabled native plugins and skill discovery, so it had no ordinary Leaf workflow to follow. Install the complete prepared Leaf plugin through Codex's native marketplace and let hosted threads use normal skill discovery and the shared App Server instructions. Keep only the website's page scope and harness ownership in its additional instructions; restrictive configuration belongs solely to the separate title-generation task.
Copy the complete prepared payload into the container, excluding generated Python environments, and redeploy when its hooks or manifests change. Website verification and evals share the native installer. The thread reference now distinguishes omitted model context from an actual summary event that folds messages in the browser.
Validated with real Codex App Server and queue journeys, the website adapter journey, and native-plugin replays on both the host and container-pinned Codex. The summary replay folded 13 originals and verified reveal/refold in Chrome. Focused website, CLI admission, thread rendering, title-generation, native eval-install tests, and all 75 Worker tests pass. CI and the production publisher passed.
Three fresh production journeys on the deployed release showed their replies after 98.228s, 29.835s and 34.273s (median 34.273s); the publisher's CI journey took 47.825s. Three earlier production samples had a 23.404s median. This compares different releases and browser hosts, so it is diagnostic rather than a controlled attribution. Unsampled logs show 13, 10 and 7 model requests; the slow sample repeatedly attempted page-state/instructions commands and had overlapping command lifetimes.
Includes the completed shift-checker repair from #2391 after the broad CI suite exposed its delayed diff-disclosure failure: gesture ownership now includes the widget preparation the page declares pending. A held-grammar regression verifies both the delayed result and continued rejection of passive movement after presentation.