Repository navigation
fix(mobile): say which Orca to update when a screen is on neither the phone nor the host - #47609
Conversation
…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.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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.
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:
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.Named routes (
appNamesRoute: true) behave as before. The default copy stays for malformed route params, where updating wouldn't help.Mechanism:
onManifestReadinmobile-web-shell-session.tsnow always works out the refusal verdict. The catch-all uses it only forpage-route-grant-missing, so an unlisted route never blames the desktop.ShellStateScreenpasses the new copy toPageRouteUnavailableScreen.Pattern followed: the existing remedy mapping in
ProtocolBlockScreen.tsx:31(page-route-grant-missing→ update the phone) and the shell's own failure copy inShellStateScreen.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
PageRouteUnavailableScreencomponent renders on the page's catch-all. "After" passes the shell's new message.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.mjsat the tag), before and after the change:route-unavailable, before and after (the reported state; this PR changes only its copy)fetching, so the page opens (feat(mobile): attach photos to posts in a group room #47361)wall:page-route-unlisted, unchangedroute-unavailablebefore,wall:page-route-grant-missingafterroute-unavailable, unchangedChecked with
git ls-treethat the only route file missing from the 0.0.6x phone builds isgroup/[groupId].tsx, and that their shell grants cover the room page's.pnpm check:changedand 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
Notes
Mobile only; no host, SSH or platform-specific code. New string is English-only with a
t()default, like recent mobile copy.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)