fix(gui): start on the screen the SSH / Remote Desktop switch shows - #11
Merged
Merged
Conversation
The switch is remembered across runs, but the content always started on the Dashboard: closing the app in Remote Desktop mode brought it back with the SSH dashboard under a switch saying Remote Desktop, until you toggled it twice. A selector screen that doesn't belong to the current mode now goes to that mode's own — at startup and when the saved mode is read back just after. Settings and open sessions are left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Files travel over RDP's clipboard channel, the way mstsc does it (IronRDP's RdpFileTransferProvider): - Into the session: drop files or folders on the tab (or "Send files"), then paste them into a folder there with Ctrl+V. A panel follows the copy: ready, bytes copied, done. - Out of it: copying files on the remote desktop offers them in the tab; "Save…" asks for a folder here (Downloads by default) and keeps the folder structure. Names and paths from the remote side are untrusted: no "..", no absolute paths, no device names, nothing overwritten, and only into a folder the user picked in that dialog. - The web client's own clipboard sync is paused while files are fetched — it would otherwise replace the remote file list mid-download (found against a real Windows); a download that stops moving fails after 30 s with a hint instead of hanging. - Goes with the profile's clipboard setting. Tested against the Windows target: 2 files (20 MB) sent and pasted in about 2 s, copied back and saved byte-identical; a dropped file lands after Ctrl+V. The UI unit tests now compile .svelte.ts modules (Svelte plugin). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The switch is remembered across runs, but the content always started on
the Dashboard: closing the app in Remote Desktop mode brought it back with
the SSH dashboard under a switch saying Remote Desktop, until you toggled it
twice. A selector screen that doesn't belong to the current mode now goes to
that mode's own — at startup and when the saved mode is read back just
after. Settings and open sessions are left alone.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
What and why
How it was tested
Checklist
npm run checkandnpm testpass