python / python/cpython

Python 3.14 webbrowser regression when launching vscode:// URI on macOS

Open
#149,454 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.14 3.15 pending stdlib type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

In Python 3.13.13 on macOS 26.3.1, I run __import__("webbrowser").open("vscode://"): it opens Microsoft VS Code
Same machine, in Python 3.14.2, same code: opens Chrome instead

I observe the same behaviour with Python 3.15.0a8

One line test case (using uv):

uv run --no-project --python=3.14 python3 -c '__import__("webbrowser").open("vscode://")'

In my actual use case, the URI is more complex, something like vscode://vscode-remote/ssh-remote+MYDEVBOX.example.com/workspaces/MYPROJECT.code-workspace – but vscode:// is enough to reproduce it

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs
  • gh-155859

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the webbrowser.open() entry point and reproduce the issue using the provided uv command on macOS with Python 3.14. Compare its behavior with Python 3.13 for the vscode:// URI; done means the URI launches VS Code rather than Chrome.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
desktop-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.