Repository navigation
[Claimed #3577] fix(cli): prefix scheme for bare-host URLs in browse tab new - #3585
Merged
Merged
Conversation
…77' into external-contributor-pr-3577
Contributor
Author
|
This mirrored PR has been merged into |
🦋 Changeset detectedLatest commit: a2ed5c8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
shrey150
approved these changes
Nov 30, 2026
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.
Mirrored from external contributor PR #3577 after approval by @shrey150.
Original author: @embrace897
Original PR: #3577
Approved source head SHA:
f88d77d8ba7d0ebe18b598ded23a928dfda8add0@embrace897, please continue any follow-up discussion on this mirrored PR. When the external PR gets new commits, this same internal PR will be marked stale until the latest external commit is approved and refreshed here.
Original description
Summary
normalizeUrlSchemeto the optionalurlargument inTabNew.run(packages/cli/src/commands/tab/new.ts), matchingbrowse open(fix(cli): prefix scheme for bare-host URLs in browse open #3512).undefinedwhen no URL is passed and keep explicit schemes (https://,about:blank, etc.) unchanged.packages/cli/tests/tab-new.test.tsand a patch changeset forbrowse.Fixes #3574.
Testing
pnpm --filter browse exec vitest run tests/tab-new.test.ts tests/normalize-url.test.ts(21 passed)pnpm --filter browse check(tsc --noEmit, 0 errors)oxlint&oxfmt --checkon changed files (0 warnings, 0 errors)Summary by cubic
Prefixes bare-host URLs with a scheme in
browse tab new, matchingbrowse openso commands likebrowse tab new example.comresolve correctly. Explicit schemes (for examplehttps://orabout:blank) and calls without a URL are left unchanged. Fixes #3574.Written for commit f88d77d. Summary will update on new commits.