# Remote editor username verification

Target: https://github.com/pingdotgg/t3code/pull/18092
Reviewed revision: 7747c9ab31547b8e2c033dfa848db224fb85c4f5
Base: 45ad47df2254c226eb05e7f54c396aa28022cb43

## Focused behavior proof

The original merged PR passed 45 nonbrowser tests. After consolidating redundant tests, the 40-case suite exposed two failures for empty and whitespace-only persisted usernames. The implementation fixes those failures: 40/40 pass. The existing 7 picker browser tests also pass, for 47 passing cases total.

Fail-before check: temporarily restoring the base editor URL builder and Electron URL allowlist and removing the OS lookup fallback produced 8 failures (6 additional to the two blank-login failures). Restoring the implementation returned to the two expected failures; the final implementation passes all 40 cases.

Five scoped typechecks (contracts, shared, web, server, desktop), targeted lint, formatting, and git diff --check passed.

## Chromium hook verification

The real useRemoteOpenResolution React hook and production URL builder were exercised in the T3 Browser panel against the running isolated development app, using synthetic connection presentations in a separate AtomRegistry. Changing only the login on the same host updated all three editor URL formats; removing it restored the bare alias, and adding it again restored the login.

This proves hook invalidation and generated destinations, not an OS editor launch or SSH authentication. No visual layout changes are made, so text output is the relevant evidence.

Login: 'alice'; resolved: True

- vscode://vscode-remote/ssh-remote+alice%40proof-host/work/project
- zed://ssh/alice@proof-host/work/project
- jetbrains://gateway/ssh/environment?h=proof-host&launchIde=true&ideHint=IU&projectHint=%2Fwork%2Fproject&u=alice

Login: 'bob'; resolved: True

- vscode://vscode-remote/ssh-remote+bob%40proof-host/work/project
- zed://ssh/bob@proof-host/work/project
- jetbrains://gateway/ssh/environment?h=proof-host&launchIde=true&ideHint=IU&projectHint=%2Fwork%2Fproject&u=bob

Login: None; resolved: True

- vscode://vscode-remote/ssh-remote+proof-host/work/project
- zed://ssh/proof-host/work/project
- jetbrains://gateway/ssh/environment?h=proof-host&launchIde=true&ideHint=IU&projectHint=%2Fwork%2Fproject

Login: 'carol'; resolved: True

- vscode://vscode-remote/ssh-remote+carol%40proof-host/work/project
- zed://ssh/carol@proof-host/work/project
- jetbrains://gateway/ssh/environment?h=proof-host&launchIde=true&ideHint=IU&projectHint=%2Fwork%2Fproject&u=carol

Unverified: external editor launch/authentication, native macOS/Windows/Electron, iOS and Android. Mobile has no matching local editor picker.
