Files
windmill/backend/windmill-api/openapi.yaml
T
hugocasaandClaude Opus 5.5 162c6e4da6 feat: bring ai agents in line with scripts and flows (#12311)
* feat: give ai agent drafts their own agent draft kind

* feat: keep an agent's deployed identity when a deploy keeps one unnamed

* refactor: read agent drafts by their kind instead of probing resources

* feat: give the agent editor the script and flow editors' draft controls

* docs: describe agent drafts as their own draft kind

* fix: always autosave an agent edited in a session tab

* revert: keep naming an agent's deployed identity on the client

Deploying an agent draft goes back to sending the deployed identity it keeps,
as main does, instead of the server filling it in when a write asks to keep
one it does not name. Every other kind keeps only an identity a write names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep an agent's deployed identity when Edit as JSON saves its draft

The JSON view now loads the agent's draft, which never carries the identity,
so a save restates the deployed one as a draft deploy does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: type the deployed agent value read in the resource editor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor: keep agent drafts as resource drafts, typed by the drafts listing

Drops the agent draft kind (its enum value, migrations, kind check and the
draft-kind rules mirrored in Rust and TypeScript). Agent drafts stay resource
drafts, private to their author like every resource draft. /drafts/list now
reports a resource draft's resource_type (the deployed row's, else the one the
draft names), and for an agent its description as summary and its path as
draft_path, so the Review & Deploy page, the session changes bar and the
session's agent list tell agents apart without fetching each draft. The agent
editor keeps the script and flow editors' draft controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep the agent role check and key the agent editor's draft prompts by resource

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: place the agent editor's draft status as the script and flow editors do

On its own page it leads the actions, followed by Diff; in the dialog and the
session pane, which draw their own bar, it sits beside the agent's name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor: drop the agent editor's other users' drafts handling until agent drafts are shared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: ask before leaving the agent dialog with edits auto-save has not saved

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat: draft owner avatar and add-to-AI-context on agent rows, as on script and flow rows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2

* feat: agents duplicate, share from their editor and Recent card, and appear in the chat's @ picker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2

* fix: an agent's draft badge opens the agent editor and names it an agent

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2

* fix: offer +@ on an agent's Recent card while the composer is open

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2

* fix: keep the editor header's kind to the items it heads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2

* fix: type the not-found header's kind as the editor header takes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F4rzFn8gXk7QbT6BeF4Nq2

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:39:40 +01:00

1.2 MiB