Skip to content

[BUG] [alpha] TerminalLinkProvider fallback uses window.open when shell_open fails #38266

@victor-m-l

Description

@victor-m-l

Project

ide

Description

TerminalLinkProvider falls back to window.open(link.text, "_blank") when invoke("shell_open") fails.

UI path: Session -> Terminal output URL link -> click URL.

In desktop runtime where shell_open is unavailable/fails, this fallback can no-op because window.open is not a reliable external-launch path in Tauri.

Error Message

Debug Logs

System Information

OS: Ubuntu 24.04
CPU: Core i9 13900HX (32 cores)
RAM: 32GB

Screenshots

https://github.com/user-attachments/assets/930978e4-116c-401e-b969-95aed4d12f31

Steps to Reproduce

  1. Open terminal output containing a URL.
  2. Trigger an environment where shell_open fails (for example missing opener in minimal runtime).
  3. Click the terminal link.
  4. Observe fallback path.

Expected Behavior

URL activation should still open externally through a Tauri-safe mechanism when primary open fails.

Actual Behavior

Fallback uses window.open, which can no-op in desktop runtime.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existsideIssues related to IDE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions