Repository navigation
Add the USB forwarding settings section and wire it into the stream - #27
Merged
Merged
Conversation
Adds a "USB forwarding" section to Settings (Windows only) and starts the session manager when a stream begins. Both are off by default; with the setting off nothing is created, no thread starts, and the stream behaves exactly as before. Settings lets the user turn the feature on, see whether usbipd-win is installed and running, share or stop sharing a device, and choose which shared devices are forwarded automatically when a stream starts. Sharing asks Windows for permission only when the user presses the button, and never blocks the window. When the setting is on, the stream starts the manager after the window exists and stops it during teardown, after the input is released and the window is gone. The manager never blocks the stream thread: the device check runs on a pool thread, so quitting a stream cannot freeze behind a slow usbipd. Its status is logged from the existing idle wake and after handled events, once a second at most, with no event pump and no per-frame work. Ctrl+Alt+Shift+U pauses or resumes forwarding; with the setting off the keys pass through to the host as before. The tunnel host is always the host the stream is connected to, in one canonical form, and the pinned server certificate and the client identity come from pairing, never from user input. Co-Authored-By: Claude Sonnet 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.
Fifth step of USB forwarding, after the host tunnel (ApolloVibe #13) and the session manager (#26). This is the first change a user can see. USB forwarding stays OFF by default, and with it off nothing is created and the stream behaves exactly as before.
What it adds
usbipd: the device check runs on a pool thread, and stopping never waits for it.Safety notes
Tests
Not covered
🤖 Generated with Claude Code