Repository navigation
feat(native): transcript images, zoom viewer, Edit from here, and the remaining status lines - #41
Merged
Merged
Conversation
… sync, and Force stop
This was referenced Nov 2, 2026
Open
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.
Problem
The native transcript showed image attachments as bare file names, ignored images authored in markdown, and had no way to rewind a thread ("Edit from here").
Approach
TR-MEDIA (ports
TimelineUserMessageRow.tsx,ChatMarkdownMedia.tsx,ExpandedImageDialog.tsx,ZoomableImage.tsx,client-runtime/src/{markdownImages,mediaSource,mediaReference}.ts):t3-core::media: attachment classification (isImageAttachment, preview annotations left out), media placement (alone / above text / in guest and agent bubbles),classifyMarkdownImageSourceandresolveMediaSource(host files becomemedia-fileassets, never direct reads),AssetCreateUrlResultdecoding, data URLs. Tested.t3-client::assets:assets.createUrl, then the signed URL fetched through the sharedasset::fetch_asset(size-capped). Directhttp(s)anddata:images are supported too.app::media: a bounded cache. Fetch and decode run on the tokio blocking pool, at most 6 at a time (ASSET_URL_MAX_IN_FLIGHT). Images are downscaled to the size they draw at (thumbnails 1280px max edge, viewer 3072px). Encoded bytes are kept (64 MB) so scrolling back skips the network. Decoded images (160 MB budget) the transcript has not drawn for 2 frames are evicted oldest first, anddrop_imagefrees their atlas tiles. The viewer pins what it shows. GIF and WebP show their first frame only, so nothing repaints continuously.TV-REWIND (ports
useTimelineRewind.ts,deriveRevertTurnCountByUserMessageId/findRevertCheckpoint,deriveAvailableRevertTurnCounts/waitForRevertedMessage,recallableComposerPrompt,RevertConfirmHost):t3-core::timeline::rewindholds the logic and its tests: which messages can rewind, thecheckpoint.rollbackcommand, the witness-run wait (including Claude's fresh root session at thread start, androllbackFailure), and prompt recall.AppState::restore_composer_promptplusAppEvent::ComposerRestore. The composer merges the prompt into its draft (current + "\n\n" + restored) and focuses. The composer change is one subscription and one method.AppThread.rollbackFailure(conformance builder and fixtures regenerated) andServerProvider.supportsConversationRollback.TV-STATUS: remaining lines (ports
ThreadNow.tsx,ThreadActivityBanners.tsx,presentPendingBackgroundWork,childThreadInputsTitle,useForceStopThread.ts,threadSync.ts):t3-core::timeline::now: background-work presentation (titles, kinds, subagent display titles), the child-input line (subagents, side chats and delegated tasks holding a request), and the Force stop request and notices. Tested.threadForceStop. It callsorchestration.forceStopThreadwith the run that ignored Stop and shows the web's toasts (newInfotoast kind, §6.6).PendingBackgroundTask.{taskId, description, childThreadId}(conformance shell fixture extended and regenerated) andcapabilities.threadForceStop.Ledger
TR-MEDIA → partial. TV-REWIND → partial. TV-STATUS → partial. TR-HTML / TR-MCPAPP were not started.
Gaps
Evidence
cargo test --workspace, clippy-D warnings, gen-theme--check,parity/sync.test.ts, conformance--check: all green.media-fileassets and fetched with server dimensions (claude-t3-connected.jpg32755 bytes, 1516×758, JPEG magic).{u1: 0, u2: 1}and available{0, 1, 2}. With restore files on, the server rejected the rollback: "File restore requires an isolated worktree…", which the UI shows in its error banner. Keeping changes: dispatchOk(sequence 2026), progressDone, runs[(1, completed), (2, rolled_back)], restored prompt"second turn".--features snapshot, read-only, real data):/private/tmp/claude-501/-Volumes-DevSSD-t3code/7a9093f7-05bd-4183-ab15-c4265aa48126/scratchpad/w1c-md-images.png. It shows a markdown screenshot decoded from amedia-fileasset and drawn at 480 wide with radius 8 and its border. The hover-only Edit button and attachment bubbles had no read-only fixture to capture.Model: Claude Opus 5.5 · Harness: Claude Code (native-client factory worker W1c)