Repository navigation
feat(web): expand an agent view over the transcript - #141
Merged
Merged
Conversation
A chart or table worth showing is usually worth showing bigger, and the inline box is capped at 900px by design. Clicking a view's title now expands it to fill the message area, leaving the composer where it is so the conversation can continue without collapsing the view first. The overlay mounts beside the message list rather than inside the row that opened it: timeline rows are virtualized, so they clip and get recycled out from under anything absolutely positioned. The messages wrapper is already `relative` and already excludes the input bar, so `absolute inset-0` there covers exactly the transcript. Escape closes it, on the capture phase — the composer and timeline both handle Escape, and the frontmost surface should answer first. Written by Claude Opus 5 in T3 Code.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
This was referenced Aug 28, 2026
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.
Follow-up to #139/#140.
What changes
Clicking an agent view's title expands it to fill the message area. The composer
stays exactly where it is, so you can keep talking to the agent while the view is
open. Escape or Close returns it to the inline box.
The inline box keeps its own Hide/Show collapse toggle, so the two
gestures don't fight: the title expands, the right-hand control collapses.
Why it is built this way
The overlay mounts as the last child of the messages wrapper in
ChatViewrather than inside the timeline row that opened it. Timeline rows are
virtualized — they clip their children and get recycled — so an absolutely
positioned overlay inside one would be cut off or vanish on scroll. The messages
wrapper is already
relativeand already excludes the input bar, soabsolute inset-0there covers precisely the transcript and nothing else, whichis what was asked for.
Which view is expanded lives in a small fork-owned zustand store rather than in
the row, which is what lets the card and the overlay be different mount points.
It is deliberately single-valued: expanding a second view replaces the first,
because one overlay mount cannot stack.
The iframe itself moved into a shared
AgentUiRenderFrameused by both the cardand the overlay, so sandboxing, loading and failure states cannot drift between
them — the sandbox rules especially.
Escape is handled on the capture phase: the composer and timeline both handle
Escape, and the frontmost surface should answer first.
Fork surface
One new fork-owned file (
agentUiExpandedStore.ts), the rest inside the existingfork/agentUiSurface.tsx.ChatViewtakes one marked import and one markedline.
Verification
agentUiExpandedStore.test.ts— 4 tests: initial state, expand/collapseround-trip, replace-not-stack, idempotent collapse.
format clean, fork markers pass.
Written by Claude Opus 5 in T3 Code.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.