Repository navigation
Description
Summary
Requested: choose a project in a normal chat, which makes it a project chat, and remove the project again, which makes it a normal chat, from the chat itself. The agent choice follows the selected project. The UI and UX should be thought through: a project chat shows its project as selected, and the agent picker does not appear when the project has no agent.
Today the project of an existing chat can be changed only through Move to project… / Remove from project in the chat's actions menu or the sidebar row menu, or by dragging the chat onto a project. A new chat gets its project only when it is started from the project. Nothing in the composer shows or changes the project. Checked on main 7d7b1ee98 (2026-11-04).
What exists today (main 7d7b1ee98)
POST /api/app/chat/threads/:threadId/projecttakes aprojectIdornull(services/platform/backend/domains/chat/routes.ts:507-529).- The header's Conversation actions and the sidebar row menu share Move to project… and Remove from project (
services/platform/app/features/chat/hooks/use-thread-menu-actions.tsx:4-11,:143,:202-203). Observed in a project chat's header menu: Share, Export, Pin chat, Move to project…, Archive, Delete. - A project chat's header shows the project's name under the title (observed). The composer shows the model picker only.
- A new project chat starts from the project's Chats tab (New chat opens
/chat?projectId=…). - Moving a chat changes what its next turns read: the project's instructions and files (
services/platform/backend/core/chat/project_context.ts). Moving a shared chat to another project or out of it ends its project share (docs/en/platform/projects/concepts.md:46). - Agents: see feat(platform): let a project chat work with the project's agents, chosen in the chat #5361. No chat can choose an agent today.
Requested behaviour (as stated)
- A normal chat can select a project and becomes a project chat; removing the project makes it a normal chat again.
- Which agents can be chosen depends on whether a project is selected, and which one.
- A project chat shows its project as selected.
- No agent picker when the selected project has no agent.
Questions for the design
- Where the control lives: composer (beside the model picker), header, or both, and how it reads on a phone.
- A new chat (draft) versus a chat with history: may the project change mid-conversation? The next turn would read another project's instructions and files.
- Projects the person cannot open, and archived projects.
- Does the organization's standard agent count as "an agent" for a project with none of its own?
- What happens to the chosen agent when the project is removed or changed: reset to the assistant, or keep it while it is allowed?
- Share state: moving ends a project share today. Should the control warn first?
Options (no preference)
- A project chip in the composer (like the model trigger) with a searchable project list and "No project"; an agent section appears in the picker once a project with agents is chosen.
- A project selector in the chat header, beside the title, reusing Move to project…; the composer gets only the agent picker.
- Choose the project only before the first message (draft); later changes stay in the actions menu.
Related
- feat(platform): let a project chat work with the project's agents, chosen in the chat #5361 (agents in project chats), feat(platform): a default agent for a project's chats — the first agent created unless changed #5364 (default agent), Improvement: make clear in the UI that a project's tasks are visible to its members while its chats stay private (investigate) #5365 (what is shared with whom)
Decision (2026-11-05)
A project chip in the composer, first in the toolbar after + (option 1 above; the header keeps showing the project as it does today). Part of #5371.
- In a project chat the chip shows the project's avatar and name; in any other chat it reads Project. Its menu lists the projects the person can open (active ones, searchable, the current one checked) and No project in a project chat.
- Before the first message (a new chat) the chip only sets where the chat will be created. The address carries
?projectId=, as New chat in a project does today; No project starts a plain new chat. - In a chat with messages choosing a project is the existing Move to project…, with the same route and the same effects. A chat shared with its project asks first, because moving it ends the share. The project may change mid-conversation; the menu says that the next replies read the new project's instructions and files.
- The agent follows the project: moving a chat into a project sets its agent to that project's default chat agent (feat(platform): a default agent for a project's chats — the first agent created unless changed #5364); removing the project sets the assistant. The agent picker (feat(platform): let a project chat work with the project's agents, chosen in the chat #5361) appears only when the selected project has agents of its own, and the standard agent does not count.
- Only the chat's owner gets the chip, as with Move to project…; a colleague reading a shared chat does not.
- Archived projects are not offered, as in Move to project….
- Phone: the chip keeps the avatar and a truncated name; the toolbar's left group already scrolls sideways.
Done when
- A new chat can pick a project before its first message and is created in it; No project creates a plain chat.
- An existing chat moves to the picked project or out of projects from the chip, the header follows, and a shared chat asks before its share ends.
- The agent picker appears and disappears with the project's agents, and a move leaves the chat with the new project's default chat agent.
- Keyboard and screen-reader use work (labelled trigger, searchable list, focus returns to the field); browser and E2E tests hold it; the chat suite has manual boxes for desktop and phone.
Activity
tale-review-bot commentedon Nov 5, 2026
Decision: #5362 (TALE-447) lands on the stable line,
train, as #5371 asks. It is the third of the four parts, and it waits in Backlog until TALE-446 (#5361) and TALE-449 (#5364) are ontrain.The question, the options, the reasons and where
agent-readycame from are in the decision on #5361: #5361 (comment)In short:
needs discussion, so nothing waits for a person.Line, kind and priority.
feat, already on the issue.priority: high.What done means.
Access. I adopt the issue's decision as written, since it is the narrowest form:
Order. After TALE-446 (#5361) and TALE-449 (#5364): a move sets the new project's default chat agent, and the chip shows the agent picker. It does not wait for TALE-448 (#5363).
Who acts next. Triage moves it to To do once both are Done. Then
@Coderbuilds it, and the squash message ends withCloses #5362.What would change this. A maintainer's word on #5371, on this issue or on its task, as on #5361.
feat(platform): let project agents answer in chat and propose changes
yannickmonney commentedon Nov 5, 2026
Landed on
trainin ff29eea (feat(platform): let project agents answer in chat and propose changes). It closes when the train reachesmain.?projectId=) reads as Unavailable project.chat-agents.spec.ts(e2e),thread-row.test.tsx,composer-agent-picker.test.tsx; manual boxes CHAT-F88, CHAT-F89 and CHAT-A13; docs inplatform/chat/basics(en, de, fr).tale-review-bot commentedon Nov 5, 2026
Done upstream:
ff29eea34ea3cc0ed01bcab6db66e07375cca44e(feat(platform): let project agents answer in chat and propose changes,Closes #5362), ontrainsince 04:54:55Z. It reachesmainwith a merge train and ships in v0.5.101 at the earliest; see the Lead's decision on #5371 (#5371 (comment)). Board task TALE-447 is cancelled. If the commit leavestrainwithout reachingmain, the Lead reopens this issue.feat(platform): let project agents answer in chat and propose changes
feat(platform): let project agents answer in chat and propose changes