Repository navigation
Add the USB forwarding session manager and harden elevation - #26
Merged
Merged
Conversation
Adds the per-session manager that decides when USB forwarding runs and keeps it running, and the two settings that drive it. Nothing calls it yet, so nothing changes for a user: both settings are off by default and the manager is not wired into the stream. The manager starts nothing unless forwarding is enabled. It asks the host whether forwarding is allowed, then opens one tunnel for each chosen device that is currently shared. The tunnel host is always the host the stream is connected to, never user text, and both the pinned server certificate and the client certificate are required. It runs off the stream thread, never throws into it, retries with backoff, and can be polled without a Qt event loop. Stopping it is safe from any thread, including from inside its own callbacks. Sharing or unsharing a device no longer blocks the window while the Windows permission prompt is open: the result is reported when the elevated tool really finishes, a slow one keeps the backend busy until it exits, and the wait cannot hold up quitting the app. A tunnel now turns on TCP keepalive after the handshake, so a host that disappears is noticed. 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.
Fourth step of USB forwarding, after the capability stub (ApolloVibe #12), the client core (#25) and the host tunnel (ApolloVibe #13). It adds the logic that will drive USB forwarding during a stream. Nothing calls it yet, and both new settings are off by default, so nothing changes for a user. Wiring it into the stream, the settings screen and the hotkey is the next PR.
What it adds
Tests
Not covered
Derived in part from qiin2333/moonlight-qt (GPL-3.0); ported files say so at the top.
🤖 Generated with Claude Code