Fix: Force dashboard command to use localhost URL#16434
Merged
gumadeiras merged 3 commits intoopenclaw:mainfrom Feb 14, 2026
Merged
Fix: Force dashboard command to use localhost URL#16434gumadeiras merged 3 commits intoopenclaw:mainfrom
gumadeiras merged 3 commits intoopenclaw:mainfrom
Conversation
348a633 to
e9117ea
Compare
e9117ea to
f2640d0
Compare
Always use localhost for dashboard URL regardless of gateway bind mode to satisfy browser secure context requirements (HTTPS or localhost). Changes: - Force bind="loopback" in resolveControlUiLinks call - Remove unused bind variable - Add comment explaining the reasoning When bind=lan, browsers reject WebSocket connections to LAN IPs due to secure context policy. Since dashboard is always accessed locally and gateway bound to 0.0.0.0 accepts both localhost and LAN connections, using localhost eliminates the error without affecting functionality. Fixes openclaw#16423 Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
f2640d0 to
3c03b4c
Compare
Member
This was referenced Feb 14, 2026
Merged
philga7
pushed a commit
to philga7/openclaw-fork
that referenced
this pull request
Feb 14, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
akoscz
pushed a commit
to akoscz/openclaw
that referenced
this pull request
Feb 15, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
GwonHyeok
pushed a commit
to learners-superpumped/openclaw
that referenced
this pull request
Feb 15, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
vincentkoc
pushed a commit
to vincentkoc/openclaw
that referenced
this pull request
Feb 15, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
snowzlm
pushed a commit
to snowzlm/openclaw
that referenced
this pull request
Feb 15, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras (cherry picked from commit b9d1485) # Conflicts: # CHANGELOG.md # src/commands/dashboard.test.ts
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras (cherry picked from commit b9d1485) # Conflicts: # CHANGELOG.md # src/commands/dashboard.test.ts
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 3c03b4c Co-authored-by: BinHPdev <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
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
Fixes #16423 - Dashboard now uses localhost URL to avoid browser secure context errors
Problem
When
gateway.bind="lan", theopenclaw dashboardcommand generated URLs with LAN IP (e.g.,http://192.168.31.137:18789/). Browsers rejected WebSocket connections to these URLs due to secure context policy requiring "HTTPS or localhost."Solution
Force dashboard command to always use localhost (127.0.0.1) regardless of gateway bind configuration.
Changes
Modified
src/commands/dashboard.ts:bind: "loopback"inresolveControlUiLinks()callbindvariableRationale
0.0.0.0or LAN, still accepts localhost connectionsBefore
After
Testing
🤖 Generated with Claude Code
Greptile Overview
Greptile Summary
Forces dashboard command to always use
localhost(127.0.0.1) instead of respectinggateway.bindconfiguration. This prevents browser secure context errors when gateway is bound to LAN IP addresses, since browsers require HTTPS or localhost for WebSocket connections. The change is safe because:0.0.0.0or LAN addressesstatuscommand (src/commands/status.command.ts:199-206) still respects thebindconfiguration for display purposesbind: "loopback"(src/commands/dashboard.e2e.test.ts:80-85)Confidence Score: 5/5
bind: "loopback"is appropriate for dashboard command since it's always accessed locally. Tests confirm the expected behavior, and the change doesn't affect other parts of the system (status command still shows actual bind configuration).Last reviewed commit: dda36bb