Repository navigation
Conversation
Walkthrough
Priority: Severity of issue fixed: Medium Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ff960098-fd04-4dcf-a142-21e1712e1f61
Files selected for processing: 13-
config/scripts/mobile-web-app/mobile-web-app-chat-attachments-render.test.mjsmobile/src/session/MobileNativeChatImageAttachment.test.tsxmobile/src/session/MobileNativeChatImageAttachment.tsxmobile/src/session/MobileNativeChatOverlay.tsxmobile/src/session/MobileNativeChatProse.tsxmobile/src/session/MobileNativeChatRowOverlaysHost.test.tsxmobile/src/session/MobileNativeChatRowOverlaysHost.tsxmobile/src/session/mobile-native-chat-image-preview.tsmobile/src/session/mobile-native-chat-message-styles.tsmobile/src/session/mobile-native-chat-row-overlays.tssrc/main/runtime/mobile-rpc-allowlist.test.tssrc/main/runtime/runtime-rpc/runtime-rpc-mobile-agent-session-methods.tssrc/main/runtime/runtime-rpc/runtime-rpc-mobile-method-routing.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1c554d34-b2cd-4f68-a7ca-311ffd74434e
Files selected for processing: 2-
mobile/src/session/MobileNativeChatOverlay.tsxsrc/main/runtime/runtime-rpc/runtime-rpc-mobile-method-routing.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
| it('reads chat attachment bytes from the execution host that owns their store', () => { | ||
| expect(MOBILE_RPC_METHOD_ROUTES.get('agentSessionAttachment.read')).toBe('execution-host') |
There was a problem hiding this comment.
🔎 Supported by static analysis
-
Script executed:
set -eu printf '%s\n' '--- package and config references ---' rg -n -F --glob 'package.json' --glob 'pnpm-workspace.yaml' --glob '.github/**' --glob 'config/**' -e 'check:changed' -e 'maxWorkers' -e 'required' -e 'changed-files' . || test "$?" -eq 1 printf '%s\n' '--- changed file and relevant diff ---' git diff --no-ext-diff --unified=40 5a973e29a73f6b466d497c4214184bcd578b92cd 2a51385ac2af96708dd70f8fe47e37d3e92b1d9a -- src/main/runtime/runtime-rpc/runtime-rpc-mobile-method-routing.test.ts printf '%s\n' '--- current file ---' nl -ba src/main/runtime/runtime-rpc/runtime-rpc-mobile-method-routing.test.ts | sed -n '1,90p'
Repository: stablyai/orca
Length of output: 45646
Script executed:
set -eu printf '%s\n' '--- package script ---' sed -n '1,40p' package.json printf '%s\n' '--- check-changed implementation outline and source ---' if command -v ast-grep >/dev/null 2>&1; then ast-grep outline config/scripts/check-changed.mjs --view expanded; fi nl -ba config/scripts/check-changed.mjs | sed -n '1,260p' printf '%s\n' '--- focused references ---' rg -n -F --glob '.github/workflows/*.yml' --glob '.github/workflows/*.yaml' --glob 'AGENTS.md' --glob 'docs/**/*.md' --glob 'config/scripts/*.mjs' -e 'check:changed' -e 'check-changed.mjs' -e 'changed-files gate' -e 'changed files' . || test "$?" -eq 1
Repository: stablyai/orca
Length of output: 17709
Script executed:
set -eu printf '%s\n' '--- package script ---' sed -n '1,40p' package.json printf '%s\n' '--- check-changed implementation ---' nl -ba config/scripts/check-changed.mjs | sed -n '1,300p' printf '%s\n' '--- focused references ---' rg -n -F --glob '.github/workflows/*.yml' --glob '.github/workflows/*.yaml' --glob 'AGENTS.md' --glob 'docs/**/*.md' --glob 'config/scripts/*.mjs' -e 'check:changed' -e 'check-changed.mjs' -e 'changed-files gate' -e 'changed files' . || test "$?" -eq 1
Repository: stablyai/orca
Length of output: 18234
Rerun the required changed-files gate before merge.
AGENTS.md requires pnpm check:changed --maxWorkers=2 before handoff. The earlier run failed, and the later fix was validated only by a narrower suite.
pnpm check:changed --maxWorkers=2
Source and validation
Includes upstream main through
1187abdbc2554f69e281868a83f4ab0ca045276b. The base refresh preserves this PR's feature scope and passed ordinary commit hooks. Validation and visual evidence below retain their stated source revisions. Complete upstream CI remains pending.Known upstream base issue: Node typechecking at this main revision reports
switchedBuildmissing inworkspace-layout-paired-desktop.test.ts:50. This PR retains that upstream file unchanged; the layout-test repair is separate from its feature scope.ELI5
An older picture in a mobile chat could appear as a computer's file path. This change asks the computer that owns the chat for that saved picture, shows a preview, and opens the existing full-size viewer when tapped.
What Changed
agentSessionAttachment.readon the owning execution host; retain device-loadable previews.Why
A phone cannot load a path on another machine. Using the selected chat owner's reader preserves remote ownership and the store's existing path, symlink, image, and reply-size checks. It also avoids adding a parallel transfer or viewer mechanism.
Linked Issue
Fixes #33554.
Related #29632: this fixes stored-image resolution; its compact gallery, layout, and swipe-navigation proposal remains open. Refs #33357.
Visual Proof
Same synthetic English message, stored path, two-color 320×240 PNG, and 390×844 viewport in both captures. The image-ref intentionally has no alt text so the original path placeholder is visible. These are actual React Native Web components in headless Chromium under the shipped webshell CSP, with a controlled synthetic RPC transport.
Before loads only the immutable
MobileNativeChatProse.tsxfrom parent8b8d343ef0via an esbuild loader in the same fixture; the surrounding message, styles, and data stay identical. After uses accepted commit17bf536b3fwithout a source override. No DOM text or raster replacement was used.The fixture asserts path placeholder/no image/no RPC before; decoded natural dimensions 320×240, no visible path, one exact attachment-read request, full viewer, Close, and no page errors after. All uploaded images were viewed and contain only synthetic data. Public asset provenance: synthetic evidence comment. This is browser evidence, not physical-device or live-paired-host validation.
Testing
The direct-preview fallback follow-up at
a2dcc6a0passed 82 tests across five mobile image/message/Android/overlay suites, both mobile typechecks, all 11 selectedcheck:changedchecks and normal hooks. The original host attachment/store/routing validation passed 93 tests, and the published CSP fixture verifies decoded thumbnails and the existing viewer.The earlier full aggregate gate was not green: it included unrelated PTY timeout failures and a sandbox-dependent macOS preflight. The stale upload-only expectation was corrected and its suite passed. A fresh complete repository gate is still pending in upstream CI; the source refresh does not represent it as passed.
Full repository lint, typechecks, tests and builds remain assigned to upstream PR CI. Focused checks and component captures do not establish physical-device or live-provider acceptance.
AI Disclosure
Implemented and reviewed with OpenAI Codex assistance.
Review
Owning-host routing, bounded store reads, symlink/image/reply-size checks and stale reply/viewer fences remain in effect. This reuses the store-wide attachment reader; it adds no server-side per-session ACL or arbitrary-file reader. Nonstore paths retain their placeholders.
Agent skill upstream boundary
Checklist