Skip to content

[Claimed #3577] fix(cli): prefix scheme for bare-host URLs in browse tab new - #3585

Merged
shrey150 merged 2 commits into
mainfrom
external-contributor-pr-3577
Nov 30, 2026
Merged

shrey150 merged 2 commits into
mainfrom
external-contributor-pr-3577

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

  • Apply normalizeUrlScheme to the optional url argument in TabNew.run (packages/cli/src/commands/tab/new.ts), matching browse open (fix(cli): prefix scheme for bare-host URLs in browse open #3512).
  • Preserve undefined when no URL is passed and keep explicit schemes (https://, about:blank, etc.) unchanged.
  • Add unit tests in packages/cli/tests/tab-new.test.ts and a patch changeset for browse.

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 --check on changed files (0 warnings, 0 errors)

Summary by cubic

Prefixes bare-host URLs with a scheme in browse tab new, matching browse open so commands like browse tab new example.com resolve correctly. Explicit schemes (for example https:// or about:blank) and calls without a URL are left unchanged. Fixes #3574.

Written for commit f88d77d. Summary will update on new commits.

View guided diff

@github-actions github-actions Bot added external-contributor Tracks PRs mirrored from external contributor forks. external-contributor:mirrored An internal mirrored PR currently exists for this external contributor PR. labels Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

This mirrored PR has been merged into main. The original external PR #3577 is now completed.

@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a2ed5c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
browse Patch

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
shrey150 merged commit bbdaf94 into main Nov 30, 2026
20 of 25 checks passed
@shrey150
shrey150 deleted the external-contributor-pr-3577 branch November 30, 2026 12:54
@github-actions github-actions Bot added external-contributor:completed The mirrored PR has been merged and the external contributor flow is complete. and removed external-contributor:mirrored An internal mirrored PR currently exists for this external contributor PR. labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor:completed The mirrored PR has been merged and the external contributor flow is complete. external-contributor Tracks PRs mirrored from external contributor forks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

browse tab new doesn't add a scheme to bare hosts like browse open does

2 participants