Add direct connection support and fix persistent mode#58
Merged
Conversation
Direct Connection (Tailscale/LAN/VPN): - Add ServerPassword and DirectSharingEnabled to ConnectionSettings - Support password auth in WsBridgeServer (alongside DevTunnel token) - Create TailscaleService for auto-detecting Tailscale IP/DNS via local API - Add Direct Connection UI section in desktop Settings with password, LAN IP detection, QR code generation, and Tailscale integration - Update mobile connection UI labels to be transport-agnostic - Auto-start direct sharing on app launch when previously enabled - WsBridgeServer can now run independently of DevTunnelService Fix persistent mode showing Disconnected: - SDK CliUrl + headless server mode hangs on StartAsync due to UseLoggedInUser auth flow bug (see github/copilot-sdk for details) - Replace headless server approach with embedded stdio mode using CliPath for both Embedded and Persistent connection modes - Sessions still persist via SDK's built-in ResumeSessionAsync Debugging improvements: - Add ILogger<CopilotService> for structured logging via MauiDevFlow - Add try/catch around StartAsync for clearer error reporting - Add .mauidevflow config for MauiDevFlow CLI port auto-detection
a4ca333 to
eb41d8f
Compare
StephaneDelcroix
added a commit
to StephaneDelcroix/PolyPilot
that referenced
this pull request
Feb 12, 2026
…en#58)" This reverts commit 0cd881c which broke the Copilot CLI communication. The change replaced the persistent mode headless server approach with embedded stdio mode, but the SDK-spawned CLI process fails with "unknown option --headless" when all flags are combined, causing ConnectionLostException on StartAsync.
kubaflo
pushed a commit
that referenced
this pull request
Feb 12, 2026
…70) This reverts commit 0cd881c which broke the Copilot CLI communication. The change replaced the persistent mode headless server approach with embedded stdio mode, but the SDK-spawned CLI process fails with "unknown option --headless" when all flags are combined, causing ConnectionLostException on StartAsync.
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.
Direct Connection (Tailscale/LAN/VPN):
Fix persistent mode showing Disconnected:
Debugging improvements: