Repository navigation
Closed
Labels
Description
Summary
Requested: a default agent for a project's chats, when the project has agents. By default it is the first agent created in the project; it can be changed. It builds on choosing an agent in a project chat (#5361). Today a project has no such setting, and chats have no agent at all. Checked on main 7d7b1ee98 (2026-11-04).
What exists today (main 7d7b1ee98)
- The project's General page holds "name, description, standing instructions, sharing, and the default task reviewer" (
docs/en/platform/projects/concepts.md:12). A default task reviewer exists; a default chat agent does not. - Agents are stored per project with
created_at_ms(app.project_agents), so "the first agent created" is defined. Up to 50 agents per project (docs/en/platform/projects/project-agents.md). - A project without agents of its own has the organization's standard agent for tasks (
docs/en/platform/projects/project-agents.md, "standard agent").
Requested behaviour (as stated)
- Only when the project has agents: a default agent for its chats.
- Default: the first agent created in the project.
- It can be changed.
Questions for the design
- Who may change the default: Editors and Admins, like the default reviewer?
- What happens when the default agent is deleted or renamed: fall back to the next oldest agent, or to the assistant?
- Does the default apply to chats that already exist, or only to new ones?
- May a person override it per chat in the picker (feat(platform): choose or remove a chat's project from the chat, with the agent choice following the project #5362)?
- A project with no agents of its own: the assistant, or the standard agent?
- Members whose runs exclude the agent's secrets: same default, with the same exclusions?
Options (no preference)
- A Default chat agent field on the project's General page, beside the default reviewer, prefilled with the oldest agent and kept in sync until someone picks one.
- No stored setting: the picker always preselects the oldest agent, and the person's last choice per project is remembered.
- A per-agent switch "Answers in this project's chats", where the oldest switched-on agent is the default.
Related
- feat(platform): let a project chat work with the project's agents, chosen in the chat #5361, feat(platform): choose or remove a chat's project from the chat, with the agent choice following the project #5362
Decision (2026-11-05)
A Default chat agent field on the project's General page, beside the default task reviewer (option 1 above). Part of #5371.
- Choices: First agent created (the default; it names the agent it currently means), any of the project's own agents, or Assistant (no agent).
- Editors and Admins change it on an active project, with the same check as the reviewer against a save made from an outdated page.
- A deleted default falls back to the first agent created; a rename changes nothing.
- It applies to chats started in the project and to chats moved into it: each chat records its agent at that moment. Existing chats keep theirs; chats from before this change keep the assistant.
- Per chat, the person can switch agents in the composer (feat(platform): let a project chat work with the project's agents, chosen in the chat #5361).
- A project with no agents of its own: the assistant; the field says so and offers nothing to choose. The standard agent never counts.
- Members get the same default; a chat with an agent carries no secrets for anyone (feat(platform): let a project chat work with the project's agents, chosen in the chat #5361).
Storage: app.projects.default_chat_agent_id (cleared when that agent is deleted, and read as "first agent created" whenever it names no agent of the project) plus app.projects.chats_start_with_assistant.
Done when
- The General page shows the field to editors (read-only to Members), saves it, and refuses a stale save.
- A new chat in the project starts with the chosen default, or with the oldest agent while the field is on First agent created, or with the assistant.
- Deleting the default agent makes new chats start with the next oldest agent.
- Unit and integration tests hold the resolution and the writes; the projects manual suite has boxes for it.
Activity
tale-review-bot commentedon Nov 5, 2026
Decision: #5364 (TALE-449) lands on the stable line,
train, as #5371 asks. It is the second of the four parts, and it waits in Backlog until TALE-446 (#5361) is 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.
app.projects.default_chat_agent_id, cleared when that agent is deleted, andapp.projects.chats_start_with_assistant);Access. I adopt the issue's decision as written, since it is the narrowest form:
Order. After TALE-446 (#5361), which adds a chat that answers as an agent. TALE-447 (#5362) and TALE-448 (#5363) wait for this one.
Who acts next. Triage moves it to To do once TALE-446 is Done. Then
@Coderbuilds it, and the squash message ends withCloses #5364.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.PROJECT_CHAT_AGENT_STALE). Editors and admins change it on an active project.projects.default_chat_agent_idandchats_start_with_assistant. Rules PROJ-R26 to PROJ-R28; manual boxes PROJ-F79, PROJ-F80, PROJ-B37, PROJ-B38 and PROJ-A12; docs inplatform/projects/concepts(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 #5364), 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-449 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