wraith/src/components/sftp
Vantz Stockwell 44c79decf3
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 2m58s
fix: SFTP preserves position on tab switch + CWD following on macOS
SFTP tab switch fix:
- Removed :key on FileTree that destroyed component on every switch
- useSftp now accepts a reactive Ref<string> sessionId
- Watches sessionId changes and reinitializes without destroying state
- Per-session path memory via sessionPaths map — switching back to a
  tab restores exactly where you were browsing

CWD following fix (macOS + all platforms):
- Injects OSC 7 prompt hook into the shell after SSH connect
- zsh: precmd() emits \e]7;file://host/path\e\\
- bash: PROMPT_COMMAND emits the same sequence
- Sent via the PTY channel so it configures the interactive shell
- The passive OSC 7 parser in the output loop picks it up
- SFTP sidebar auto-navigates to the current working directory

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 00:41:50 -04:00
..
FileTree.vue fix: SFTP preserves position on tab switch + CWD following on macOS 2026-03-25 00:41:50 -04:00
TransferProgress.vue feat: Phase 3 complete — SFTP sidebar with full file operations 2026-03-17 15:46:35 -04:00