microsoft / microsoft/vscode

Chat: bare URLs are linkified together with the text that directly follows them

Open
#336,918 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

chat
Dominant language
TypeScript
Stars
193k
Forks
42.8k
PR merge metrics
PR metrics pending

Description

Type: Bug

  • Copilot Chat Extension Version: 0.66.0

  • VS Code version: Code 1.138.0 (7debcd0e2acdea1c52de81bf9ee1620444407dda, 2026-09-15T07:24:32Z)

  • OS version: Windows_NT arm64 10.0.26200

  • Feature (e.g. agent/edit/ask mode): agent

  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): DeepSeek V4 Flash

  • Modes:

    System Info
    Item Value
    CPUs Snapdragon(R) X 12-core X1E80100 @ 3.40 GHz (12 x 2976)
    GPU Status 2d_canvas: enabled
    GPU0: VENDOR= 0x4d4f4351, DEVICE=0x36334330 [Qualcomm(R) Adreno(TM) X1-85 GPU], DRIVER_VENDOR=Qualcomm, DRIVER_VERSION=31.0.137.0 ACTIVE
    GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9278
    Machine model name:
    Machine model version:
    direct_rendering_display_compositor: disabled_off_ok
    gpu_compositing: enabled
    multiple_raster_threads: enabled_on
    opengl: enabled_on
    rasterization: enabled
    raw_draw: disabled_off_ok
    skia_graphite: disabled_off
    trees_in_viz: disabled_off
    video_decode: enabled
    video_encode: enabled
    webgl: enabled
    webgpu: enabled
    webnn: disabled_off
    Load (avg) undefined
    Memory (System) 31.57GB (12.24GB free)
    Process Argv C:\Users\tbyta\source\repos\winget-create --crash-reporter-id c148688f-7ece-47a8-a029-8ef46ab75b98
    Screen Reader no
    VM 0%
    Extensions (38)
    Name Identifier Author Version
    AsciiDoc asciidoctor.asciidoctor-vscode asciidoctor 4.2.2
    GitHub Markdown Preview bierner.github-markdown-preview bierner 0.4.0
    Markdown Checkboxes bierner.markdown-checkbox bierner 0.4.0
    Markdown Emoji bierner.markdown-emoji bierner 0.3.1
    Markdown Footnotes bierner.markdown-footnotes bierner 0.1.1
    Markdown yaml Preamble bierner.markdown-yaml-preamble bierner 0.1.1
    ESLint dbaeumer.vscode-eslint dbaeumer 3.0.34
    EditorConfig editorconfig.editorconfig EditorConfig 0.18.2
    Prettier - Code formatter esbenp.prettier-vscode esbenp 12.4.0
    LaTeX Instant Runner finlay-ab.vscode-latex-runner finlay-ab 0.1.0
    GitHub Actions github.vscode-github-actions github 0.32.3
    电子书阅读器 lindacong.vscode-book-reader lindacong 1.4.7
    GitHub 中文化 maboloshi.github-chinese maboloshi 1.0.1
    LaTeX mathematic.vscode-latex mathematic 2.2.1
    PDF Viewer mathematic.vscode-pdf mathematic 0.2.5
    Rainbow CSV mechatroner.rainbow-csv mechatroner 3.24.1
    Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code ms-ceintl.vscode-language-pack-zh-hans MS-CEINTL 1.131.2026090407
    C# 开发工具包 ms-dotnettools.csdevkit ms-dotnettools 3.40.204
    C# ms-dotnettools.csharp ms-dotnettools 2.160.4
    .NET Install Tool ms-dotnettools.vscode-dotnet-runtime ms-dotnettools 3.1.0
    Python Debugger ms-python.debugpy ms-python 2026.6.0
    Python ms-python.python ms-python 2026.4.0
    Pylance ms-python.vscode-pylance ms-python 2026.3.1
    Python Environments ms-python.vscode-python-envs ms-python 1.36.0
    CMake Tools ms-vscode.cmake-tools ms-vscode 1.24.42
    C/C++ DevTools ms-vscode.cpp-devtools ms-vscode 0.6.18
    C/C++ ms-vscode.cpptools ms-vscode 1.34.4
    C/C++ Extension Pack ms-vscode.cpptools-extension-pack ms-vscode 1.5.1
    Live Preview ms-vscode.live-server ms-vscode 0.4.20
    Makefile Tools ms-vscode.makefile-tools ms-vscode 0.12.17
    PowerShell ms-vscode.powershell ms-vscode 2025.4.0
    Batch Runner nilssoderman.batch-runner NilsSoderman 1.4.0
    YAML redhat.vscode-yaml redhat 1.24.0
    GitHub Issue Template Preview reespozzi.github-issue-template-preview reespozzi 0.1.4
    Open with System Editor slaugaus.open-with-system slaugaus 0.1.0
    约定式提交 vivaxy.vscode-conventional-commits vivaxy 1.31.0
    DeepSeek V4 for Copilot Chat vizards.deepseek-v4-for-copilot Vizards 0.9.2
    Markdown Preview for Github Alerts yahyabatulu.vscode-markdown-alert yahyabatulu 0.0.4
    A/B Experiments
    vsliv368cf:30146710
    binariesv615:30325510
    nativeloc1:31344060
    dwcopilot:31170013
    dwoutputs:31242946
    copilot_t_ci:31333650
    e5gg6876:31282496
    pythonrdcb7:31342333
    6518g693:31463988
    aj953862:31281341
    82j33506:31327384
    envsactivate1:31551504
    cloudbuttont:31379625
    3efgi100_wstrepl:31403338
    ec5jj548:31422691
    cp_cls_t_966_ss:31526232
    4je02754:31466945
    c3h7c220:31478652
    cp_cls_t_1081:31454832
    conptydll_true:31498968
    e9c30283:31461165
    46204921:31447328
    capico_axe_098a3278:31582664
    ei9d7968:31496641
    chat:31457767
    8hig5102:31480529
    89g7j272:31518289
    i2gc6536:31499202
    52612955:31516516
    ddid_c:31478207
    hmra_i5g22:31518061
    7df3h592:31512476
    cp_cls_t_1082:31535311
    logging_enabled_new:31498466
    j0d79568:31499440
    jb_cp_cls_t_632:31543129
    56dj4588:31512888
    32d76977:31512328
    ha629193:31508444
    jh5f2457_c:31540921
    jbcp_cls_pctr_t:31531130
    cp_intellij_t_nes:31548657
    gf14b233:31526830
    ahp-both-windows:31556933
    ihg5j128:31534457
    9gg7f176:31542112
    nes-ex-cf-euporie-03:31542868
    enable_editor_pane_layout:31569726
    allow-none:31555437
    ac562147:31564510
    c7c27ce7:31554789
    1h923230:31564177
    treatment-23-1:31555779
    unuse_dynamic_mcp:31555281
    0d8dfbc3:31570291
    0c1h4866:31566224
    session-mark-done:31558131
    5b8j3302:31564601
    autotiers:31584978
    mangle-name-control:31572633
    signed-out-control:31584138
    intellij_nes_preview_t:31580086
    39a5d156:31574986
    0ec91c74:31585910
    outline:31581109
    aw-autom-on:31583758
    revealsession_control_7ed7e840:31582193
    7g328426_fixed:31584544
    codex-agent-host-stable-control:31585316
    66c8a39e-e7a5-4b4c-a3c0-41b161c795c4:31586113
    permission_prompt_control:1332567
    ccr_pr_nudge_adoption:1319471
    vsc_wsm_t:1340632
    cfee5631:1379228
    wzoi2426:1412286
    3aced641:1389836
    c_920dh436:1401463
    
    
Steps to Reproduce
  1. Set the display language to Chinese (Simplified).
  2. Ask the agent to open a page in the integrated browser in a new tab, e.g. Open https://code.visualstudio.com in the integrated browser in a new tab (this triggers the open_browser_page tool). The "是否打开浏览器页面?" confirmation appears; its message reads: 这将在集成浏览器中打开 <url>。代理将能够读取其内容并进行交互。
  3. Confirm the dialog, then ask the agent to navigate that page, e.g. Navigate the integrated browser to https://example.com (this triggers the navigate_page tool). The "是否导航浏览器?" confirmation appears; its message reads: 这会将浏览器导航到 <url>,并允许代理访问其内容。
Actual
Image

In both confirmations the link covers everything after the URL, and the link target is the URL with that text appended, so following the link opens a broken URL:

  • "是否打开浏览器页面?": <url>。代理将能够读取其内容并进行交互。 is a single link.
  • "是否导航浏览器?": <url>,并允许代理访问其内容。 is a single link.
Expected

Only the URL is a link.

Additional Information
  • In both messages the URL is directly followed by full-width punctuation with no space in between. The English strings have a space after {0}, so they don't show it.
  • This happens for any rendered chat markdown in which a bare URL is directly followed by a non-whitespace character.

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 by tracing the rendered chat markdown linkification used by the open_browser_page and navigate_page confirmation messages, then reproduce the issue with a bare URL followed immediately by full-width punctuation or other text. Done means only the URL is linked and its target excludes the following characters, while the existing English and Chinese confirmation messages still render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.