Skip to content

fix(apps): close app pages a user may not open and isolate slow app columns - #644

Merged
RentnerKev merged 1 commit into
mainfrom
rentner/fix/app-extension-hardening
Nov 30, 2026
Merged

RentnerKev merged 1 commit into
mainfrom
rentner/fix/app-extension-hardening

Conversation

@RentnerKev

Copy link
Copy Markdown
Member

Summary

Part of closing #625. I checked every acceptance criterion against code and tests; these two gaps needed code.

App pages by URL (#625: pages only for permitted users)

The page route apps.$installationId.{-$routeId} only checked that an app with extensions had some page for the user. Once a user could open one page, every declared route of the app opened by URL, including the entry route of a page whose permission the user lacks.

  • The app summary now carries deniedRoutes: the entry routes of the app's pages the user may not open, which no page they may open shares. The route refuses them.
  • An app with extensions now opens at the first page the user may open instead of overview.
  • Other routes of the app stay reachable from inside its pages, so in-app navigation is unchanged.
  • The decision moved from the route component into appPageRoute (web/src/lib/AppUi/page-access.ts), which is now unit-tested.

Operations stay permission-checked on the server either way; this closes the page itself.

Host table columns (#625: malformed, late or oversized answers)

readAppHostTables asked all apps one after another under the request's 10 s budget. One slow app could run the whole request out, and then every app's column showed as unavailable.

  • Apps now answer side by side, each within its own 6 s deadline (APP_HOST_TABLE.appTimeoutMs) inside the request.
  • A late or oversized answer now leaves only that app's columns unavailable. Only the end of the whole request fails the table.

Tests

  • New page-access.test.ts: first permitted page, in-app routes, a denied page route by URL, no page or a search slot for an app with extensions, slot-only apps.
  • extensions.test.ts: deniedRoutes with and without the page key.
  • ui-host-table.test.ts: one app that never answers and one whose answer is too large leave only their own columns unavailable, while a third app's column arrives well inside the request. This test fails without the change.
  • Ran locally:
    • bun run typecheck;
    • oxlint, both configs, on the changed files;
    • bun test --isolate for lib/AppUi, server/AppRuntime, features/AppUi, layouts, QuickSearch, ProxyHostManagement, routes and architecture: 678 pass.

🤖 Generated with Claude Code

…olumns

Two gaps from checking #625 against its acceptance criteria.

App pages by URL. The page route only checked that an app with
extensions had some page for the user, so once a user could open one
page, any declared route of the app opened by URL, including the entry
route of a page whose permission the user lacks. The app summary now
carries `deniedRoutes`: entry routes of pages the user may not open that
no page they may open shares. The route refuses them and opens an app
with extensions at the first page the user may open. Other routes stay
reachable from inside the app's pages. The decision moves into
`appPageRoute`, which is now tested.

Host table columns. All apps answered their columns one after another
under the request's 10 s budget, so one slow app ran the request out and
every app's column turned unavailable. Apps now answer side by side,
each within its own 6 s deadline inside the request; a late or
oversized answer leaves only that app's columns unavailable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fc3dead and b88f13f.

Files selected for processing: 10

  • web/src/config/app-extensions.config.ts
  • web/src/lib/AppUi/bridge.ts
  • web/src/lib/AppUi/contract.ts
  • web/src/lib/AppUi/extensions.ts
  • web/src/lib/AppUi/page-access.ts
  • web/src/routes/_authenticated/apps.$installationId.{-$routeId}.tsx
  • web/src/server/AppRuntime/ui/host-table.server.ts
  • web/src/tests/lib/AppUi/extensions.test.ts
  • web/src/tests/lib/AppUi/page-access.test.ts
  • web/src/tests/server/AppRuntime/ui-host-table.test.ts
  • 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

@RentnerKev
RentnerKev merged commit 1da9c20 into main Nov 30, 2026
51 of 52 checks passed
@RentnerKev
RentnerKev deleted the rentner/fix/app-extension-hardening branch November 30, 2026 21:47
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