Repository navigation
fix(ssh): a fast remote folder listing no longer shows a false error - #26940
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The reviewed change preserves browse completion status in the tested event orderings. No actionable merge-blocking risk remains after normal checks. Pre-merge checks |
|
|
Status note after the relay removal (#27214, #27215): the plain-shell SSH provider no longer exists, and directory browsing moved to |
…ailure ssh2 can deliver the exec ack and the exit status in one chunk, so 'exit' fires before the browse handler subscribes. Fall back to the status that 'close' repeats when no exit was observed. Co-authored-by: suharvest <[email protected]>
c5306bc to
cec7916
Compare
ELI5
When you add a remote project over SSH and browse folders on the host, a fast host could make the folder picker show an error even though the listing worked. Orca now reads the host's exit status from the point where the connection closes, which always carries it, so a successful listing shows its folders.
What Changed
closeevent. The listing code now uses that close status when it never saw the exit event. An exit status it did see still wins.Why
Reading the status the transport already repeats on close is the smallest fix and needs no replay, polling, or wire change. The general SSH command runner already reads the close status, so this brings folder browsing in line with it.
The original PR also changed the plain SSH shell provider, which has since been removed from main, and the relay startup sentinel, which only affects how a refusal from the legacy relay path is labeled after the relay was deleted. Both were dropped to keep this focused.
Linked Issue
Fixes #8956
Adapted from @suharvest's #26403; the commit credits them as co-author.
Visual Proof
Earlier hidden-renderer capture of the real picker against a loopback SSH host (before: error; after: entries):
Testing
src/main/ipc/ssh-browse.test.tsgains two cases, an exit that fires before the channel is handed back, and an observed exit status that must win over the close status. Both fail on current main and pass with this change.pnpm tc:node, oxlint,pnpm run check:code-quality:changed, andpnpm lintpass.Review
Own review plus an independent read-only reviewer; P0/P1 only.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
SSH only; no wire change. Works the same for the ssh2 and system OpenSSH transports (both pass the status on close) and for POSIX and Windows hosts. Folder workspaces and git worktrees use the same picker.
Checklist