Repository navigation
fix(mobile): declare externalLink on the two page routes that reach the protocol wall (OTA phase C follow-up) - #22113
Conversation
…reaches The grant call-site census carried an exact allowance for the two routes that reach the shared protocol wall's `openExternalLink` without declaring `externalLink`. Removing it makes the census enforce the declaration instead of recording the gap; it now names both routes. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Both routes render the shared layout's `HostProtocolGate`, whose `ProtocolBlockScreen` opens its Update Orca link through `openExternalLink`, and neither declared the grant: the tap posted a notify the shell refuses, with nothing on screen. The census measures one call site in each closure, `src/components/ProtocolBlockScreen.tsx`. Repinned by measurement, with the manifest change named: the route-list pin, and the handed-off hop census, which goes 23 rows to 19. The four rows that leave are these two routes into the explorer and its preview — all four now declare the same four grants, so a tapped file stays in the document instead of costing a native frame and a second bridge session. A new case asserts that coverage, so the four absences are load-bearing. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe host and agent-history mobile routes now declare Priority: ⬇️ Low Severity of issue fixed: Low 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the technical change, rationale, tests, commits, and gate results, but it omits most required template sections, including ELI5, What Changed, Why, Linked Issue with a Fixes reference, Visual Proof or N/A, Testing checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. Resolution Rewrite the description using the repository template. Add all required headings and content. Include the linked issue in the required format, provide visual proof or state N/A with a reason, document manual and automated testing, complete the review and compatibility sections, and check or explain each checklist item.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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
externalLinkgranted on the two wall-reaching routes./h/[hostId]and/h/[hostId]/agent-history/[worktreeId]inconfig/scripts/mobile-web-page-routes.mjsnow declareexternalLink, soHostProtocolGate'sProtocolBlockScreenUpdate Orca tap reachesopenExternalLinkinstead of posting a notify the shell refuses with nothing on screen.externalLinkalready exists inMOBILE_WEB_SHELL_GRANTS(page-route-policy.ts:20), so negotiation is unaffected.- The allowance is gone.
mobile-web-app-page-grant-call-sites.test.mjsdropsKNOWN_UNDECLAREDand asserts[]for every grant row, so any future undeclared call site reds. I confirmed this can fail — striking the grant re-adds<route> needs externalLink. - Hop census repinned by measurement.
HANDED_OFFgoes 23→19, removing the four/h/[hostId]and agent-history hops into the explorer and its preview, now that all four routes declare the same four grants. A new case asserts that coverage so the absences stay load-bearing. - Pins resynced.
EXPECTED_PAGE_ROUTESand the handoff render fixture'sPAGE_ROUTE_GRANTScarry the new grant.
I ran pnpm test config/scripts/mobile-web-page-route-hop-coverage.test.mjs config/scripts/mobile-web-page-routes.test.mjs (pass); the call-site census and render tests describe.skip locally without mobile/node_modules and run in CI's mobile_web_app job.
ℹ️ The layout has a second externalLink opener the census cannot see
The comments rewritten here now describe the protocol wall as the route's opener. That is what the census measures, but the shared sidebar's New Workspace source field is also an externalLink consumer on every /h route — host-screen-overlays.tsx passes openExternalUrl={openExternalLink} as a prop down to SmartWorkspaceSourceField.tsx:82, which calls it. moduleReachesGrantRow only counts a direct openExternalLink(...) call, so this site goes unreported. Both openers are now covered by the same grant, so nothing is broken; the note is only that the "single opener" phrasing is less complete than the comment it replaced.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Summary
Two page routes reached the external-link wall without declaring the grant.
app/h/_layout.tsxwraps every/hroute inHostProtocolGate, whoseProtocolBlockScreenopens its Update Orca link throughopenExternalLink./h/[hostId]and agent-history did not declareexternalLink, so that tap posted a notify the shell refuses, with nothing on screen to say why. The grant call-site census recorded the gap as an exact allowance (KNOWN_UNDECLARED, from C7.7) rather than enforcing it.Removing the allowance reds the census, naming each route; declaring the grant greens it. The census measures one call site in each closure,
src/components/ProtocolBlockScreen.tsx.Repinned by measurement: the route-list pin, and the handed-off hop census, which goes 23 rows to 19. The four rows that leave are these two routes into the file explorer and its preview: all four routes now declare the same four grants, so a tapped file stays in the document instead of costing a native frame and a second bridge session. A new case asserts that coverage, so the four absences are load-bearing rather than indistinguishable from an unregistered route.
No wire change, no golden movement, no closure pin moved (the census finds no new module).
Pre-existing prose left alone, filed: the session entry's comment says "Fourteen grants" where the list holds 13 and "the four audio verbs" where there are three (since #22072).
Commits
99809972adKNOWN_UNDECLAREDallowance from the grant call-site censuse1b5abb32aexternalLinkon/h/[hostId]and agent-history; route-list and hop pins repinned by measurementf1de85f822origin/main(15472cd4c6), no conflictsGates
Lane gates all exit 0 on
f1de85f822(config/scripts249 passed; mobile 804 files / 8,965 passed). Lead gate at base15472cd4c6below.Lead gate on
f1de85f822against15472cd4c6: all lint gates 0;config/scripts249 files passed; mobile 804 files passed; no machine paths.