feat: support connecting to a remote OpenClaw gateway#7823
Closed
webxl wants to merge 7 commits intojanhq:mainfrom
Closed
feat: support connecting to a remote OpenClaw gateway#7823webxl wants to merge 7 commits intojanhq:mainfrom
webxl wants to merge 7 commits intojanhq:mainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tauri's build.rs sets cfg(dev) = !has_feature("custom-protocol").
Including tauri/custom-protocol in the feature list caused cfg(dev)
to be false, making the binary serve from frontendDist (empty stub)
instead of the Vite dev server at localhost:1420.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add openclaw_is_available Tauri command (always registered, returns cfg!(feature = "openclaw")) so the frontend can detect at runtime whether the feature was compiled in. On startup, NavMain checks feature availability and stores it in app state. SettingsMenu conditionally renders the OpenClaw integration link based on that flag. Also remove the misleading "Couldn't start Remote Access" toast from fetchStatus — a thrown IPC call means the feature isn't compiled in, not a user-actionable error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add a "Gateway Mode" selector (Embedded / Remote) to the Remote Access settings. In Remote mode Jan skips all local lifecycle management (start/stop/install) and routes agent-mode chat traffic to a user-provided URL + token instead. Backend: - New types JanGatewayMode & JanGatewaySettings (models.rs) - gateway_settings field on OpenClawState, loaded from Tauri Store - 3 new commands: get/set gateway settings, validate remote gateway - openclaw_start/stop are no-ops in remote mode - openclaw_status/check_gateway probe the remote URL in remote mode - Health monitor skips auto-restart in remote mode Frontend: - getOpenClawGatewayUrl() resolves local or remote URL - ensureOpenClawHttpApi() skips in remote mode - custom-chat-transport uses async gateway URL - Settings UI shows URL/token inputs + test connection in remote mode - i18n keys for gateway mode labels and messages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Commented here #7822 (comment) |
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.
Summary
Depends on: #7822 (merge that first — this branch builds on it)
Test Plan
🤖 Generated with Claude Code