Skip to content

feat(platform): choose or remove a chat's project from the chat, with the agent choice following the project #5362

Closed

Description

@yannickmonney

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/project takes a projectId or null (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)

  1. A normal chat can select a project and becomes a project chat; removing the project makes it a normal chat again.
  2. Which agents can be chosen depends on whether a project is selected, and which one.
  3. A project chat shows its project as selected.
  4. 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)

  1. 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.
  2. A project selector in the chat header, beside the title, reusing Move to project…; the composer gets only the agent picker.
  3. Choose the project only before the first message (draft); later changes stay in the actions menu.

Related

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

  1. added
    priority: medium
    needs discussion
    feat
    service: platform
    on Nov 4, 2026
  2. added
    priority: high
    and removed
    priority: medium
    needs discussion
    on Nov 5, 2026
  3. added
    agent-ready
    on Nov 5, 2026
  4. tale-review-bot commented on Nov 5, 2026

    @tale-review-bot
    Collaborator

    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 on train.

    The question, the options, the reasons and where agent-ready came from are in the decision on #5361: #5361 (comment)

    In short:

    Line, kind and priority.

    • Line: stable
    • Kind: feat, already on the issue.
    • Priority: p2, set now, because the issue carries priority: high.

    What done means.

    • The issue's "Done when", as written.
    • The user docs in EN, DE and FR change with the code.

    Access. I adopt the issue's decision as written, since it is the narrowest form:

    • only the chat's owner gets the chip, as with Move to project…;
    • only active projects the person can open are offered;
    • a chat shared with its project asks before the move ends its share.

    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 @Coder builds it, and the squash message ends with Closes #5362.

    What would change this. A maintainer's word on #5371, on this issue or on its task, as on #5361.

  5. added a commit that references this issue on Nov 5, 2026
    ff29eea
  6. yannickmonney commented on Nov 5, 2026

    @yannickmonney
    ContributorAuthor

    Landed on train in ff29eea (feat(platform): let project agents answer in chat and propose changes). It closes when the train reaches main.

    • The message box shows the chat's project. A new chat is filed where it is chosen there, an open chat moves when another project is chosen, and Remove from project takes it out. Moving a chat that is shared with its project asks first (Move this shared chat?), because the share ends.
    • A project the person can't open (a stale ?projectId=) reads as Unavailable project.
    • The project and agent menus work by keyboard, and picking a project in a chat's Move to project… submenu now closes the whole menu.
    • Tests: chat-agents.spec.ts (e2e), thread-row.test.tsx, composer-agent-picker.test.tsx; manual boxes CHAT-F88, CHAT-F89 and CHAT-A13; docs in platform/chat/basics (en, de, fr).
  7. removed
    agent-ready
    on Nov 5, 2026
  8. tale-review-bot commented on Nov 5, 2026

    @tale-review-bot
    Collaborator

    Done upstream: ff29eea34ea3cc0ed01bcab6db66e07375cca44e (feat(platform): let project agents answer in chat and propose changes, Closes #5362), on train since 04:54:55Z. It reaches main with 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 leaves train without reaching main, the Lead reopens this issue.

  9. added 2 commits that reference this issue on Nov 5, 2026
    8d37319
    32e9827
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featpriority: highservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions