Skip to content

Large-tree deep link: 'Proceed anyway' override - #58

Merged
amkram merged 1 commit into
mainfrom
large-tree-override
Jul 23, 2026
Merged

Large-tree deep link: 'Proceed anyway' override#58
amkram merged 1 commit into
mainfrom
large-tree-override

Conversation

@amkram

@amkram amkram commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

When a ?pb=<url> tree exceeds the 100 MB browser limit, show a warning with a Proceed anyway button (loads it with the guard bypassed) instead of hard-failing. Useful on the Vercel/backendless site where a user knows their machine can handle it.

  • fetchPbAsFile gains { force }; over-limit throws a typed TOO_LARGE error carrying the size.
  • The deep-link handler catches it and renders the warning + override; proceedLargeTree re-fetches with force: true.

Verified end-to-end (temporarily lowered the threshold so a small tree tripped it): warning + button render, Proceed loads the tree, Run Pipeline works. Frontend-only.

Merging deploys to Vercel.

Over the 100 MB browser limit, the ?pb= fetch now shows a warning with a Proceed
anyway button that loads the tree with the size guard bypassed, rather than erroring
out. fetchPbAsFile gains a { force } option and throws a typed TOO_LARGE error the
launcher catches to render the override.
@amkram
amkram merged commit 2e6412a into main Jul 23, 2026
1 check passed
@amkram
amkram deleted the large-tree-override branch July 23, 2026 01:50
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