Repository navigation
fix(mobile): the update-mobile wall opens the exact release - #23789
Conversation
When the in-app checker knows the newest release, the update-mobile wall offers "Get Orca <version>" and opens that release's page instead of the generic releases list or a hand-built App Store link. Mounting the wall runs the single-flight, bounded checker once. Dismissal is ignored here. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
The wall now takes the offered release as a prop and opens it through the external-link seam. A shell-only hook runs the checker once per update-mobile wall and supplies the release; MobileWebShellScreen, which no page route reaches, wires it. HostProtocolGate is in every page closure, so it stays unwired pending a ruling. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
… check The hook is the one module whose behaviour differs by platform: the native file runs the checker, the .web.ts sibling offers nothing, so both HostProtocolGate and MobileWebShellScreen wire it the same way and the page closure never carries the checker. A remount checks only when no release is known and the last check is absent or over the retry interval old, since each check is an unauthenticated GitHub call. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
The hook's own throttle read lastCheckedAt, which moves only on success, so after a failed lookup every wall remount looked up again, and before preferences loaded a cold-start wall looked up despite a fresh stored result. The checker already owns the cadence: checkIfDue waits for the stored state and checks only past the retry or daily interval. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
The started checker's own timer, cold-start and foreground paths already run every due check, so a check requested by the wall could never be due. The hook now only returns the known release; the checker is back to main. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe compatibility wall now uses a known mobile app release’s version and URL for its update action. If no release is known, it retains the platform-specific App Store or GitHub Releases destination. Desktop update links remain unchanged. The native hook returns the available update, while the web hook returns Priority: ⬇️ Low Merge Risk: 🟡 Moderate · up to The update button now opens URLs supplied by release responses rather than only fixed store or releases links. Validate those destinations before merging to prevent a malformed or compromised response from redirecting users. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to The update button can now open a release destination supplied through the app’s update feed rather than only a fixed store or releases page. That makes the feed’s destination trustworthy especially important for users blocked by the compatibility wall. The web wall retains its previous links. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 16 files. (2 skipped: 2 unsupported.) Full details: Description checkExplanation The description clearly explains the behavior change and lists automated tests, but it omits several required template sections, including ELI5, Why, Linked Issue, Visual Proof or an explicit N/A justification, AI Disclosure, Review, Agent skill upstream boundary, Notes, and the Checklist. Resolution Complete the missing template sections. Add the linked issue, provide visual proof or write N/A with a reason, document the rationale in Why, complete the testing and checklist items, address AI Disclosure and Review, and confirm the Agent skill upstream boundary and Notes sections. ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Wall offers the exact release.
ProtocolBlockScreengains an optionalmobileUpdateprop, and theupdate-mobileremedy uses it forGet Orca <version>plus the release URL; with no known release the per-platform fallback (App Store iOS / GitHub Releases Android) is unchanged. - New native hook reads the checker without triggering a check.
useBlockedShellAppUpdatereturnsuseAppUpdateState().available, deliberately ignoring home-card dismissal; the checker's own cadence already covers the wall. - Page sibling keeps the checker out of the OTA bundle.
use-blocked-shell-app-update.web.tsreturnsnulland imports only a type, and is registered inweb-overrides.json(the allowlist test requires exactly the.web.*files on disk). - Both wall renderers wired.
HostProtocolGate.tsxandMobileWebShellScreen.tsxpass the hook's value; both call the hook unconditionally before their early returns. - Tests. Screen label/URL for known vs. unknown release per platform, the hook's dismissal-ignoring behavior, the web sibling's type-only import invariant, the host gate hand-off, and hook stubs in the five suites that load wall-bearing screens.
I read the full diff, traced both production call sites of ProtocolBlockScreen, and confirmed the page closure reasoning: app/h/_layout.tsx imports HostProtocolGate, so each page route picks up only the .web.ts sibling, never the checker. I also ran the changed unit suites (28 + 50 pass), mobile-web-app-web-overrides.test.mjs (5 pass), the mobile app typecheck, the tests-typecheck ratchet (OK), and oxlint on the changed files (clean).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
The .web.ts sibling alone keeps the page closure clean, so the screen calls the hook itself and the optional prop, the gate wiring and the shell wiring go. HostProtocolGate and MobileWebShellScreen are back to their base content. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 5846bea6-bdd0-4fe6-9c73-71251e8f6054
📒 Files selected for processing (13)
mobile/README.mdmobile/src/app-update/use-wall-app-update.test.tsmobile/src/app-update/use-wall-app-update.tsmobile/src/app-update/use-wall-app-update.web.tsmobile/src/components/HostProtocolGate.test.tsmobile/src/components/ProtocolBlockScreen.test.tsmobile/src/components/ProtocolBlockScreen.tsxmobile/src/mobile-web-shell/MobileWebShellScreen.test.tsxmobile/src/mobile-web-shell/catch-all-page-route-states.test.tsxmobile/src/mobile-web-shell/mobile-web-shell-keyboard-overlay-screen.test.tsxmobile/src/mobile-web-shell/mobile-web-shell-safe-area-screen.test.tsxmobile/src/mobile-web-shell/mobile-web-shell-screen-test-mocks.tsxmobile/web-entry/web-overrides.json
🚧 Files skipped from review as they are similar to previous changes (1)
- mobile/README.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta since the prior pullfrog review at 3cfd786 — a behavior-preserving rename and data-flow refactor of the release offer.
- Renamed the hook end to end.
useBlockedShellAppUpdate→useWallAppUpdatein the native hook, the.web.tssibling, theweb-overrides.jsonentry, and the source-assertion test; no stale references remain. - The wall now reads its own release.
ProtocolBlockScreencallsuseWallAppUpdate()directly, so themobileUpdateprop and the wiring added in earlier commits are gone;HostProtocolGate.tsxandMobileWebShellScreen.tsxare back to their base form. - Tests re-pointed at the hook.
ProtocolBlockScreen.test.tsdrives a mocked hook;HostProtocolGate.test.tsnow stubs the hook asnullrather than threading a resolved release.
The checker is a module-level singleton (app-update-runtime.ts:33), so moving the useSyncExternalStore call from the renderers into the screen changes only when the tree subscribes, not when a check runs — the wall still reads the latest snapshot when it mounts. I re-ran the four core changed suites (67 pass) and the web-overrides allowlist test (5 pass); all green. The prior greptile P1 was withdrawn by greptile and the one prior pullfrog review found nothing, so this is clean.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…3789, #23812, #23852) into brennanb2025/codex-home-single-writer #23744 moves every agent's folder pre-trust into the PTY spawn hook (and the structured Codex chat create), removing Codex's launch-prep and resume-prep trust writes. markCodexProjectTrusted now takes the config files to write. Conflicts: - agent-trust-presets.ts: #23744's configFiles signature and nested lane acquisition, with this branch's lane rationale (hook installs read and rewrite across awaits); main's "capture->restore window" wording described the grant snapshot this branch removed. - agent-trust-write-deadline.ts: the Codex writer waits only on managed-home installs' inline grant; the real-home background approval holds no lane. #23744's SSH/SFTP writer is gone, so it is no longer named; its 1.5 s short deadline is kept. - codex-trust-config-concurrent-launch.test.ts: this branch's tests (a launch's write lands while a grant session runs; the renamed sibling-failure case) with #23744's new call signature. Outside the conflicts: codex-launch-during-real-home-grant.test.ts passed launchAgent/workspacePath into launch prep, which #23744 removed; its launch helper now runs launch prep and then applyAgentWorkspaceTrust, as the spawn builder does, so it still proves a launch and its project trust land while the real-home approval hangs.

What
When the phone app is too old for the desktop's mobile workspace, the compat wall told the user to update Orca Mobile and sent Android users to the generic GitHub releases list, where desktop releases bury the APK, and iOS users to a hand-built store link.
Since #23755 the app already knows the newest installable release. On that wall the button now reads
Get Orca 0.0.52and opens that release's own page on Android, or Apple's listing URL on iOS. Dismissal of the home card is ignored here: the release is the way past the wall, not a nudge the user declined. When no release is known yet, today's label and link stay.Where the knowledge lives. The wall screen calls a one-line hook,
useWallAppUpdate, which returns the checker's known release. It triggers no check: the checker's own cadence (cold start, foreground, its timer) already covers every moment a wall could ask for one, and a wall-time check would only add rate-limit exposure. The wall is inside the OTA page bundle's module closure and the page must never carry the checker, so the hook's.web.tssibling returns null and imports only a type; the wall inside the page keeps the store or releases link.The other two walls (desktop too old, refetch the bundle) and the body copy are unchanged. The tap goes through the screen's existing external-link seam. The checker, the host gate and the web-shell screen are untouched.
Closure. Measured on all eight page routes: each gains exactly one module, the web sibling, and loses none. No checker module enters the page.
Tests
Get Orca 0.0.52and the tap opens its URL, iOS and Android (red before:expected ... to contain 'Get Orca 0.0.52'); no release → today's label and URL per platform.