Skip to content

Fix board allocation, Copy layout cost and hosted edit feedback - #1851

Merged
max-sixty merged 3 commits into
mainfrom
codex/leaf-issue-fixes
Oct 6, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/leaf-issue-fixes

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Boards beside a contents sidebar could claim space already occupied by the sidebar, hidden code-copy controls made every layout expensive, and hosted edits could lose their final reply because source validation happened after the model turn ended.

The layout now derives capacity from the actual reading width and free margins. Boards consume their declared reach, framed widgets consume their holder's width, and an Ask's evidence track grants only its own allocation. This replaces the obsolete Ask room snapshot and covers the same allocation error in sidebar, framed and wide Ask layouts.

The shared anchor owner keeps Copy controls out of layout when their sources are hidden, clipped or distant, with synchronous first-presentation and keyboard readings and symmetric control lifetime handling. In a matched Chrome 154 walk over six real thread cards on the 104-code-block reproduction, median press-to-next-paint fell from 380ms to 60ms. Ref #1839: margin-row participation and repeated thread geometry reads remain unresolved.

Hosted App Server instructions now require checking edited source and applying validation feedback before finalizing. A local hosted journey checked an invalid tone, corrected it, published the revision and replied. Re-vendoring also interprets the same working and historical documents under both layers, so newly bound data survives a refresh while lost or changed contract meanings remain refused. An unreadable working edit leaves the historical contract checks intact and remains a source-validation error.

Validation: focused browser journeys for sidebar/framed/Ask allocation, Copy clipping/reveal/reconnection/touch and existing margin contracts; hosted prompt/validation tests and a live local hosted journey; data-contract regressions; 223 runtime tests; independent reviews. The retained instruction eval passed twice on each arm and is a guard rather than a separating reliability measurement. Full PR checks provide the landing gate.

Thanks to @leaf-agent for reporting the hosted failure in #1841.

Closes #1845. Closes #1841.

This was written by Codex on behalf of max-sixty

Derive widget capacity from the room its holder grants, including framed and Ask evidence tracks. Suspend distant Copy controls under the shared anchor lifetime, preserving retained widget bindings on reconnection. Require hosted agents to validate edited source before finalizing, and compare the same working and historical document inventory when re-vendoring.

@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 new working-source read blocks re-vendoring when index.html is temporarily unreadable; the inline suggestion preserves the historical contract check while letting page check report the source error. This PR also subsumes the fixes proposed in #1846 and #1840, which can close as duplicates if it lands.

Comment thread skills/leaf/scripts/leaf/vendoring.py Resolved
@max-sixty
max-sixty merged commit 9ec1f30 into main Oct 6, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/leaf-issue-fixes branch October 6, 2026 00:32
max-sixty added a commit that referenced this pull request Oct 6, 2026
Main's anchor views (#1851) read a target's box as the page's own boxes
cut it, without the window. Both that reading and paintClips now take
their cut from one helper.

Co-Authored-By: Claude Opus 5.5 (1M context) <[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.

A board beside a contents sidebar stands past the page room at mid widths ci-fix: publish-site agent leaves invalid board tone unanswered

2 participants