Skip to content

feat(platform): a default agent for a project's chats — the first agent created unless changed #5364

Closed

Description

@yannickmonney

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)

  1. Only when the project has agents: a default agent for its chats.
  2. Default: the first agent created in the project.
  3. 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)

  1. 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.
  2. No stored setting: the picker always preselects the oldest agent, and the person's last choice per project is remembered.
  3. A per-agent switch "Answers in this project's chats", where the oldest switched-on agent is the default.

Related

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

  1. added
    priority: low
    needs discussion
    feat
    service: platform
    on Nov 4, 2026
  2. added
    priority: high
    and removed
    priority: low
    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: #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 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.
    • Because it ships in a patch release:
      • the migration only adds (app.projects.default_chat_agent_id, cleared when that agent is deleted, and app.projects.chats_start_with_assistant);
      • an image from before it keeps working during a rolling deploy;
      • 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:

    • Editors and Admins change the field, with the default reviewer's check against a stale save;
    • Members read it.

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

    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.

    • A project's General page has Chats › Default chat agent: First agent created (the default, always the oldest agent the project still has), one of its agents, or Assistant. The save names the value the page read, so a change made meanwhile is refused (PROJECT_CHAT_AGENT_STALE). Editors and admins change it on an active project.
    • New chats in the project, and chats moved into it, start with it. Chats that exist keep their agent.
    • Migration 0236 adds projects.default_chat_agent_id and chats_start_with_assistant. Rules PROJ-R26 to PROJ-R28; manual boxes PROJ-F79, PROJ-F80, PROJ-B37, PROJ-B38 and PROJ-A12; docs in platform/projects/concepts (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 #5364), 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-449 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