Skip to content

feat(mobile): preview videos in the file viewer - #12570

Closed
Lironeee wants to merge 3 commits into
stablyai:mainfrom
Lironeee:feat/mobile-video-preview
Closed

Lironeee wants to merge 3 commits into
stablyai:mainfrom
Lironeee:feat/mobile-video-preview

Conversation

@Lironeee

@Lironeee Lironeee commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Videos (.mp4, .m4v, .mov) can now be previewed in the mobile file viewer. Tapping one previously showed "Binary preview unavailable", because the host reported every previewable binary as isImage and React Native has no player component.

How it works:

  • isVideo on the preview payload. files.readPreview / files.readTerminalArtifactPreview (and the relay's fs.readFile / fs.readFileStream / fs.readTerminalArtifact) now report which media kind they carry instead of claiming everything previewable is an image. src/shared/video-file-extensions.ts is the single source for the container→MIME map, and isVideo is threaded through the SSH stream reader and the filesystem provider contract so SSH worktrees behave the same as local ones.
  • The bytes are staged on disk before playback. AVPlayer and ExoPlayer cannot open a base64 data URI, so MobileFileVideoPreview writes the preview into the app cache and hands the file to expo-video. The cache file's extension matters — AVPlayer picks its demuxer from it — and it is named after the source path so re-opening reuses one slot instead of leaking a copy per visit.
  • WebM/MKV stay unavailable. iOS cannot decode them, so they fall through to the existing unavailable-binary path rather than opening a player that fails — same reasoning as the existing SVG exclusion.

Wired into both the file-preview route and session file tabs; the explorer row gate and icon were updated to match.

Screenshots

An .mp4 opened from the mobile file explorer, playing through expo-video's native player. The transport (play/pause, ±10s, scrubber), fullscreen, AirPlay and mute all come from the OS; a 16:9 video letterboxes inside the portrait pane via contentFit="contain".

mp4 previewing in the mobile file viewer with native playback controls

Verified on an iOS 26.5 simulator against a real paired desktop runtime built from this branch (not a mock); .mov was checked the same way.

Testing

  • pnpm lint — oxlint clean on both projects (also enforced by pre-commit on every changed file)
  • pnpm typecheck — tsconfig.node.json and the mobile project both clean
  • pnpm test — mobile 3047 pass; desktop src/main/runtime, src/main/ssh, src/main/providers, src/relay pass. The two src/relay/agent-exec-handler.test.ts failures reproduce unmodified on main and are unrelated to this change.
  • pnpm build — build:cli + build:electron-vite succeeded; that build is what the simulator test ran against.
  • Added tests: video classification (including the WebM/MKV exclusion), preview-request routing for worktree and terminal-artifact sources, response normalization and its rejection cases, cache-file staging/naming/cleanup, and the desktop + relay preview reads.

AI Review Report

Reviewed with Claude Code while building, focused on: the preview transport contract (does anything else key off isImage?), SSH/relay parity, memory behaviour of multi-MB base64 payloads, and player lifecycle.

  • Transport contract. Every producer of isImage was audited before adding isVideo, so no consumer silently treats a video as an image. The text/image narrowing in the mobile preview types was replaced with an explicit isMobileFilePreviewTextResult guard, which made the compiler point at each affected site.
  • SSH parity. The relay path (fs-handler-file-read, fs-handler-terminal-artifact) and the SSH stream reader carry isVideo too, so SSH worktrees are not silently degraded. Relays predating this simply omit the flag and fall back to the existing unavailable-binary message.
  • Cross-platform (macOS / Linux / Windows). No new keyboard shortcuts, shortcut labels, or platform branches. Paths use expo-file-system's Paths.cache on mobile and node:path's extname/join on desktop. The desktop and relay changes are plain Node fs/path work with no OS-specific behaviour, so the host side behaves identically on all three.
  • Mobile platforms. Verified on iOS. Android is not verified — expo-video uses ExoPlayer there and MP4/M4V/MOV are within its supported containers, but I had no Android device in this session. Worth a second pair of eyes before merge if that matters.
  • Agents, integrations, git providers. Nothing provider- or agent-specific is touched: this sits on the file-preview transport, below any agent or git-provider surface, and adds no provider branches.
  • Performance. The preview is a user-initiated tap, not a hot path. Video bytes ride the same single-shot base64 response images already use and stay bounded by the 10 MB cap; the staged cache file is written once per open and deleted on unmount, so nothing accumulates. No new work was added to list/scroll paths — the explorer row only gained an extension classification it already computed for images.
  • UI quality. Follows docs/STYLEGUIDE.md: the player pane uses existing mobile-theme tokens (colors.editorSurface) with no new hex values, and the loading state reuses the shared preview state/errorText styles. The mobile palette is dark-only, so there is no light-mode variant to check. Playback controls are the OS player's, so they match platform conventions by construction.
  • SSH / remote. The isVideo flag is carried through the relay and the SSH stream reader, so an SSH worktree previews video the same way a local one does; a relay predating this simply omits the flag and the client falls back to the existing message. Under SSH latency the preview shows the normal loading state until the bytes land — the same behaviour images already have — and the cap keeps the transfer bounded.
  • Flagged and changed. CodeRabbit caught a stat-then-read window on the previewable-binary path (pre-existing, but videos make it much easier to hit). Fixed in 22bfd68: the read now goes through a single handle and the cap is enforced against what that handle returns, rather than trusting an earlier stat of the path.

Security Audit

  • Path handling. No new path construction from user input. Previews still go through resolveFileExplorerPath + resolveAuthorizedPath, and terminal artifacts keep their existing grant checks (O_NOFOLLOW, canonical-path and stat-identity verification) — video reads reuse those paths unchanged.
  • Resource limits. Videos are bound by the existing 10 MB previewable-binary cap, now enforced against the opened handle instead of a prior stat (above), closing a TOCTOU that could have allocated an unbounded buffer.
  • Untrusted content. Video bytes are handed to the OS media frameworks, not parsed in-process. The staged cache file lives in the app's private cache directory, is named from a hash of the source path (no traversal from repository names), is overwritten rather than appended, and is deleted when the preview unmounts.
  • Dependency. Adds expo-video 55.0.19, a first-party Expo SDK package matching the project's Expo version. No new network access, no new permissions, and its config plugin is not enabled (no background playback or PiP).
  • No changes to auth, the IPC surface, command execution, or secrets handling.

Notes

  • Adds expo-video (SDK 55) — a dev-client rebuild is required for anyone running this branch.
  • Tested on iOS only. Android should work (ExoPlayer handles these containers) but I could not verify it here.
  • SSH worktrees go through the relay path, which carries isVideo too; that path was covered by unit tests rather than a live SSH host.
  • Videos above the 10 MB previewable-binary cap still report "File too large for mobile preview". Chunked streaming for larger files is a natural follow-up.
  • Tapping a video path in a terminal still does nothing: that goes through files.open, which opens a tab on the desktop, and the desktop editor has no video viewer. Left alone deliberately rather than opening a broken desktop tab.

X / Twitter: @Lironedev

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 87e30a34-657a-4082-aafd-6c221dc3e6f6

📥 Commits

Reviewing files that changed from the base of the PR and between 6b51ef4 and fd37338.

⛔ Files ignored due to path filters (1)
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (30)
  • mobile/app/h/[hostId]/session/[worktreeId].tsx
  • mobile/package.json
  • mobile/src/files/MobileFilePreviewBody.tsx
  • mobile/src/files/MobileFilePreviewScreen.tsx
  • mobile/src/files/MobileFileVideoPreview.tsx
  • mobile/src/files/file-tree.ts
  • mobile/src/files/mobile-file-explorer-row.tsx
  • mobile/src/files/mobile-file-preview-editability.ts
  • mobile/src/files/mobile-file-preview-navigation.test.ts
  • mobile/src/files/mobile-file-preview-navigation.ts
  • mobile/src/files/mobile-file-preview-request.test.ts
  • mobile/src/files/mobile-file-preview-request.ts
  • mobile/src/files/mobile-file-preview-response.ts
  • mobile/src/files/mobile-file-preview-styles.ts
  • mobile/src/files/mobile-file-tab-doc.ts
  • mobile/src/files/mobile-video-preview-cache-file.test.ts
  • mobile/src/files/mobile-video-preview-cache-file.ts
  • mobile/src/session/mobile-artifact-kind.test.ts
  • mobile/src/session/mobile-artifact-kind.ts
  • mobile/src/session/mobile-session-route-types.ts
  • src/main/providers/filesystem-provider-contract.ts
  • src/main/runtime/orca-runtime-files.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/main/ssh/ssh-filesystem-stream-reader.ts
  • src/relay/fs-handler-file-read.ts
  • src/relay/fs-handler-previewable-media.test.ts
  • src/relay/fs-handler-terminal-artifact.ts
  • src/relay/fs-handler-utils.ts
  • src/shared/runtime-types.ts
  • src/shared/video-file-extensions.ts
🚧 Files skipped from review as they are similar to previous changes (30)
  • src/main/ssh/ssh-filesystem-stream-reader.ts
  • mobile/src/files/file-tree.ts
  • mobile/src/files/mobile-video-preview-cache-file.ts
  • mobile/src/files/MobileFilePreviewScreen.tsx
  • src/shared/video-file-extensions.ts
  • mobile/src/files/mobile-file-preview-styles.ts
  • src/shared/runtime-types.ts
  • src/main/runtime/orca-runtime.test.ts
  • mobile/src/files/mobile-video-preview-cache-file.test.ts
  • mobile/src/session/mobile-artifact-kind.test.ts
  • mobile/package.json
  • mobile/src/session/mobile-session-route-types.ts
  • src/main/providers/filesystem-provider-contract.ts
  • mobile/src/files/mobile-file-preview-navigation.test.ts
  • src/relay/fs-handler-previewable-media.test.ts
  • mobile/src/files/mobile-file-preview-request.test.ts
  • mobile/app/h/[hostId]/session/[worktreeId].tsx
  • mobile/src/files/mobile-file-explorer-row.tsx
  • mobile/src/files/mobile-file-preview-navigation.ts
  • mobile/src/files/MobileFileVideoPreview.tsx
  • mobile/src/files/mobile-file-preview-request.ts
  • mobile/src/session/mobile-artifact-kind.ts
  • mobile/src/files/MobileFilePreviewBody.tsx
  • src/relay/fs-handler-utils.ts
  • src/relay/fs-handler-terminal-artifact.ts
  • mobile/src/files/mobile-file-preview-response.ts
  • src/relay/fs-handler-file-read.ts
  • mobile/src/files/mobile-file-preview-editability.ts
  • src/main/runtime/orca-runtime-files.ts
  • mobile/src/files/mobile-file-tab-doc.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The change adds native mobile video previews for MP4, M4V, and MOV files. Runtime and relay readers now return video metadata and Base64 content. Mobile preview requests validate and normalize video responses. Mobile screens stage video data in cache files and play it with Expo Video. File rows show video icons, while WebM and MKV remain unsupported. Tests cover classification, transport, normalization, caching, and playback-related flows.

Merge Risk: ⚪ Minimal · up to fd373

The PR adds mobile previews for supported video files while preserving existing size, authorization, and unsupported-format handling; no actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 23.68% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 38 functions across 28 files. (2 skipped: 1 unsupported, 1 too large.) Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding video previews to the mobile file viewer.
Description check ✅ Passed The description thoroughly explains the change, rationale, visual proof, testing, compatibility, security, and known limitations, despite missing some template headings.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2fdf175c-ac47-4e31-8e3b-3fa8ea48b69e

📥 Commits

Reviewing files that changed from the base of the PR and between 8854961 and a284e97.

⛔ Files ignored due to path filters (1)
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (30)
  • mobile/app/h/[hostId]/session/[worktreeId].tsx
  • mobile/package.json
  • mobile/src/files/MobileFilePreviewBody.tsx
  • mobile/src/files/MobileFilePreviewScreen.tsx
  • mobile/src/files/MobileFileVideoPreview.tsx
  • mobile/src/files/file-tree.ts
  • mobile/src/files/mobile-file-explorer-row.tsx
  • mobile/src/files/mobile-file-preview-editability.ts
  • mobile/src/files/mobile-file-preview-navigation.test.ts
  • mobile/src/files/mobile-file-preview-navigation.ts
  • mobile/src/files/mobile-file-preview-request.test.ts
  • mobile/src/files/mobile-file-preview-request.ts
  • mobile/src/files/mobile-file-preview-response.ts
  • mobile/src/files/mobile-file-preview-styles.ts
  • mobile/src/files/mobile-file-tab-doc.ts
  • mobile/src/files/mobile-video-preview-cache-file.test.ts
  • mobile/src/files/mobile-video-preview-cache-file.ts
  • mobile/src/session/mobile-artifact-kind.test.ts
  • mobile/src/session/mobile-artifact-kind.ts
  • mobile/src/session/mobile-session-route-types.ts
  • src/main/providers/filesystem-provider-contract.ts
  • src/main/runtime/orca-runtime-files.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/main/ssh/ssh-filesystem-stream-reader.ts
  • src/relay/fs-handler-file-read.ts
  • src/relay/fs-handler-previewable-media.test.ts
  • src/relay/fs-handler-terminal-artifact.ts
  • src/relay/fs-handler-utils.ts
  • src/shared/runtime-types.ts
  • src/shared/video-file-extensions.ts

Comment thread src/main/runtime/orca-runtime-files.ts Resolved
Comment thread src/main/runtime/orca-runtime.test.ts Resolved
@Lironeee

Lironeee commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Both actionable comments are addressed in 22bfd68, and the description now follows the repo template (Screenshots / AI Review Report / Security Audit sections filled in).

On the Docstring Coverage pre-merge warning (23.68% vs 80%): I would rather not act on that one. This repo's AGENTS.md asks for "Concise/Brief Non-obvious comments ONLY — do not explain the obvious, WHY not HOW", so adding docstrings to every small pure function to reach the threshold would work against the house style. The non-obvious decisions in this change are commented where they live: why video bytes are staged on disk rather than passed as a data URI, why the cache filename's extension matters, why WebM/MKV are excluded, and why the size cap is now enforced against the handle. Happy to add more if a maintainer disagrees.

Screenshots from the simulator run are coming in a follow-up comment.

@Lironeee

Lironeee commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
mobile/src/files/mobile-file-preview-styles.ts (1)

155-156: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove comments that restate the code.

  • mobile/src/files/mobile-file-preview-styles.ts#L155-L156: Remove this comment. contentFit="contain" and flex: 1 show the behavior.
  • mobile/src/files/mobile-file-explorer-row.tsx#L87-L88: Remove or reduce this comment. canPreviewMobileFileRow and classifyMobileArtifact show the behavior.

As per coding guidelines, “Comments must be concise, non-obvious, and brief—prefer one line; do not explain obvious behavior or walk through how the code works.”

Source: Coding guidelines

src/main/runtime/orca-runtime.test.ts (1)

3687-3708: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Cover .m4v and .mov at the runtime boundary.

Line 3687 tests only .mp4, although the shared allowlist also exposes .m4v and .mov. Add cases for those extensions and assert video/mp4 for .m4v and video/quicktime for .mov. This verifies every new MIME mapping through OrcaRuntimeService.

Based on the PR objective, the feature must support .mp4, .m4v, and .mov.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0296c167-4c7b-42d2-bd5c-1903c34ffd6f

📥 Commits

Reviewing files that changed from the base of the PR and between 8854961 and 22bfd68.

⛔ Files ignored due to path filters (1)
  • mobile/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (30)
  • mobile/app/h/[hostId]/session/[worktreeId].tsx
  • mobile/package.json
  • mobile/src/files/MobileFilePreviewBody.tsx
  • mobile/src/files/MobileFilePreviewScreen.tsx
  • mobile/src/files/MobileFileVideoPreview.tsx
  • mobile/src/files/file-tree.ts
  • mobile/src/files/mobile-file-explorer-row.tsx
  • mobile/src/files/mobile-file-preview-editability.ts
  • mobile/src/files/mobile-file-preview-navigation.test.ts
  • mobile/src/files/mobile-file-preview-navigation.ts
  • mobile/src/files/mobile-file-preview-request.test.ts
  • mobile/src/files/mobile-file-preview-request.ts
  • mobile/src/files/mobile-file-preview-response.ts
  • mobile/src/files/mobile-file-preview-styles.ts
  • mobile/src/files/mobile-file-tab-doc.ts
  • mobile/src/files/mobile-video-preview-cache-file.test.ts
  • mobile/src/files/mobile-video-preview-cache-file.ts
  • mobile/src/session/mobile-artifact-kind.test.ts
  • mobile/src/session/mobile-artifact-kind.ts
  • mobile/src/session/mobile-session-route-types.ts
  • src/main/providers/filesystem-provider-contract.ts
  • src/main/runtime/orca-runtime-files.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/main/ssh/ssh-filesystem-stream-reader.ts
  • src/relay/fs-handler-file-read.ts
  • src/relay/fs-handler-previewable-media.test.ts
  • src/relay/fs-handler-terminal-artifact.ts
  • src/relay/fs-handler-utils.ts
  • src/shared/runtime-types.ts
  • src/shared/video-file-extensions.ts

@Lironeee

Lironeee commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Both nitpicks addressed in 59fc42a:

  • The runtime preview test is now parameterized over .mp4, .m4v and .mov, asserting video/mp4 for the first two and video/quicktime for the third — so every entry in the shared allowlist is verified through OrcaRuntimeService, not just on the mobile and relay sides.
  • Dropped the two comments that restated the code they sat on. Kept a one-liner on the explorer row, since which binaries stay openable is not obvious from the call itself.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@Lironeee

Lironeee commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (92f759b) — conflicts resolved, PR is mergeable again.

Two things came out of the rebase:

  • mobile/app/h/[hostId]/session/[worktreeId].tsx conflicted because openMobileTerminalFileTap was replaced upstream by the useMobileFileTapHandlers hook. Took the new hook and kept only the video-preview import; no behaviour from either side was dropped.
  • src/main/ssh/ssh-filesystem-stream-reader.ts crossed the 300-line lint ceiling once main's growth landed on top of the isVideo threading. Rather than bump the limit, 3ce3ac2 collapses the four locals the metadata frame fills into a single result object, which also removes the duplicated optional-field spreads at both success paths.

Re-verified after the rebase: desktop typecheck clean, src/main/runtime + src/main/ssh + src/relay green (6312 pass; the two agent-exec-handler failures reproduce on clean main), mobile 3383 pass, oxlint clean repo-wide.

Also worth noting against the Remote Wire Compatibility guidance that landed in AGENTS.md since I opened this: isVideo is a new optional field on an existing RPC result, with no new stream opcode, so old clients and old relays are unaffected — they simply do not see the flag and fall back to the existing unavailable-binary message.

Lironeee and others added 3 commits August 22, 2026 12:25
Tapping an .mp4/.m4v/.mov in the mobile file explorer showed "unavailable"
because every previewable binary the host returned claimed isImage, and RN has
no player. Previews now report which media kind they carry, and mobile renders
video with expo-video's native player (controls, scrubbing, fullscreen).

The bytes are staged in the app cache before playback: AVPlayer and ExoPlayer
cannot open a base64 data URI, and the file extension is what AVPlayer picks its
demuxer from.

WebM/MKV stay on the unavailable-binary path since iOS cannot decode them, same
reasoning as the existing SVG exclusion. Videos above the 10MB previewable-binary
cap still report "File too large for mobile preview".

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Only .mp4 was exercised through OrcaRuntimeService, so the .m4v alias and the
.mov quicktime mapping were covered on the mobile and relay sides only. The test
also cleans up its temp workspace. Drops two comments that restated the code.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Threading isVideo through the stream reader pushed the file past the 300-line
lint ceiling once main's own growth landed. Collapse the four locals the
metadata frame fills into a single result object, which removes the duplicated
optional-field spreads at both success paths.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@Lironeee
Lironeee force-pushed the feat/mobile-video-preview branch from 3ce3ac2 to fd37338 Compare August 22, 2026 10:29
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@Lironeee

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (6b51ef4) — mergeable again. 931 commits had landed since the last rebase, and two of them overlapped this change in ways worth flagging:

  • The preview cap fix is now redundant. readFileExplorerPreview and the terminal-artifact preview both moved to readNodeFileWithinLimit / bounded handle reads with an explicit byte check upstream, which is the same hardening CodeRabbit asked for earlier in this PR. I dropped my version and kept yours, so the video path simply inherits it — the only remaining difference in that function is isImage: true becoming the ...media spread. That commit now carries just the test changes.
  • fs-handler-utils.ts import conflict from SearchResult moving to ../shared/code-search-types and the new ripgrep-availability helpers. Took main's imports and kept the video MIME import.

Re-verified on top of the rebase: desktop typecheck clean, src/main/runtime + src/main/ssh + src/relay 7793 pass / 0 fail (the two agent-exec-handler failures I mentioned earlier are fixed on main now), mobile typecheck clean and 3684 pass, oxlint clean repo-wide.

Still three commits, no behaviour change from the rebase. Happy to squash if you would prefer a single commit.

@nwparker

nwparker commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by merged mobile playback #26148, alongside desktop playback #26120. The mobile implementation supports both video and music, uses bounded authenticated chunk downloads, and includes rebuilt iOS simulator validation and visual proof. ChangJun Park, Lirone Levy, dupi, and John Cusack are credited with Co-authored-by trailers in both merge commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants