Repository navigation
Description
Problem
Orca Mobile is useful for monitoring and driving agent sessions away from the desktop, but agent-generated files are hard to inspect from the phone.
A common workflow is:
- Start or continue an agent session from Orca Mobile.
- The agent captures or generates an artifact, such as a screenshot, visual QA output, HTML report, or source file.
- The terminal output prints a path like
artifacts/screenshot.pngorpublic/report.html. - On mobile, the user wants to tap that path and inspect the artifact immediately.
Today, tapping a file path from mobile terminal output is not direct enough for this workflow. The app asks the desktop to open the file as a session tab and then waits for tab state to sync back. For screenshots/images in particular, this makes mobile review unreliable and hard to use when the desktop is not in front of the user.
User impact
This blocks a core remote-agent loop:
- Ask the agent to create or inspect a UI.
- Agent writes a screenshot or image artifact.
- User needs to verify the image from the phone before deciding what to ask next.
Without mobile preview, the user has to return to the desktop or rely on textual descriptions, which defeats the purpose of using Orca Mobile while away from the computer.
Expected behavior
When a user taps a terminal file path in Orca Mobile:
- The host should still resolve and authorize the path against the active worktree.
- Text/code files should open in the mobile file preview screen.
- Raster images should open in the mobile image preview path via
files.readPreview. - HTML files should preserve the existing browser preview behavior.
- Missing files, directories, and paths outside the worktree should remain ignored/unopenable.
Proposed implementation
PR #6529 implements this by reusing the existing mobile file preview stack instead of introducing a new file reader:
- Resolve terminal paths through the existing host RPC,
files.resolveTerminalPath. - Route non-HTML files directly to the mobile file preview route.
- Render images through the existing
files.readPreviewbase64 image flow. - Preserve HTML browser behavior and normalize host paths with the shared file URI helper for POSIX, Windows drive paths, and UNC paths.
- Extend the mobile mock server so this can be exercised with a realistic terminal artifact path:
artifacts/screenshot.png.
Validation in PR
The PR includes tests for:
- Source/text file routing.
- Image file routing.
- HTML browser routing.
- Missing/directory/outside-worktree ignored paths.
- Windows and UNC HTML file URL formatting.
- Mock server resolution and image preview for
artifacts/screenshot.png.
It also includes manual-ish protocol validation using the mock desktop server: encrypted WebSocket handshake, files.resolveTerminalPath, and files.readPreview for a generated screenshot path.
Related PR
Implemented in #6529.
Activity
AmethystLiang commentedon Aug 8, 2026
Related mobile HTML open/preview tracking: #13144