feat: support connecting desktop app to an existing remote t3 server#1013
feat: support connecting desktop app to an existing remote t3 server#1013Microck wants to merge 6 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required. |
What Changed
Adds a small remote-connect workflow for the desktop app so it can connect to an already-running
t3server on a VPS or Tailnet host.Changes included in this PR:
Connection URLfield in desktop Settingst3 --remoteas a shortcut for remote-friendly server startupt3 --remoteuses port3773by default unless--portis providedt3 --remoteprefers a Tailscale IP when one is available and prints a paste-ready desktop connection URLDefault local desktop behavior is unchanged.
Why
This makes the desktop app usable in headless and VPS workflows without requiring the bundled local backend to run on the same machine as the desktop shell.
The intended flow is:
t3 --remoteon the VPSThis PR intentionally does not add provisioning, automatic pairing, protocol changes, or profile management.
UI Changes
Demo video:
https://github.com/user-attachments/assets/13f48bda-3dbe-4978-a1a0-ddf01dc35f33
Checklist
Note
Add remote server connection support to the desktop app
--remoteflag to the server CLI that binds to0.0.0.0on port 3773, suppresses browser launch, and prints a desktop-ready connection URL on startup (detecting Tailscale and other external interfaces).desktop-connection.jsonin Electron's userData path.T3CODE_DESKTOP_WS_URLinstead.Macroscope summarized 0a9e8ed.