Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v1.16.0.0 feat: tunnel allowlist 17→26 + canDispatchOverTunnel pure function #1253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
v1.16.0.0 feat: tunnel allowlist 17→26 + canDispatchOverTunnel pure function #1253
Changes from 1 commit
73017ccee910880c51c4a1fd9487dabf82f8aea4f2File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…rTunnel Adds newtab, tabs, back, forward, reload, snapshot, fill, url, closetab to TUNNEL_COMMANDS (matching what cli.ts and REMOTE_BROWSER_ACCESS.md already documented). Each new command is bounded by the existing per-tab ownership check at server.ts:613-624 — scoped tokens default to tabPolicy: 'own-only' so paired agents still can't operate on tabs they don't own. Refactors the inline gate check at server.ts:1771-1783 into a pure exported function canDispatchOverTunnel(command). Same behavior as the inline check; the difference is unit-testability without HTTP. Adds BROWSE_TUNNEL_LOCAL_ONLY=1 test-mode flag that binds the second Bun.serve listener with makeFetchHandler('tunnel') on 127.0.0.1 — no ngrok needed. Production tunnel still requires BROWSE_TUNNEL=1 + valid NGROK_AUTHTOKEN. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing