Repository navigation
feat(native): achieve parity for transcript media playback, HTML/table media, and gallery - #370
Merged
Merged
Conversation
Brings apps/native TR-MEDIA into parity with Web: WKWebView inline/modal video player (re-sign stability latch, lease pool, fullscreen base-plane portal, GPUI fallback), HTML media/heading/table/video preprocessing and media-bearing table grid rendering, full message gallery navigation, user message videos and raw-HTML opt-out, workspace video preview, and SourceControlMedia fallback resolution. Updates TR-MEDIA to done in LEDGER.md. Model: Claude Sonnet 4.6 (Antigravity)
# Conflicts: # apps/native/parity/LEDGER.md
…en review findings Fix all four review findings and secondary code-fence note from #362: - Isolate inline VideoPlayer/image keys per block & view entity, retire WebViews/leases on unmount or owner switch, and notify on non-source option changes. - Preserve bracketed markdown destinations and literal comparisons in HTML headings/tables, escape '<'/'>' in rewritten anchors, and skip fenced code blocks across blank lines. - Store the opening MediaScope and window handle on MediaViewer, sync FullscreenViewer immediately on open/navigate/dismiss, and close viewer state on thread/file switches or pane unmount. - Restrict direct External Link opens and button rendering to http(s) URLs. Model: Antigravity (Gemini 2.5 Pro)
This was referenced Nov 14, 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.
Closes the remaining
TR-MEDIAparity gaps between Web andapps/native: inline and modal video playback (WKWebViewwith strict CSP, re-sign URL stability latch, active player lease pool, base-plane fullscreen portal, and GPUI fallback), HTML media/heading/table/video preprocessing and table-cell media grids with column alignment, full message gallery navigation, user message video attachments, raw-HTML opt-out for user messages, offlinedata:image decoding, workspace file preview video player, andSourceControlMediafallback resolution. UpdatesTR-MEDIAtodoneinapps/native/parity/LEDGER.md.Key changes
crates/core):AssetResource::SourceControlMedia+fallback_url(),VideoAttachment&is_workspace_video_preview_path,MediaHintstitle metadata,MediaResolveOptions&resolve_media_source_with_options,MarkdownMediaDocument::with_inherited_definitions&gallery_images(),TableData::cell_markdown_rows, HTML<img>/<video>/<source>/<h1>/<table>/<details>normalization with raw-HTML toggle (prepare_display_markdown_with_raw_html) and<url>/ literal< ... >/ multiline code-fence preservation, andUserAttachmentPartition.videos.crates/client,crates/app):fetch_data_mediaofflinedata:URI decoding andSourceControlMediafallback inassets.rsandMediaCache;VideoPlayer(media/video.rs) withhttp(s)external-link validation, non-sourceupdate_optionsnotifications, and unmount/owner WebView+lease retirement;MediaViewer(media/viewer.rs) mixed image/video gallery storing openingMediaScopeandAnyWindowHandle, first-frameFullscreenViewersync (window.refresh()), anddismissonThreadView::sync/FilePreview::set_target/ unmount;transcript/{media.rs,markdown.rs,markdown/blocks.rs,messages.rs}per-block scoped video/image keys, authored sizing, full-message gallery navigation, aligned media tables,NestedViewscycle cleanup, user raw-HTML opt-out + user videos; andfiles/preview.rsvideo preview.Verification on latest HEAD (
954fa89f0a)cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: pass (0 warnings)cargo test --manifest-path apps/native/Cargo.toml -p t3-core -p t3-client:t3-client110/110,t3-core1372/1372 (incl.themes::tests::runtime_palettes_match_generated_web_css),conformance8/8t3-native --features snapshot --test-threads=1(media::,transcript::,files::,thread_view::):12 + 41 + 4 + 19 = 76passed, 0 failednode --test apps/native/parity/sync.test.ts: 42/42 passvp fmt --check apps/native/parity/LEDGER.md: passSnapshot evidence (1440x900 offscreen GPUI on
954fa89f0a)Ref #244
Ref #294
Closes #187
Model: Antigravity (Gemini 2.5 Pro)