fix(chat): support folder selection and visible workspace roots - #657
Open
Is14w wants to merge 3 commits into
Open
fix(chat): support folder selection and visible workspace roots#657Is14w wants to merge 3 commits into
Is14w wants to merge 3 commits into
Conversation
Is14w
marked this pull request as ready for review
August 28, 2026 06:58
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 #654
Summary
FilesandFolderchoices. Desktop uses the native folder picker; WebUI accepts browser directory selection and imports the resulting directory tree.Change scope
agent-ui,agent-gui,agent-gateway/web, architecture docscrates/agent-ui/src/pages/chat/ChatComposerBar.tsxcrates/agent-ui/src/components/project-tools/file-tree/*crates/agent-gui/src/pages/ChatPage.tsxcrates/agent-gui/src/pages/chat/hooks/useUploadZoneDrop.tscrates/agent-gateway/web/src/app/{GatewayApp.tsx,GatewayAppView.tsx}crates/agent-gateway/web/src/app/hooks/{useDirectoryDropActions.ts,usePendingUploads.ts}crates/agent-gateway/web/src/lib/directoryDrop.tsdocs/architecture/{gui.md,webui.md}Screenshots / preview
Draft pending a manual desktop capture before review:
+->Folder, and select a directory outside the workspace.Verification
pnpm --dir crates/agent-ui typechecknode --test crates/agent-gateway/test/webui/directory-import.test.mjs(5 passed)node --test crates/agent-gui/test/chat/execution-mode-model-picker.test.mjs crates/agent-gui/test/settings/right-dock-model.test.mjs(39 passed)node --test crates/agent-gui/test/workspace-file-tree-row.test.mjs(2 passed)pnpm --dir crates/agent-gui buildpnpm --dir crates/agent-gateway/web buildgit diff --check upstream/main...HEADEarlier full-suite verification before this documentation-only follow-up:
pnpm --dir crates/agent-gateway/web test(633 passed)pnpm --dir crates/agent-gui test:frontend(2,613 passed; 5 pre-existing failures: four Windows CRLF-sensitive source-text assertions and one Rust/TypeScript builtin-provider preset synchronization assertion, none in paths modified by this PR.)Pre-submit checklist