Tray gateway menu and Local AI page show the raw gateway URL
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
TrayMenuPresenter.cs の BuildGatewayFlyout と LocalAiPageViewModel.cs の GatewayDetail から始め、次に GatewayUrlHelper.SanitizeForDisplay を確認してください。サニタイズ済みの保存 URL を flyout の詳細と Local AI のフォールバックに使用し、利用可能な場合は親しみやすい名前を維持してください。保存 URL のクエリがどちらの文字列にも表示されないことを示す回帰テストを追加してください。両方の表示箇所でテストが通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happens
The tray gateway flyout puts Uri.ToString() of the saved gateway URL in the card detail. That string keeps userinfo, the query, and the fragment. The card title already shows host and port, so the detail is a second, fuller copy.
The Local AI page shows the same saved URL when the gateway has no friendly name. Direct connect stores the URL after NormalizeForWebSocket, which removes userinfo and leaves the query and fragment. GatewayUrlHelper.SanitizeForDisplay is not used on either surface.
Where
Checked on 7967d509 by reading the code. The tray and Local AI page were not opened.
- Flyout detail: TrayMenuPresenter.cs
- Local AI detail: LocalAiPageViewModel.cs
Suggested fix
Display GatewayUrlHelper.SanitizeForDisplay of the saved URL in both places. Prefer the friendly name on Local AI when one exists, and use the sanitized URL only as the fallback.
Environment
Windows 11. OpenClaw Companion source on main at commit 7967d509886fc9efecbb19c8236350a82867f69c (2026-11-04). No packaged installer build was used.
Steps
- Direct-connect a gateway URL that still has a query, and leave the friendly name empty.
- Open the tray gateway menu and read the card detail.
- Open Local AI and read the gateway line.
TrayMenuPresenter.BuildGatewayFlyout sets the detail to gatewayUri.ToString(). LocalAiPageViewModel.GatewayDetail falls back to GatewayUrl when GatewayName is empty. The card title already shows host and port.
Repair
Use GatewayUrlHelper.SanitizeForDisplay for the flyout detail and for the Local AI fallback. Add a regression that a query on the saved URL does not appear in either string. Stop there. This is not the Connection Status list (#2001) or the chat error (#2006).
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 340
- 平均マージ
- 3日 3時間
- マージ済み PR(30日)
- 168
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openclaw/openclaw-windows-node のほかの issue
-
clawsweeper:bulk-filed clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openclaw/openclaw-windows-node#2010 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:bulk-filed clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
openclaw/openclaw-windows-node#2009 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openclaw/openclaw-windows-node#2008 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openclaw/openclaw-windows-node#2007 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
openclaw/openclaw-windows-node#2006 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
openclaw/openclaw-windows-node の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Facepunch/sbox-public#12305 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
flyingpie/windows-terminal-quake#419 ·
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
a-corriger documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
christian-raj/S-Aloha#272 ·