Skip to content

[Bug] Web 侧栏设备列表显示 platform(win32/linux)而非主机名 #4170

Description

@notxx

你运行的 Kimi Code 版本是?

2.1.1

你使用的是哪个开放平台/订阅?

moonshot.cn

你使用的是哪个模型?

No response

你的电脑平台是?

No response

你遇到了什么问题?

web 页面侧栏及设备列表把 platform(win32)当设备名显示

复现步骤?

  • 复现: 开启 remote control 后,用浏览器打开 {relay}/devices/{device_id}/?rc=1
  • 根因: 前端渲染层取 device.platform,应取 device.alias
  • 证据:
    • GET /v1/remote/devices 返回的设备对象含 alias(即注册时上报的 os.hostname())
    • 构建产物 index-*.js 中设备渲染仅引用 ?.platform,从未引用 ?.alias
    • 受影响位置: sidebar 当前设备 + 在线/离线设备列表项,共 3 处

期望的行为是什么?

显示 device.alias

补充信息

No response

Contribution

  • 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)

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