Skip to content

fix(mobile): the update-mobile wall opens the exact release - #23789

Merged
Jinwoo-H merged 7 commits into
mainfrom
mobile-wall-update-link
Sep 29, 2026
Merged

Jinwoo-H merged 7 commits into
mainfrom
mobile-wall-update-link

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​112 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​111
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​27 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25

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.52 and 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.ts sibling 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

  • Screen: known release → Get Orca 0.0.52 and 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.
  • Hook: returns the known release even when it equals the dismissed version; null when nothing is known. Web hook: returns null and imports only a type (kept as a source assertion because the page-closure pin does not count modules).
  • Five suites that load screens containing the wall stub the hook.

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
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Changes how the mobile app offers updates on the compatibility wall.

The PR appears safe to merge; no new actionable issue or outstanding previous finding remains.

Summary

The PR makes the mobile compatibility wall link to the known release when one is available, while retaining the platform-specific fallback when none is known.

  • A native hook reads the existing update-checker state; its web sibling returns no release so the page bundle does not carry the checker.
  • Screen and hook tests cover the release link, dismissal behavior, and fallback links.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Wall[Mobile compatibility wall] --> Runtime{Runtime}
  Runtime -->|Native| Checker[Known checker release]
  Runtime -->|Web page| Fallback[Store or releases link]
  Checker -->|Available| Exact[Exact release URL]
  Checker -->|Unavailable| Fallback
Loading

Reviews (3) · Last reviewed commit: "Merge origin/main into mobile-wall-updat..."

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 5a75855a-31a2-47b4-8cc2-c1910fb45b46

📥 Commits

Reviewing files that changed from the base of the PR and between 6870d4c and fecad49.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The 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 null. Tests cover release links, fallback links, and hook behavior.

Priority: ⬇️ Low

Merge Risk: 🟡 Moderate · up to 6870d

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 Review

Security architecture risk: 🟡 Moderate · up to 6870d

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

  • Medium · security · inferred: The native update-mobile wall promotes a URL from release metadata into its prominent external-navigation action without checking its destination authority. If that metadata is manipulated, blocked users can be directed away from the expected release or store destination.
Security review details

Security Blast Radius

  • inferred — The added destination path is limited to native users shown an update-mobile compatibility wall with a known release. Web walls retain fixed fallback links; desktop-update and refresh-bundle do not use the known release URL.

Security Findings and Attack Paths

  • inferred — A manipulated upstream destination field could reach the native opener when a blocked user taps the update action. This PR extends an existing update-URL path to the wall, including after home-card dismissal; upstream manipulation and an exploitable destination have not been established.

Trust Boundaries and Controls

  • observed — Update sources use fixed lookup endpoints and require a newer version; Android additionally requires a published release with an APK. Their parsed destination fields are strings, not origin- or scheme-restricted URLs.

Resilience and Maintainability Implications

  • inferred — Keeping the wall’s null fallback and the web hook’s null result contains the new destination dependency, but neither constrains a URL already present in native checker state.

Hardening Proposals

  • proposed — Define and enforce the permitted update-destination schemes and origins where release URLs enter or leave checker state, while retaining the fixed wall fallback for values that fail that policy.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning 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 just… 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 …
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly and concisely identifies the main change: the mobile update wall opens the exact known release.
Full details: Docstring Coverage

Explanation

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 check

Explanation

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 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

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.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Wall offers the exact release. ProtocolBlockScreen gains an optional mobileUpdate prop, and the update-mobile remedy uses it for Get 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. useBlockedShellAppUpdate returns useAppUpdateState().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.ts returns null and imports only a type, and is registered in web-overrides.json (the allowlist test requires exactly the .web.* files on disk).
  • Both wall renderers wired. HostProtocolGate.tsx and MobileWebShellScreen.tsx pass 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).

Pullfrog  | Fix it ➔ | View workflow run | Using 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

@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: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 5846bea6-bdd0-4fe6-9c73-71251e8f6054

📥 Commits

Reviewing files that changed from the base of the PR and between 3cfd786 and 6870d4c.

📒 Files selected for processing (13)
  • mobile/README.md
  • mobile/src/app-update/use-wall-app-update.test.ts
  • mobile/src/app-update/use-wall-app-update.ts
  • mobile/src/app-update/use-wall-app-update.web.ts
  • mobile/src/components/HostProtocolGate.test.ts
  • mobile/src/components/ProtocolBlockScreen.test.ts
  • mobile/src/components/ProtocolBlockScreen.tsx
  • mobile/src/mobile-web-shell/MobileWebShellScreen.test.tsx
  • mobile/src/mobile-web-shell/catch-all-page-route-states.test.tsx
  • mobile/src/mobile-web-shell/mobile-web-shell-keyboard-overlay-screen.test.tsx
  • mobile/src/mobile-web-shell/mobile-web-shell-safe-area-screen.test.tsx
  • mobile/src/mobile-web-shell/mobile-web-shell-screen-test-mocks.tsx
  • mobile/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.

@pullfrog pullfrog 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.

✅ 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 → useWallAppUpdate in the native hook, the .web.ts sibling, the web-overrides.json entry, and the source-assertion test; no stale references remain.
  • The wall now reads its own release. ProtocolBlockScreen calls useWallAppUpdate() directly, so the mobileUpdate prop and the wiring added in earlier commits are gone; HostProtocolGate.tsx and MobileWebShellScreen.tsx are back to their base form.
  • Tests re-pointed at the hook. ProtocolBlockScreen.test.ts drives a mocked hook; HostProtocolGate.test.ts now stubs the hook as null rather 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H merged commit 2d31941 into main Sep 29, 2026
26 checks passed
brennanb2025 added a commit that referenced this pull request Sep 29, 2026
…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.
@Jinwoo-H
Jinwoo-H deleted the mobile-wall-update-link branch October 1, 2026 05:19
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.

1 participant