Repository navigation
[codex] Update in-app browser localhost handling - #77
Merged
brsbl merged 4 commits intoJun 10, 2026
Merged
Conversation
brsbl
marked this pull request as ready for review
June 10, 2026 21:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
localhost,*.localhost,127.x,[::1]) tohttp://while keeping public hosts onhttps://..otto/workflow artifacts in git.Why
The in-app browser needs to support developer workflows against localhost without broadening the sandbox or allowing renderer-driven access to private network targets. This keeps local loopback browsing usable while preserving the previous private/LAN/mDNS protections and tightening the attribution checks around local subresources.
Validation
Passed in the main workspace before preparing this clean PR branch:
pnpm exec turbo run test --filter=@bb/desktop -- --run test/desktop-browser-policy.test.ts test/desktop-browser-view-manager.test.ts test/preload-build.test.ts test/desktop-browser-main-ipc.test.ts test/preload-browser-api.test.tspnpm exec turbo run typecheck --filter=@bb/desktoppnpm exec turbo run test --filter=@bb/app -- --run src/lib/browser-url.test.tspnpm exec turbo run typecheck --filter=@bb/appgit diff --checkAfter the final conservative desktop-policy patch, these focused checks also passed in the main workspace:
pnpm exec turbo run test --filter=@bb/desktop -- --run test/desktop-browser-policy.test.ts test/desktop-browser-view-manager.test.tspnpm exec turbo run typecheck --filter=@bb/desktopClean PR worktree verification was attempted, but the temporary worktree could not resolve workspace dependencies such as
@bb/server-contract,@bb/tsconfig, and app Vite plugins from the shared install. Those failures were dependency-resolution setup failures in the temp worktree, not test assertion failures.