Repository navigation
Conversation
…sage
`ConversationWorkspaceProps.trailing` adds content after the channel
timeline's last message, such as a card that asks for a decision. Its
first `restHeight` pixels stay in view below the latest message, and
that rest position becomes the timeline's latest position for
following, Jump to latest, the bottom test, the scroll after a send and
read tracking. Scrolling past it grows the rest into view, and the
reader keeps its place in the content through new messages, older
pages and resizes. `content({ expanded, toggle })` lets the content
offer a control that scrolls to its top, below 100px of history, or
back to the rest position.
A thread target ignores the prop. Plugins detect it with
`conversation.workspaceSlots.trailing === true`; an older host ignores
it. Without the prop, the timeline behaves as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Gil Birman <gil@squareup.com>
- A reveal clamps to the latest message before its hold records the row's place, so late layout can't pull the reader back into trailing content. - A revealed latest message saves the channel as following. - The whole-pixel snap measures in content coordinates. - A new rest height re-places the latest message. - Removing trailing content clears its expanded state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
A top margin on the content collapsed through the host's wrapper, so the measured rest position fell short by that margin and the reader opened just above the latest message's place. Found in native validation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
A resize keeps the scroll offset while rewrapped rows and trailing content change the range's end, which can leave a follower's offset past the latest message. The next position record took that offset as the reader scrolling into the trailing content and stopped following, so the reader stayed off rest. Treat a width or viewport change since the previous record as layout, as the upward-movement check already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Within the follow threshold, a reader who scrolls up a little still follows the latest message. The trailing content's hold realigned any follower to the latest message on each layout change, which undid that scroll at once. Realign a follower by the latest message's movement instead, keeping the gap they last scrolled to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Unread attention asks whether a row is shown while it renders, which reaches the trailing edge through use-reading. An effect event may not be called during render (React error #440), so the edge is kept in a ref updated in a layout effect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
The activity tail's resize observer scrolled a follower to the latest message using the trailing card's previous extent, before the card's own observer measured it. Narrowing then widening the window step by step left the reader past rest by the card's shrink. With trailing content, the tail observer now runs the card's hold, which measures first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
gilgtm
force-pushed
the
needs-you/workspace-aside-scroll
branch
from
November 22, 2026 03:38
cbb8604 to
96b4d10
Compare
Full brief and Hide brief scroll smoothly to their place. Rows measuring during that scroll made the trailing hold assign the offset, which cut the animation short a few pixels in, and the scroll events on the way replaced the toggle's place with intermediate ones. Until the scroll arrives or the reader takes over, layout now retargets it instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
…tent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
gilgtm
force-pushed
the
needs-you/workspace-aside-scroll
branch
from
November 22, 2026 04:22
96b4d10 to
c042e2f
Compare
A live resize can scroll the history before its new size reaches state, as rows and the trailing card rewrap. Tracking that scroll as the reader's recorded a stale gap or place past the latest message, which the trailing hold then kept: the reader ended a resize well off rest. Track only once the size is current, as position recording already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
The previous commit kept scroll events from a stale size out of the reader's place, but a resize still lost rest: the timeline's first frame after a size change samples the offset as reader input that moved the DOM before its scroll event. With no input under way that movement is the rows rewrapping, yet it read as the reader going past the latest message, so the timeline stopped following and never realigned. Sample it as layout unless input is under way, and drop the scroll guard this makes unnecessary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
…cript `ConversationWorkspaceProps.aside` renders a page's content, such as a dashboard, beside the main reader. Plugins detect it with `conversation.workspaceSlots.aside === true`; an older host ignores it. Beside a channel timeline the aside lives in the timeline's scroller, at its end edge. The transcript leaves it the width of its in-flow content, and content positioned out of flow, such as a narrow reader's overlay, takes none. The aside is two-way sticky: taller than the viewport, it moves with the transcript until its top or end shows, and a reversal moves it at once. Its place is measured from the transcript's end, so rows landing or measuring above the reader leave it where it is. Past the latest message the transcript stays put while a range as long as the aside still has below the fold scrolls only the aside, after any trailing content's range. A thread target shows the aside after the reader, before the side pane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Keep a short docked aside its own height rather than stretching it to the sticky frame's viewport height. Make the aside spec independent of coalesced wheel deltas, and cover a short aside, an aside that grows past the latest message, adding and removing the aside, and the aside's range following the trailing card's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
A channel message target that resolves to a thread (a reply, or a message outside the timeline) now keeps the workspace's aside after the thread instead of dropping it. Scope the list reset to the transcript so it no longer overrides an aside's own list spacing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
…erf case The narrow-reader test read the history's offset before the resize's own layout corrections finished, so it could see them as the overlay scrolling the history. Settle before the baseline and before the check. The history's edge now leads the transcript wrapper, so the scroll-long perf case selects it there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
An aside that docked beside a short transcript in the same layout that shortened the view adopted the bottom-aligned top the browser drew it at, before its spacer placed it, and left no range to reach its top. A new band, from a resize or the aside's own height, now keeps the frame's place, as layout without a scroll does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
gilgtm
force-pushed
the
needs-you/workspace-aside-scroll
branch
from
November 22, 2026 05:16
c042e2f to
ca8af76
Compare
With a page's aside docked, the composer and its accessories spanned the whole reader and ran under the aside. The timeline now writes the aside's docked width to the column it shares with the composer, which takes the transcript's width and inset beside it. An overlay aside takes no width, so narrow readers are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
The aside no longer shares the history's scroller. A channel timeline floats it out of flow at the reader's end edge, beside the scrollbar, from the history's top. The history and the composer leave a docked aside its width. Docked, it can reach the frame's bottom beside the composer: the host sets --workspace-aside-max-height and the aside scrolls its own content. The host's container neither clips nor traps fixed positioning, so a plugin's popovers can escape it over the history. A narrow overlay spans the history as before. This removes the two-way sticky: the transcript wrapper, the aside's range past the latest message, the spacer, the frame pinning and the placement after each scroll, along with their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Give queued follow-ups the composer's column beside a docked aside, take the widest in-flow aside child as its width, and assert the composer's centering and an opened overlay's zero width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Keep a page's aside under a narrow detail dock by isolating the workspace row's stacking, keep a thread target's reader mounted when an aside arrives, and give the human typing label the composer's column beside a docked aside. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
Narrow, the follow-up queue keeps the composer's column beside a docked aside instead of spanning the reader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
…crollbar The composer spans the frame and the history's list spans the scrollport, so with a classic scrollbar, as on Linux, the list's center sits half the scrollbar's width to the left. The aside case now expects that offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gil Birman <gil@squareup.com>
gilgtm
force-pushed
the
needs-you/workspace-trailing-slot
branch
from
November 23, 2026 18:21
2b9781d to
9ae351e
Compare
This branch has not been deployed
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.
A plugin page that shows a channel in
ui.Workspacecan now pass anaside, such as a plan or a dashboard, that floats beside the transcript. It is detected throughctx.conversation.workspaceSlots?.aside === true, next to thetrailingflag from #4174 (this PR is stacked on it). This supersedes #4071, whose aside never shipped, so the flag needs no second meaning. Nothing changes unless a page passes the prop.Beside a channel timeline, the aside is an absolutely positioned layer at the scroller's end edge, beside its scrollbar. It does not scroll with the history: the history scrolls under it, and the aside scrolls its own content.
ChannelTimelinepositions the layer from the scroller's box. It sums the width of the layer's in-flow children (an overlay positioned out of flow takes none), then insets the history's rows, the composer, queued follow-ups and the "is typing" label by that width; all of them stay centered under the narrowed column, including in the narrow and compact layouts. Docked, the layer runs from the history's top to the frame's bottom, beside the composer. It hands the plugin that height as--workspace-aside-max-height, and the plugin owns its scroll region. Out of flow, the layer spans only the history. The layer has no overflow, containment, clip-path, transform, filter or will-change, so a popover or a fixed element can escape it and stack above the chat and the composer. A ResizeObserver on the frame, the scroller and the children, plus a MutationObserver for children that move into or out of flow at the same size, keep the measurement current. The workspace row is isolated, so the aside stacks over the reader but never over a narrow panel dock. A thread target shows the aside after the thread in one row, so adding or removing the aside does not remount the thread.FOUNDATION files:
src/features/conversation/contracts.ts(theasideprop and its doc comment, +8; the comment now describes the floating layout, under owner direction) andsrc/features/conversation/service.tsx(aside: truein the frozenworkspaceSlots, +2).Plugin guidance (in
docs/plugin-authoring-guide.md): when docked, take at most--workspace-aside-max-heightand scroll your own region; put popovers outside that region so they can escape; when narrow, render out of flow with your own scroll. The aside's offset parent spans the reader, so size it from the offset parent's width.Browser cases (
tests/browser/workspace-aside.spec.mjs, Chromium and WebKit). They cover real wheel routing, absolute layout against a virtualized scroller, popover hit-testing and live resizes, which jsdom does not model. The nine cases:ConversationTab.test.tsxchecks that showing the aside beside a thread keeps the same thread node.The eleven cases from the shared-scroll design were removed with that design: the sticky frame, fast reversals, the small-scroll hold, past-latest aside-only scrolling, docking beside a short transcript, and Full brief. There is no sticky frame left for them to cover; the float's equivalents are the fast-scroll, short-aside and resize cases. Fail-then-pass: the narrow case failed in both engines when re-docking after an overlay left the history at the overlay's width (912px). That happened before the MutationObserver re-measured a child that moved back into flow at the same size. Without the row's isolation, the aside painted over the narrow dock in both engines. Without the typing label's inset, the label was 40px off the composer's column. Without the single thread row, the thread unit test saw a new thread node.
Native macOS run (packaged debug app, local relay, a real Claude agent, and the buzz-nexus plugin from block/buzz-nexus#689). The host for the run was this PR's head plus #4072's header-actions slot, cherry-picked for validation only, because the plugin's dashboard needs both slots. The run covered:
nexus_set_plantool docks at 320px, capped to the window;With classic scrollbars (Linux CI, and the native run), the composer sits half a scrollbar to the right of the list's center, because it spans the frame and the list spans the scrollport. Without an aside the offset is the same, so the browser case now measures it.
Deferred: no browser case covers the compact (<40.625rem) queue beside a docked aside, because the fixture never docks that narrow; the rule now uses the same column as the composer.
conversation-workspace.spechit one local WebKit failure in "rows measuring during the toggle's scroll leave it to arrive", and it then passed 10 of 10 repeats.🤖 Generated with Claude Code