Skip to content

feat: Add remote Unsloth server support to Desktop application - #1

Open
DionJones615 wants to merge 9 commits into
mainfrom
feat/remote-server-desktop-5409692007600219446
Open

feat: Add remote Unsloth server support to Desktop application#1
DionJones615 wants to merge 9 commits into
mainfrom
feat/remote-server-desktop-5409692007600219446

Conversation

@DionJones615

Copy link
Copy Markdown
Owner

This PR adds remote server support to the Unsloth Desktop application. Users can now connect to a remote backend (e.g., via Cloudflare tunnel or LAN IP) instead of always spawning the local Python sidecar.

Changes:

  • Tauri CSP: Updated tauri.conf.json to allow http:, https:, ws:, and wss: for connect-src, frame-src, and media-src. Added tauri-plugin-store to the build.
  • Backend CORS: Added http://127.0.0.1 to _TAURI_CORS_ORIGINS in studio/backend/utils/host_policy.py.
  • Frontend Core:
    • api-base.ts: Expanded to support full remote URLs, and exported getIsRemoteMode().
    • main.tsx: Added startup hydration of remote connection state from localStorage.
  • Authentication: authFetch automatically injects the remote Bearer token if isRemoteMode is active.
  • Server Connection UI: Created a new UI in ConnectionsTab (connections-tab.tsx) for users to set the server URL and API token, test the connection, and persist the config.
  • Process Management: Guarded use-tauri-backend.ts so start_managed_server is skipped when the remote mode is enabled, saving local memory and VRAM.
  • Fixed a handful of unrelated npm run lint format errors.

Tests and linters pass successfully.


PR created automatically by Jules for task 5409692007600219446 started by @DionJones615

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@DionJones615
DionJones615 marked this pull request as ready for review August 15, 2026 00:43
DionJones615 and others added 8 commits August 15, 2026 01:00
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant