Repository navigation
fix(macos): respect gateway.controlUi.basePath in Dashboard URL - #15862
Conversation
| ## Configuration | ||
|
|
||
| See [Compaction config & modes](/concepts/compaction) for the `agents.defaults.compaction` settings. | ||
| Use the `agents.defaults.compaction` setting in your `openclaw.json` to configure compaction behavior (mode, target tokens, etc.). | ||
|
|
There was a problem hiding this comment.
Config filename mismatch
This doc now says to configure compaction in openclaw.json, but elsewhere the repo consistently refers to ~/.openclaw/openclaw.json. If openclaw.json isn’t a supported config name, this change will mislead users and break the documented setup.
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/concepts/compaction.md
Line: 22:25
Comment:
**Config filename mismatch**
This doc now says to configure compaction in `openclaw.json`, but elsewhere the repo consistently refers to `~/.openclaw/openclaw.json`. If `openclaw.json` isn’t a supported config name, this change will mislead users and break the documented setup.
How can I resolve this? If you propose a fix, please make it concise.
Additional Comments (1)
Prompt To Fix With AIThis is a comment left during a code review.
Path: apps/macos/Sources/OpenClaw/GatewayEndpointStore.swift
Line: 622:637
Comment:
**Base path ignores instance URL**
`dashboardURL(for:)` now always uses `OpenClawConfigFile.gatewayControlUiBasePath()` (from the local config file) for `components.path`. If the app is connected to a *remote* gateway (or a direct remote URL), this can generate a dashboard URL with the wrong basePath (local file differs from remote config), leading to 404s/regressions for remote mode. This should derive the basePath from the same config source as `config.url` (i.e., remote gateway settings) rather than always reading the local config file.
How can I resolve this? If you propose a fix, please make it concise. |
| @@ -465,13 +467,40 @@ function buildMoonshotProvider(): ProviderConfig { | |||
| models: [ | |||
| { | |||
| id: MOONSHOT_DEFAULT_MODEL_ID, | |||
| name: "Kimi K2.5", | |||
| name: "Kimi K2 (0905 Preview)", | |||
There was a problem hiding this comment.
this seems unrelated... causing more work
…#15862) Co-authored-by: 帅小呆1号 <[email protected]>
…#15862) Co-authored-by: 帅小呆1号 <[email protected]>
…#15862) Co-authored-by: 帅小呆1号 <[email protected]>
…#15862) Co-authored-by: 帅小呆1号 <[email protected]>
…#15862) Co-authored-by: 帅小呆1号 <[email protected]>
Problem
The macOS app ignores the configured gateway.controlUi.basePath when opening the Dashboard, always using '/' which results in 404 when a custom basePath is set.
Solution
Fixes #15743
Greptile Overview
Greptile Summary
This PR fixes the macOS menu bar app’s “Open Dashboard” URL generation to respect
gateway.controlUi.basePathinstead of always opening/, by adding a config reader (OpenClawConfigFile.gatewayControlUiBasePath()) and wiring it intoGatewayEndpointStore.dashboardURL().It also includes unrelated documentation tweaks (compaction config text and GitHub skill GraphQL guidance) and expands Moonshot model provider defaults (correcting the default model id and adding additional model variants).
Confidence Score: 3/5
dashboardURL()now reads basePath exclusively from the local config file even when connected to a remote gateway URL, which can produce incorrect links in remote/direct modes. Additionally, the compaction doc change appears to reference a different config filename than the rest of the repo, which will mislead users.Last reviewed commit: 28d7741
(5/5) You can turn off certain types of comments like style here!