Channel Workspace Bindings 无法删除绑定关系

Bug 描述 在 Settings → Channels(Telegram/Discord/Feishu)中的 Channel Workspace Bindings,当前只能新增和更新绑定关系,无法删除已有的绑定。 点击删除按钮后看似成功,但保存后绑定会重新出现。此外更新绑定时,必须先点删除再新增,操作流程也不顺畅。 原因分析 后端 server.ts 中的 deepMerge 函数保存设置时,只迭代 source 的 key 覆盖 target,不会删除 target 中多出的 key。导致前端删除 binding 后,旧数据在 merge 时被还原。 期望行为

  • 删除绑定后应立即生效并持久保存

  • channelWorkspaceMap 应当原子替换而非 deep merge

环境

  • 平台:macOS / 所有平台

  • 影响范围:Telegram、Discord、Feishu 的 Channel Workspace Bindings 配置

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
🐛

Bug Reports

Date

About 4 hours ago

Author

SuJiurong

Subscribe to post

Get notified by email when there are changes.