t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: "Open in VS Code" is offered on iPad and phone browsers, where it can never open

Open DavidPerezA12 opened this issue 1 month ago • 1 comments

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

  1. Run T3 Code on a Mac that advertises an SSH route (sshd running, or Tailscale SSH).
  2. Connect to it from the web client on an iPad (not the native iOS app).
  3. 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:

  • remoteCapableEditorsAtom falls back to REMOTE_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.
  • openRemoteEditorUrl calls window.location.assign(url) and returns true, 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

DavidPerezA12 avatar Oct 30 '26 11:10 DavidPerezA12

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

DavidPerezA12 avatar Oct 30 '26 12:10 DavidPerezA12