Feature/zhengruhao real workspace reapply - #13
Merged
yezi6690-cell merged 4 commits intoJul 9, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本次 PR 在最新 upstream/main 基础上重新应用真实 Workspace 绑定功能。
主要改动:
Agent 可以使用用户选择的真实本地目录作为默认工作区,而不是继续写入内部沙箱。
不同 Agent 可以绑定不同的工作目录,方便针对不同项目或文件夹执行任务。
当前会话可以临时切换 Workspace,优先级高于 Agent 默认 Workspace 和全局 Workspace。
文件读写、文件编辑、文件搜索、Shell、Git 等工具都会基于当前有效 Workspace 执行。
在 Workspace 模式下,工具仍然被限制在选定工作区内,避免误操作工作区外的文件。
修复 workspace_dir 无法保存到 config.toml 的问题,使用户选择的 Workspace 在重启后仍然保留。
已将源项目最新 main 分支合并到当前功能分支,并完成本地适配。
本地验证:
已成功合并最新 upstream/main。
已完成本地编译运行测试。
npm.cmd run tauri -- dev可正常启动。合并过程中出现的 gateway 工具参数适配问题已修复。
本次改动只对windows进行测试未对其他平台进行测试