[Bug]: "Open in VS Code" is offered on iPad and phone browsers, where it can never open
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Run T3 Code on a Mac that advertises an SSH route (sshd running, or Tailscale SSH).
- Connect to it from the web client on an iPad (not the native iOS app).
- Open a thread and tap "Open in VS Code".
Expected behavior
On iOS and Android browsers, the menu does not offer desktop editors and says why they are unavailable. Browsers on computers behave as they do today.
Actual behavior
Safari shows "Safari no puede abrir la página porque la dirección no es válida" ("Safari cannot open the page because the address is invalid"). This happens with Tailscale on and off.
From reading apps/web/src/remoteOpen.ts at 32ecd71726:
remoteCapableEditorsAtomfalls back toREMOTE_FALLBACK_EDITORS = ["vscode"]when there is no desktop bridge to probe, so a browser always offers VS Code.- The button and the keyboard shortcut both use that list, and build a
vscode://vscode-remote/ssh-remote+…URL. iPadOS has no desktop VS Code to handle it. openRemoteEditorUrlcallswindow.location.assign(url)and returnstrue, so the failure is never detected.
I reproduced this on an iPad only. Android is included because it has no desktop editors either, but I have not tested it.
Related work on the same list:
- #25490, #23572 and #11209 widen what browsers are offered. None of them excludes iOS or Android, so merging one as is would add more entries that fail the same way on these devices.
- #27510 and #27518 ask for the same wider list for computers. That request is complementary: it fits as long as phones and tablets stay out of the list.
Impact
Minor bug or occasional failure
Version or commit
T3 Code (Beta) 0.1.5 on the Mac
Environment
iPadOS, web client, connected to the Mac server
The fix in #27557 removes the error, but iPad and phone users still can't open the workspace in an editor. I opened a proposal for that here: https://github.com/pingdotgg/t3code/discussions/27584