fix(workbench): 将文件树独立 Pane 与路径拖拽补合到 main - #685
Merged
Conversation
* feat(workbench): add file tree pane and path drag (#661) * fix(workbench): move file tree fully out of dock * fix(workbench): route file tree drops in desktop * perf(workbench): coalesce pane drag updates * fix(desktop): mirror workspace path drag feedback * docs(workbench): add file tree pane preview * fix(workbench): address file tree pane review findings - Carry external multi-root grants into the Workbench file tree pane via a shared useFileTreeExternalRoots hook, so leasing the tree out of the Right Dock no longer hides external roots on Desktop and WebUI. - Stop a lingering workspace-path payload from claiming an OS "Files" drag during the dragend-to-native-drop handoff window. - Publish a pointer-free WorkbenchDragRenderState so the overlay model no longer exposes a stale pointer field. - Refuse workspace-path drags for external roots explicitly instead of relying on the payload validator's control-character rejection. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Linked issue
Closes #661
Summary
PR #665 已合并到其堆叠目标分支
feat/session-workbench-web,但父 PR #662 先以 squash 方式进入main,导致文件树独立 Pane 与工作区路径拖拽没有进入主线。本 PR 将 #665 的已验证改动原样补合到最新
main,恢复:不包含工作区中未提交的 Provider Registry 文档改动。
Change scope
agent-ui/agent-gui/agent-gateway WebUIcrates/agent-ui/src/components/project-tools/file-tree/**crates/agent-ui/src/lib/chat/workspacePathDrag.tscrates/agent-ui/src/lib/workbench/**crates/agent-gui/src/pages/ChatPage.tsxcrates/agent-gateway/web/src/app/workbench/useGatewayWorkbench.tsScreenshots / preview
Verification
pnpm --dir crates/agent-ui typecheckpnpm --dir crates/agent-gui exec tsc --noEmitpnpm --dir crates/agent-gateway/web exec tsc --noEmitpnpm --dir crates/agent-ui lintpnpm --dir crates/agent-gui lintpnpm --dir crates/agent-gateway/web lint(通过,保留目标分支已有的 1 条noImportantStyleswarning)pnpm --dir crates/agent-gui buildpnpm --dir crates/agent-gateway/web buildgit diff --check origin/main..HEADPre-submit checklist