Skip to content

[Bug] Desktop 隧道公开链接丢失独立配置的 Gateway 端口 #807

Description

@yovinchen

Affected area

Desktop UI (agent-gui / React)

Version or commit

v1.3.5 / main@4eb6a4a8

Environment

macOS Apple Silicon,Desktop 连接自托管 Gateway;Docker 将 Gateway 的 8080 发布到宿主机 3000。

Steps to reproduce

  1. Remote 设置中分别填写 Gateway URL http://127.0.0.1、端口 3000,启用 Web Tunnels,并连接 Gateway。
  2. 为本地 http://127.0.0.1:3099/ 服务创建 HTTP 隧道。
  3. 查看隧道面板中的公开链接,或让 TunnelManager 返回隧道列表。

Expected behavior

公开链接包含 Gateway 发布端口:http://127.0.0.1:3000/t/<slug>/。面板显示、复制、打开和工具输出应与 Remote 连接使用同一个 Gateway 基址。

Actual behavior

链接为 http://127.0.0.1/t/<slug>/,丢失独立配置的 gatewayPort。桌面端仍可正常连接 Gateway,链路检查也可成功,因此连接状态不能发现错误的公开链接。

Logs / investigation

ChatPage.tsx 的两处面板入口和 useSendChatTurn.ts 的工具注册只传入 settings.remote.gatewayUrl.trim();Rust 的实际连接则使用 URL 与独立端口。Gateway 返回的是 /t/<slug>/ 相对路径,不知道外部 Docker 发布端口。

在 main@4eb6a4a8 检查时,这些调用点仍保留上述行为。Gateway WebUI 使用浏览器 origin,不属于本问题的触发入口。

Pre-submit checklist

  • I searched existing issues and pull requests and found no duplicates.
  • This is not a security vulnerability.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions