Skip to content

fix(macos): respect gateway.controlUi.basePath in Dashboard URL - #15862

Merged
steipete merged 1 commit into
openclaw:mainfrom
Shuai-DaiDai:fix-15743-macos-dashboard-basepath
Feb 14, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
Shuai-DaiDai:fix-15743-macos-dashboard-basepath

Conversation

@Shuai-DaiDai

@Shuai-DaiDai Shuai-DaiDai commented Feb 14, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Added gatewayControlUiBasePath() method to read the config
  • Updated dashboardURL() to use the configured basePath
  • Properly formats path with leading/trailing slashes

Fixes #15743

Greptile Overview

Greptile Summary

This PR fixes the macOS menu bar app’s “Open Dashboard” URL generation to respect gateway.controlUi.basePath instead of always opening /, by adding a config reader (OpenClawConfigFile.gatewayControlUiBasePath()) and wiring it into GatewayEndpointStore.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

  • This PR is mostly safe, but has at least one behavior issue that can break remote dashboard URLs and one doc inconsistency.
  • The macOS basePath fix is straightforward for local gateways, but 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.
  • apps/macos/Sources/OpenClaw/GatewayEndpointStore.swift, docs/concepts/compaction.md

Last reviewed commit: 28d7741

(5/5) You can turn off certain types of comments like style here!

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment on lines 22 to 25
## 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.).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@greptile-apps

greptile-apps Bot commented Feb 14, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (1)

apps/macos/Sources/OpenClaw/GatewayEndpointStore.swift
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.

Prompt To Fix With AI
This 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos agents Agent runtime and tooling size: S labels Feb 14, 2026
@steipete steipete self-assigned this Feb 14, 2026
Comment thread src/agents/models-config.providers.ts Outdated
@@ -465,13 +467,40 @@ function buildMoonshotProvider(): ProviderConfig {
models: [
{
id: MOONSHOT_DEFAULT_MODEL_ID,
name: "Kimi K2.5",
name: "Kimi K2 (0905 Preview)",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems unrelated... causing more work

@steipete
steipete merged commit bdc63b5 into openclaw:main Feb 14, 2026
9 checks passed
@openclaw-barnacle openclaw-barnacle Bot removed docs Improvements or additions to documentation agents Agent runtime and tooling labels Feb 14, 2026
GwonHyeok pushed a commit to learners-superpumped/openclaw that referenced this pull request Feb 15, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: macOS app “Open Dashboard” ignores gateway.controlUi.basePath and opens /?token=... (404)

2 participants