-
Notifications
You must be signed in to change notification settings - Fork 31
[BUG] [alpha] TerminalLinkProvider fallback uses window.open when shell_open fails #38266
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsideIssues related to IDEIssues related to IDE
Description
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: 32GBScreenshots
https://github.com/user-attachments/assets/930978e4-116c-401e-b969-95aed4d12f31
Steps to Reproduce
- Open terminal output containing a URL.
- Trigger an environment where
shell_openfails (for example missing opener in minimal runtime). - Click the terminal link.
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsideIssues related to IDEIssues related to IDE