Repository navigation
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The promised chat-header ellipsis entry point does not expose the new action.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
This PR adds in-place folder management to thread actions in the T3 Code web client for projects backed by a .code-workspace file.
Changes:
- Adds a conditional “Manage folders...” action after Project settings.
- Opens the existing folders dialog for the thread’s own project from the sidebar thread menu and chat title menu.
- Tests the action’s visibility and position.
| File | Description |
|---|---|
| apps/web/src/hooks/useThreadActionMenu.ts | Connects the chat thread action to the folders dialog. |
| apps/web/src/components/threadActionMenu.logic.ts | Defines the conditional menu item. |
| apps/web/src/components/threadActionMenu.logic.test.ts | Tests item visibility and order. |
| apps/web/src/components/Sidebar.tsx | Opens the dialog from a sidebar thread menu. |
| apps/web/src/components/chat/ChatHeader.tsx | Renders the dialog from the chat header. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.

What Changed
The thread action menu has a new "Manage folders..." item, placed right after "Project settings". It shows only when the thread's project comes from a
.code-workspacefile. Picking it opens the existingProjectFoldersDialogin place.The item appears on both surfaces that build this menu:
useThreadActionMenu.The dialog targets the thread's own project (
thread.environmentId+thread.projectId), not the sidebar group, because a group can span checkouts on several environments.Why
Before this change, the default sidebar had two ways into the folders dialog. Project settings → Folders leaves the chat view. The legacy sidebar's project-header menu is off by default. Managing folders now takes one right-click from the thread you're working in.
UI Changes
_Video/screenshot:
compare.mp4