Tray gateway menu and Local AI page show the raw gateway URL

オープン 初心者向け
#2,004 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
desktop

調査の方向性

TrayMenuPresenter.cs の BuildGatewayFlyout と LocalAiPageViewModel.cs の GatewayDetail から始め、次に GatewayUrlHelper.SanitizeForDisplay を確認してください。サニタイズ済みの保存 URL を flyout の詳細と Local AI のフォールバックに使用し、利用可能な場合は親しみやすい名前を維持してください。保存 URL のクエリがどちらの文字列にも表示されないことを示す回帰テストを追加してください。両方の表示箇所でテストが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2

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.

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

  1. Direct-connect a gateway URL that still has a query, and leave the friendly name empty.
  2. Open the tray gateway menu and read the card detail.
  3. 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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openclaw/openclaw-windows-node のほかの issue

openclaw/openclaw-windows-node の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。