[Bug]: 无法删除工作区路径失效的个人助理(Workspace path is not a managed assistant workspace)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start with WorkspaceService::is_assistant_workspace_path and the Tauri commands in src/apps/desktop/src/api/commands.rs, then inspect the workspace_data.json rootPath migration behavior. Also review FlowChatStore.deleteSession for the related invalid-path guard. Done means legacy BitFun assistant workspaces can be deleted or reset safely, and the reported stale-session behavior is addressed without breaking managed-path protections.
Written by the indexing model from the issue text.
Description
Summary
删除一个在 BitFun 时代创建的个人助理时,后端始终拒绝并报错:
Workspace path is not a managed assistant workspace: /Users/DevEcoNew/.bitfun/personal_assistant/workspace-44e0e781
确认弹窗点击"删除个人助理"后,左下角弹出上述错误通知,该助理永远无法从 UI 删除。
根因分析:
- 该助理工作区记录(
workspace_data.json)的rootPath仍指向旧品牌数据根~/.bitfun/personal_assistant/workspace-<id>,且该目录真实存在;BitFun → OpenBitFun 品牌迁移后,受管助理根变为~/.openbitfun/personal_assistant/,迁移未搬移该目录、也未重写记录的rootPath。 WorkspaceService::is_assistant_workspace_path只接受新根下的workspace/workspace-<id>布局,导致delete_assistant_workspace、reset_assistant_workspace、reset_workspace_persona_files三个命令全部以 "not a managed assistant workspace" 拒绝操作。- 结果:升级兼容性破坏——旧版本创建的助理工作区在当前版本中无法删除或重置,用户被永久卡死。
同类症状: 工作区路径失效的会话在会话列表中同样无法删除(前端 FlowChatStore.deleteSession 残留 workspace path 守卫,导致后端 ID-first 的 delete_session 从未被调用,错误被吞掉后 UI 先删、重启复活)。
Area
Desktop app(Tauri 命令 delete_assistant_workspace 等,src/apps/desktop/src/api/commands.rs);UI 入口为工作区/个人助理列表的删除确认弹窗。
Reproduction or evidence
- 存在一个 BitFun 时代创建的个人助理,其工作区记录
rootPath指向~/.bitfun/personal_assistant/workspace-<id>,且目录未被迁移搬走(迁移部分完成/跳过即可出现)。 - 在个人助理管理界面点击删除,确认弹窗提示"此操作会永久删除该个人助理的工作区目录,以及其中的所有文件。"
- 点击"删除个人助理",左下角出现错误通知
Workspace path is not a managed assistant workspace: /Users/.../.bitfun/personal_assistant/workspace-...,删除失败,重试永远相同。
删除确认弹窗:

删除失败错误通知:

Environment
- macOS
- 复现于 main 分支构建(2026-09-20)
- 数据背景:BitFun → OpenBitFun 升级迁移未覆盖该助理目录
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 236
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 619
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GCWing/OpenBitFun
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
GCWing/OpenBitFun#3213 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GCWing/OpenBitFun#2363 ·
-
question
Difficulty 1/5 Under an hour Newbie friendliness 78/100
GCWing/OpenBitFun#2340 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
GCWing/OpenBitFun#3210 ·
-
GCWing/OpenBitFun#3195 · 2 comments · 1 assignee ·
All issues in GCWing/OpenBitFun
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yantrikos/yantrik-os#255 ·
-
bug CLI custom-model
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
raphamorim/rio#1956 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 comment ·