Skip to content

fix(mobile): say which Orca to update when a screen is on neither the phone nor the host - #47609

Merged
AmoabaKelvin merged 1 commit into
mainfrom
fix-mobile-missing-screen-says-update
Nov 23, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
fix-mobile-missing-screen-says-update

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Sometimes the phone opens a screen that neither the phone app nor Orca on the computer can show. The phone used to say "This workspace screen is not available on this host." with no next step. Now it says which Orca to update.

Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​19 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11

What Changed

What the user saw: someone on an older phone build opened a group room and got "This workspace screen is not available on this host." That build came out before 2026-11-18 (iOS 0.0.67 or earlier, Android 0.0.65 or earlier). It has no screen for /h/<host>/group/<id>. Desktop v1.4.265 to v1.4.271 serve a host page whose group list sends the phone to that path. Those desktops don't serve the room as a page either. So the phone's catch-all route (app/h/[hostId]/[...page]) found no screen on either side and showed the dead end.

That exact pair is already fixed on main by #47361, once a desktop ships it. #47361 makes the room a page route, and the old phones' catch-all opens it: they already have every grant the room needs (navigate, clipboard, the three media verbs). Only the group route differs between the route tables of those phone builds and main.

What this PR changes, for the cases that remain:

  • The host has the screen, the phone can't run it. The catch-all now shows the existing Update Orca Mobile wall (page-route-grant-missing). Before, it showed the dead end. This is the case where a newer computer serves a screen that needs a grant this phone doesn't have yet.
  • Neither side has the screen. The shell's route-unavailable state now says: "This screen needs a newer Orca. Update Orca Mobile and Orca on this host, then try again." The phone can't tell which side is behind. Either one can be: a newer page naming a native screen this phone lacks, or a phone that expects a page the host doesn't serve yet.

Named routes (appNamesRoute: true) behave as before. The default copy stays for malformed route params, where updating wouldn't help.

Mechanism: onManifestRead in mobile-web-shell-session.ts now always works out the refusal verdict. The catch-all uses it only for page-route-grant-missing, so an unlisted route never blames the desktop. ShellStateScreen passes the new copy to PageRouteUnavailableScreen.

Pattern followed: the existing remedy mapping in ProtocolBlockScreen.tsx:31 (page-route-grant-missing → update the phone) and the shell's own failure copy in ShellStateScreen.tsx:20.

Why

An old binary's text can't be changed, so the fix for the reported phones is on the host side (#47361). This PR makes current and future phones say what to do the next time the two sides disagree about who owns a screen. Two alternatives were ruled out. Comparing app and desktop versions doesn't work because their numbers don't share an order. Making the page check the phone's route table before handing off would add a new protocol field with no second caller.

Linked Issue

None. Reported to Kelvin on 2026-11-23 from an older phone release.

Visual Proof

Page harness: the real page bundle in Chromium with a shell double, 402×874 at 2x. The same PageRouteUnavailableScreen component renders on the page's catch-all. "After" passes the shell's new message.

Light Dark
Before
After

The Update Orca Mobile wall is the existing ProtocolBlockScreen, unchanged.

Testing

  • Ran the session reducer on main's route table and on v1.4.271's real one (mobile-web-page-routes.mjs at the tag), before and after the change:

    • catch-all group room, v1.4.271 host: route-unavailable, before and after (the reported state; this PR changes only its copy)
    • catch-all group room, main host: fetching, so the page opens (feat(mobile): attach photos to posts in a group room #47361)
    • named group route, v1.4.271 host: wall:page-route-unlisted, unchanged
    • catch-all route the host lists with a grant this shell lacks: route-unavailable before, wall:page-route-grant-missing after
    • catch-all route nobody has: route-unavailable, unchanged
  • Checked with git ls-tree that the only route file missing from the 0.0.6x phone builds is group/[groupId].tsx, and that their shell grants cover the room page's.

  • pnpm check:changed and the mobile typecheck pass.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

No test added: the session reducer has no suite after #46786, and the change is one condition plus copy.

Performance

None, because this only runs once when a page manifest is read for a route the host doesn't serve.

Risk

Level: Low

The riskiest part is the catch-all walling a route it used to call unavailable. That happens only when the host lists the route and this phone lacks a required grant, and then updating the phone is the fix. Named routes are untouched. A plain revert backs it out.

AI Disclosure

Review

Review loop, one round, both reviewers clean.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Mobile only; no host, SSH or platform-specific code. New string is English-only with a t() default, like recent mobile copy.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…host has a screen

A screen the host lists but this app can't grant now shows the Update
Orca Mobile wall instead of a dead end, and a screen neither side has
says to update Orca Mobile and Orca on the host.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The session now checks refusal verdicts for unrenderable routes regardless of whether the app names the route. It shows a wall for named routes or missing page-route grants; other cases use ROUTE_UNAVAILABLE. The route-unavailable screen now displays a translated message instructing users to update Orca Mobile and Orca on the host.

Merge Risk: Minimal · up to bd213

The change tells users which Orca to update when a screen is unavailable, and it is limited to mobile shell route classification and one message. No concrete merge-blocking risk was found. No test was added, and the session reducer has no test suite.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: when a screen is on neither the phone nor the host, the message now says which Orca to update. The change matches the summary: the catch-all shows the Update Orca Mobi…
Description check Passed The description follows the template closely. It has ELI5, What Changed (before and after, plus mechanism), Why (with alternatives considered), Visual Proof (before and after images in light and dark …
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.
Full details: Title check

Explanation

The title names the main change: when a screen is on neither the phone nor the host, the message now says which Orca to update. The change matches the summary: the catch-all shows the Update Orca Mobile wall for page-route-grant-missing, and the route-unavailable copy tells users to update Orca Mobile and Orca on the host. The title uses the conventional fix(mobile) format and is specific enough for history scanning.

Full details: Description check

Explanation

The description follows the template closely. It has ELI5, What Changed (before and after, plus mechanism), Why (with alternatives considered), Visual Proof (before and after images in light and dark themes), Testing with checkboxes, Performance, Risk with level, AI Disclosure heading, Review, the upstream boundary checkbox, Notes, and Checklist. The Linked Issue section says 'None' and gives no 'Fixes #' reference. The template says an issue should always exist for outside contributors, so this is a gap. The 'pnpm lint/typecheck/test/build' checklist item is unchecked, but the Testing section says pnpm check:changed and the mobile typecheck pass. The Performance line is complete. The AI Disclosure section is empty. The Review section is brief but filled in.

Resolution

Confirm whether a linked issue exists. If the author is an outside contributor, add an actual issue reference under Linked Issue (for example, Fixes #NNN) rather than None. Fill in the AI Disclosure section or state that no AI tools were used. Either check the final pnpm checklist item once CI or local runs pass, or note that CI covers it.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent 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: e8d5a136-f591-48e8-9ea1-271cd985b0cf
Commits

Reviewing files that changed from the base of the PR and between e9d26e2 and bd21381.

Files selected for processing: 4

  • mobile/src/i18n/locales/en.json
  • mobile/src/mobile-web-shell/presentation/ShellStateScreen.tsx
  • mobile/src/mobile-web-shell/session/mobile-web-shell-session-contract.ts
  • mobile/src/mobile-web-shell/session/mobile-web-shell-session.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@AmoabaKelvin
AmoabaKelvin merged commit 3b74898 into main Nov 23, 2026
27 checks passed
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