Repository navigation
Fix board allocation, Copy layout cost and hosted edit feedback - #1851
Merged
Merged
Conversation
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
reviewed
Oct 5, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
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.
leaf-agent
approved these changes
Oct 5, 2026
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]>
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.
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.