You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hermes Desktop now recognizes when Tailscale SSH is waiting for an interactive browser check instead of reporting the wait as a generic half-open connection timeout.
The timeout path keeps only a safe classification of buffered SSH stderr. It does not retain or surface Tailscale's one-time authentication URL. Desktop tells the user to complete the check from Terminal and retry.
This is deliberately narrower than changing timeout lengths or SSH lifecycle behavior. Generic timeouts still use the existing half-open connection message.
lets hanging fake SSH children emit stderr before timeout;
reproduces the Tailscale challenge and verifies the one-time URL never reaches the user-facing error.
How to Test
Run cd apps/desktop && npx vitest run --project electron electron/ssh-connection.test.ts.
Confirm the Tailscale regression reports interactive-auth, includes ssh user@host true guidance, and excludes login.tailscale.com plus the one-time URL token.
Run npx prettier --check electron/ssh-connection.ts electron/ssh-connection.test.ts, ESLint on both files, npx tsc -p tsconfig.electron.json --noEmit, and the full Electron Vitest project.
My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
I searched for existing PRs to make sure this isn't a duplicate
My PR contains only changes related to this fix/feature (no unrelated commits)
I've run pytest tests/ -q and all tests pass - N/A, this is isolated TypeScript/Electron code
I've added tests for my changes (required for bug fixes, strongly encouraged for features)
I've tested on my platform: Linux contract tests; the original failure was observed on macOS Apple Silicon
Documentation & Housekeeping
I've updated relevant documentation (README, docs/, docstrings) - N/A, no public configuration or workflow changed
I've updated cli-config.yaml.example if I added/changed config keys - N/A
I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows - N/A
I've considered cross-platform impact (Windows, macOS) per the compatibility guide
I've updated tool descriptions/schemas if I changed tool behavior - N/A
Verification
Blaxel Linux microVM, Node v22.22.1, npm 10.9.8:
RED: focused suite reproduced the bug with exactly one expected failure (timeout instead of interactive-auth).
GREEN: focused Desktop SSH suite 68 passed.
prettier --check: passed.
ESLint on the two changed files with --max-warnings=0: passed.
Electron TypeScript typecheck: passed.
An exploratory broader Electron run passed 1,929 tests and skipped 6. Four tests and two suites could not run because the slim worker intentionally omitted Python and Electron's postinstall binary. Those failures were outside ssh-connection and were classified as worker-prerequisite failures, not patch regressions.
Live patched macOS artifact was not rebuilt. The real failure was observed there; the fix is verified at the process/error-contract boundary.
Provenance
Prepared by Cad, an AI agent, under Luis Felipe Abarca's direction. The arcabotai contributor identity is human-stewarded by Luis Felipe, who authorized this issue and pull-request submission. Public background and project context: felirami.com, arcabot.ai, and arca.computer.
Good, security-conscious change. Detecting the Tailscale "additional check" stderr and mapping it to a new INTERACTIVE_AUTH error kind, then emitting non-interactive guidance (ssh <host> true, complete the browser check, retry) is the right UX. The one-time URL is deliberately kept out of the surfaced message (the test asserts doesNotMatch against login.tailscale.com), and stderrKind carries only the classification through the timeout path — properly defensive about leaking a one-time auth URL through Desktop errors or lifecycle logs.
Non-blocking observations:
Classification is only consulted on the timeout path. The stderrKind → INTERACTIVE_AUTH mapping is applied inside the if (stderrOrErr.kind === SSH_ERROR.TIMEOUT) branch. If ssh exits quickly (non-zero, e.g. code 255) carrying the same Tailscale "additional check" stderr rather than hanging until the timeout, the guidance won't surface. Consider classifying the immediate-exit path too, or adding a test for a fast exit with that stderr.
Regex requires the https scheme and exact host./To authenticate, visit:\s*https:\/\/login\.tailscale\.com\// won't match if Tailscale ever varies the scheme or host. Low risk (the message is currently fixed), but a looser match (e.g., the "requires an additional check" line alone) would be more robust.
classifySshError now runs on every timeout. Setting err.stderrKind = classifySshError(stderr) on every timeout is negligible cost, but worth noting it's a regex pass added to an already-error path. Fine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend/sshSSH remote executioncomp/desktopElectron desktop app (apps/desktop/*)P2Medium — degraded but workaround existstype/bugSomething isn't working
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Hermes Desktop now recognizes when Tailscale SSH is waiting for an interactive browser check instead of reporting the wait as a generic half-open connection timeout.
The timeout path keeps only a safe classification of buffered SSH stderr. It does not retain or surface Tailscale's one-time authentication URL. Desktop tells the user to complete the check from Terminal and retry.
This is deliberately narrower than changing timeout lengths or SSH lifecycle behavior. Generic timeouts still use the existing half-open connection message.
Related Issue
Fixes #97867
Type of Change
Changes Made
apps/desktop/electron/ssh-connection.tsapps/desktop/electron/ssh-connection.test.tsHow to Test
cd apps/desktop && npx vitest run --project electron electron/ssh-connection.test.ts.interactive-auth, includesssh user@host trueguidance, and excludeslogin.tailscale.complus the one-time URL token.npx prettier --check electron/ssh-connection.ts electron/ssh-connection.test.ts, ESLint on both files,npx tsc -p tsconfig.electron.json --noEmit, and the full Electron Vitest project.Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests pass - N/A, this is isolated TypeScript/Electron codeDocumentation & Housekeeping
docs/, docstrings) - N/A, no public configuration or workflow changedcli-config.yaml.exampleif I added/changed config keys - N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows - N/AVerification
Blaxel Linux microVM, Node
v22.22.1, npm10.9.8:timeoutinstead ofinteractive-auth).prettier --check: passed.--max-warnings=0: passed.ssh-connectionand were classified as worker-prerequisite failures, not patch regressions.Provenance
Prepared by Cad, an AI agent, under Luis Felipe Abarca's direction. The
arcabotaicontributor identity is human-stewarded by Luis Felipe, who authorized this issue and pull-request submission. Public background and project context: felirami.com, arcabot.ai, and arca.computer.