[Bug]: 工作目录识别错误/侧边栏工作区删除后自动重建/会话滚动位置异常/QQ消息无对应会话关联
Version line
v2 — Go rewrite (1.x), main-v2 (active development)
Exact version
Desktop 1.9.1
What happened?
实际现象
共发现 4 处异常:
-
工作区路径识别错误 在新工作区启动 Reasonix时,程序识别的工作目录指向之前通过 PowerShell 快捷图标启动(CLI)过的旧目录,而非当前真实的工作区路径,疑似启动路径缓存异常。
-
侧边栏工作区移除后自动重建 从侧边栏删除工作区目录后,下次启动程序仍会自动加载该目录;即使手动删除本地对应的文件夹,重启后程序会自动创建带
.reasonix的同名目录并重新加入侧边栏。 -
会话默认滚动位置异常 启动程序后,会话默认滚动到页面最顶部;若会话处于折叠状态,则滚动到折叠位置,而非自动滚动到最后一条 AI 回复的底部。
-
QQ 机器人消息无对应会话关联 配置 QQ 机器人连接后,可以正常收发消息,但 UI 中不显示对应会话,也无法选择由哪个会话处理 QQ 消息。v1 版本 0.53.x 中可以自动识别用户当前会话,交互逻辑更合理。
预期行为
- 启动时应识别当前真实工作区目录,不应复用缓存的旧路径
- 侧边栏移除的工作区不应自动恢复,本地目录删除后更不应自动重建
- 打开会话时默认滚动到最新一条消息底部
- QQ 机器人消息应关联到对应会话,支持选择或自动匹配当前活动会话
Steps to reproduce
问题 1 复现步骤
- 通过 PowerShell 快捷方式在目录 A 启动 Reasonix CLI并使用
- 切换到新目录 B,以新工作区启动 Reasonix Desktop
- 查看让AI识别的当前工作目录,发现仍指向目录 A
问题 2 复现步骤
- 在侧边栏右键移除某个工作区目录
- 关闭 Reasonix 后重新启动
- 观察侧边栏,已移除的工作区再次出现
- 手动删除该工作区的本地文件夹,再次重启程序
- 程序自动重建带
.reasonix的同名目录并加载到侧边栏
问题 3 复现步骤
- 打开一个包含历史消息的会话
- 关闭程序后重新启动
- 会话默认滚动到顶部,而非最新消息底部
问题 4 复现步骤
- 配置并启用 QQ 机器人连接
- 在 QQ 中发送消息与 Reasonix 交互
- 查看程序 UI,找不到对应的会话入口,无法选择处理消息的会话
OS / platform
Windows 11
Relevant logs or output
For item 2 only (sidebar workspace/project reappears after being removed): this is covered by #4591 and is fixed on latest main-v2.
I verified the current path:
- Project tree removal calls
RemoveWorkspace(path). RemoveWorkspaceremoves the path from both the legacy workspace list anddesktop-projects.json.- The active workspace pointer is also cleared or moved to a remaining project when needed.
Verification on latest main-v2 (9ada14176):
go test . -run TestRemoveWorkspaceUsesSharedProjectRegistryForCurrentProject -count=1 -v
#4591 has been closed as fixed. I am not closing this aggregate issue because items 1, 3, and 4 describe separate behaviors that should be tracked or verified independently.
For item 3 only (default conversation scroll position / opening a session at the top): this is covered by #5029.
#5029 adds a desktop reveal signal for tab/topic/session entry points, forces a layout-aware bottom snap after reveal, and adds a centered jump-to-bottom button when the user is away from the tail.
I am leaving this aggregate issue open because items 1 and 4 describe separate workspace-path and QQ/bot-session behaviors. Item 2 was already tracked separately in #4591.
Update for the workspace-path and QQ/bot-session parts of this issue: #5893 has been merged into main-v2.
What changed:
- Subagent tasks now receive the active workspace in the child user turn and are guided to prefer
./ relative paths unless the user explicitly names another absolute path. - Bot sessions now use connection-level
session_mappingsfor remote/chat/user/thread workspace routing. - If an existing bot controller no longer matches the desired model/workspace profile, it is rebuilt instead of silently reusing the stale workspace.
- Desktop now emits a warning when an existing saved session binding switches a tab to that session's saved workspace.
Verified:
go test -p 1 ./...(cd desktop && go test ./...)./scripts/cache-guard.sh- PR CI for #5893 is green.
Release availability: merged to main-v2 in #5893 / merge commit 23ce2a7; it will be available in builds/releases that include that commit.
I am keeping this aggregate issue open because the earlier sidebar-removal and scroll-position items were tracked separately, and any remaining QQ/session UI selection behavior should still be verified independently.