Skip to content

Release 0.21.0: the connectors element, the approval form, labelled templates, shared answers - #53

Merged
Artui merged 22 commits into
mainfrom
release/0.21.0
Dec 2, 2026
Merged

Artui merged 22 commits into
mainfrom
release/0.21.0

Conversation

@Artui

@Artui Artui commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Release 0.21.0: the connectors element, the approval form, labelled templates, shared answers

Four cards, 74 files against main. Over the ~50-file budget by the owner's choice (2026-12-02, "One release at ~70", offered a split).

CONNECTORS-WC

  • <ag-ui-connectors> with its own entry (./connectors, ./connectors/bundle), working alone and under <ag-ui-agents>. <ag-ui-chat> draws the same class in its panel when data-connectors-url is set; the header gains a More row for it.
  • The panel covers add (with data-connector-presets), popup sign-in, test, the tools screen, Turn off and Remove. The popup listener accepts only a message whose origin is the connectors URL's and whose source is the popup.
  • A connector's tool call names the connector, its host and "your connector" on its card (metadata.connector from TOOL_CALL_START), live and when read back from the local store.
  • An MCP App view from a connector (serverId connector-<id>) is drawn as one line saying it is not shown.
  • The approval card shows the same line and, with a connectors URL, an "Always allow " box.
    • Approving with the box ticked writes the full PUT connectors/<id>/ rebuilt from the listed entry; approve never waits on that write, and writes are queued per chat.
    • A JSON 403 shows the server's rule in place of the box. Any other failure, a CSRF page included, says the choice was not saved.
    • No box when the connector is editable: false (django-ag-ui 0.94.0).
  • The tools screen starts from the listed entry, so Save never undoes a choice saved elsewhere.
  • A chat removed while its panel is open drops the sign-in wait and comes back on the conversation.
  • Opt-in: data-connectors-url.

READ-ARGS-WC-APPROVAL

  • Under approveWithEdits, a call with an argument projection and no nested argument reads as a labelled list, with Edit (a field per argument, typed from the value and the projection) and Edit as JSON.
  • A hidden argument is sent unchanged. An emptied number or date field refuses on the card, and a field left alone sends its value as it came.
  • For every host, the approval actions row now wraps where Deny and Approve do not fit side by side. That is the only change without approveWithEdits, and it is stated in the CHANGELOG.

READ-ARGS-WC-TEMPLATE-LABELS

A filled summary template shows an enumerated argument's choice title, not its constant ("in Running late"). No opt-in.

ANSWER-SHARED-WC

<ag-ui-answer> follows a running answer at answers/<skill>/events/?subject=<id>&after=0, so a shared answer can be followed, and hides Regenerate when the body says can_regenerate: false. The server floor is django-ag-ui 0.95.0. No opt-in.

Owner-requested fixes (after review)

  • Select chevrons. Every select (approval form, connectors form, routines form; chat and standalone editors) drops the browser's chevron for one drawn inset from the border in --ag-ui-select-chevron; the select's text now lines up with an input's.
  • Panel-view footer wraps. At the default 380px panel the connectors screen's Test again and Approve changes overflowed; the shared .panel-view-footer now wraps.
  • Customizable like the rest. An audit against the repo's conventions led to these changes:
    • New parts: connector-action, connector-notice, connector-tag and connector-seg.
    • Newly documented: connectors-button, new-connector-button, and a Connectors row in the theming parts table.
    • Strings: the key connectorUrlPlaceholder.
    • Tokens: the approval fields read --ag-ui-input-bg and --ag-ui-ring, and the connectors spinner reads --ag-ui-tool-spin-duration.
  • Each fix has a test that failed first: the footer at 380px and 240px, the chevron in the chat and the standalone editors, the host tokens on the approval fields, and the placeholder and parts.

Verification

  • Fixtures are recorded from the released producers and regenerate byte-identical:
    • connectors, from django-ag-ui 0.95.0's RunConnectors, with a real <prefix>__<tool> name and a read-only connector;
    • answers, from django-ag-ui 0.95.0;
    • catalog arguments, from django-spec-agents.
  • Replay against base: each card's tests, copied onto its base, fail on their assertions, not at import. The connectors tests can only die at import on main, because the feature is new, so they were falsified by mutation instead.
  • Review round 1 (on 2caf3f4) found four blocking issues and five follow-ups, all fixed with tests that failed first. The most serious: the tools screen re-saved a stale Always allow from a cached test.
  • Review round 2 (on dc0d50d) confirmed all nine fixed. It left one gap, the tools screen's on seed, which a test now pins (2b1161b). That test, and one for the canAlwaysAllow gate, each fail under their mutant.
  • Gates on the release tip: lint, type-check, format, make test (5507 tests, 100% coverage, Chromium included), build, docs strict, demo-check (34 scenarios).

What to look at in the demo

  • The Connectors scenario's four prompts: a connector's tool call, a connector's app view, Always allow, and a refused Always allow. Check them at a 240px floating panel and at the default width.
  • The More row's Connectors panel: add from a preset, then open the tools screen.
  • The editors page's <ag-ui-connectors>.
  • "Three approvals, edited in fields": Edit, Edit as JSON, and an emptied hour.
  • The answer demo's Event 43: a shared running answer that ends without Regenerate.

Left for the owner

  • "Your connector" on a connector you cannot edit. The provenance line still says it when the connector is editable: false.
  • Arguments shown twice. They appear on the deferred tool card and again in the approval form, as the brief asked.
  • Provenance after a server reload. It does not survive a reload from server history, because django-ag-ui stamps only the stream. That needs a django-ag-ui change: stamp the stored toolCalls and the mcp-apps snapshot.
  • The other recorder scripts are not ruff-clean. The two recorders this release touches now are, but the repo has no ruff config or CI step.

🤖 Generated with Claude Code

Artui and others added 22 commits December 2, 2026 17:01
Replays lane/connectors (474cd02..3280145) onto 0.20.0: the element and
its two entries, the chat panel and header More row, the COOP sign-in
fallback, the demo, docs and the CLAUDE.md row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The step row and card head now read a placeholder's value as the choice
title the readable arguments list draws; the const-to-title lookup has one
home shared by both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…fused Regenerate

<ag-ui-answer> now follows a running answer, per-principal or shared, at
answers/<skill>/events/?subject=<id>&after=0 (django-ag-ui 0.95.0), never
threads/<id>/events/, and reads can_regenerate from every JSON body:
false hides Regenerate, true or absent shows it. A 403 on Regenerate shows
the failed state. The fixture is re-recorded from django-ag-ui 0.95.0 with
a shared skill's running, done, replay and 403 bodies; the demo's mock
follows the new route. No opt-in.

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

A connector's TOOL_CALL_START metadata rides onto the call and its card, live
and read back; a view whose serverId is a connector's toolset id is drawn as
one line; a chat removed during a sign-in wait drops the wait and the panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s in the editor event

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ount's failure

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With an argument projection and a flat call, the approval card reads the
call as a labelled list with Edit (a field per argument, typed by its value)
and Edit as JSON (the JSON field as before). An invalid field refuses on the
card as unparseable JSON does; a nested call or a tool with no projection
keeps the JSON field. The actions row wraps so Deny stays inside a narrow card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts/, honour can_regenerate

Also brings the answer demo's recorded-from version and Event 43 heading in line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wraps for every host

A browser normalises line breaks in a field's text, so a form approved as
proposed reported an edit; a field whose control still shows what it was
built with now reads back the original value. The 240px browser test runs
under the default display too and measures the read-only list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oad keeps the line

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ld its app view

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A connector call's approval interrupt carries metadata.connector; the
card now shows the provenance line under its prompt and, when the chat
has data-connectors-url, an "Always allow <tool>" box named by the
server's tool name. Approving with it ticked approves at once and, beside
the resumed run, reads the connectors list and puts the entry back whole
with the tool always allowed. A 403 shows the server's rule in the box's
place, any other failure a not-saved line. Writes from one batch are
queued so the second keeps the first's tool; the chat's open list
reloads once one is saved. No box for editable false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card resolved after starting the write, so a save that threw at
once (a connectors URL that does not parse) left the approval unresolved
with both buttons disabled. It now resolves first and starts the write
through a promise, so a synchronous throw shows the not-saved line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ite, fix demo since and changelog string notes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ly with a JSON error, pin the connector-less card

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nly connector; make the recorder scripts ruff clean

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the new views to host styling

A select drops the browser's chevron for one drawn inside the field in
--ag-ui-select-chevron, in the chat and the editor elements alike. A
full-panel view's footer wraps, so the connectors screen's buttons stay in a
380px panel. The connectors view gains parts on its notices, tags, Ask pair
and row action, a strings key for the URL placeholder, and the spinner token;
the approval form's fields read --ag-ui-input-bg and --ag-ui-ring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Artui
Artui merged commit f6f1f9b into main Dec 2, 2026
7 checks passed
@Artui
Artui deleted the release/0.21.0 branch December 2, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant