Skip to content

Release 0.19.0: one-click answers, compact step groups, readable tool cards - #50

Merged
Artui merged 16 commits into
mainfrom
release/0.19.0
Dec 2, 2026
Merged

Artui merged 16 commits into
mainfrom
release/0.19.0

Conversation

@Artui

@Artui Artui commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Release 0.19.0: three changes, 50 files.

What ships

  • <ag-ui-answer>, a one-click answer about one subject (new entry ./answer and ./answer/bundle, kept out of the main bundle). It reads a django-ag-ui 0.93.0+ answers mount:
    • A click or keyboard activation, never a hover, GETs answers/<skill>/?subject=. A stored answer draws with no POST.
    • A 404 POSTs {subject} exactly once and draws the stream as it arrives.
    • A running answer, or a POST's 409, is followed through threads/<id>/events/?after=0.
    • Regenerate POSTs {subject, regenerate: true}.
    • No tools, messages or context are sent, and version is never sent. A change of version discards the answer shown, and the next open asks again.
    • The answer is drawn as sanitised markdown, checked in Chromium. A failed or cut stream shows the failure, never half an answer.
  • An opened step group draws its calls compact by default. An absent or unknown data-tool-group-display now reads compact; full is the explicit opt-out.
  • A tool card draws a record as a readable list, not as JSON. This covers arguments, and a result that parses to an object. A View raw control swaps in the exact JSON. A host formatToolPayload that returns a node or string keeps its region.

One deliberate deviation

The answer element reads both its POST stream and the events/ replay with @ag-ui/client's own parser and verifier: transformHttpEventStream(runHttpRequest(...)).pipe(verifyEvents()), the pipeline the detached replay uses. It does not use DetachedHttpAgent itself, because that agent POSTs a full RunAgentInput. The answers mount reads only {subject, regenerate} and builds every run itself.

The fixtures in tests/fixtures/answers.json were recorded from django-ag-ui v0.93.0's AnswersServer. The recorder is scripts/record_answer_fixtures.py.

Left for 0.20.0

The tool-call summary template (x-summary-template and the catalog's summary_template) was integrated but is not in this release. With it, the release came to 60 files against a budget of about 50. Commit ba0c635 undoes its merge. Its branch, lane/template (e378cf7), is unchanged and goes into 0.20.0. This PR is squash-merged, so its commits never reach main's history.

Verification

  • Each change's tests fail against the source before it, replayed with file copies:
    • compact default: 5 tests;
    • readable list: 30 tests;
    • answer element: 10 tests under three guard mutations, and 3 for the half-answer fix.
  • Full gate green on the reviewed tree: lint, format check, type-check, build, mkdocs --strict, and 357 files / 5263 tests across happy-dom and Chromium at 100% coverage.
  • Two review rounds:
    • The first found two blocking issues: a failed stream left half an answer, and the demo's group select still defaulted to full. It also found test gaps. All were fixed in a342d9d.
    • The second confirmed each fix and found nothing blocking.

Follow-ups (not in this PR)

  • Answer bundle size. The answer bundle is about 312 KB minified, against 10 to 38 KB for the other standalone bundles. About 200 KB of that is the AG-UI client and its protocol code, used only to parse SSE text. A small SSE line reader in src/answer/read_answer_stream.ts could bring it under about 100 KB.
  • Demo check fails without this change. make demo-check failed or hung on the untouched base as well.
  • Changelog hook gap. The pre-commit changelog-structure check passed a merge commit that still had conflict markers in CHANGELOG.md. The commit was redone, so this branch is clean.
  • Downstream e2e tests. Admin and gallery e2e tests that read a tool card's text as JSON will now see the readable list.

🤖 Generated with Claude Code

Artui and others added 16 commits December 2, 2026 10:40
An absent or unknown data-tool-group-display now reads compact in the getter and the
shadow CSS; full is the explicit opt-out.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A tool schema's x-summary-template, or the catalog's summary_template, labels
the card head and the step-group row with its placeholders filled from the
call's top-level scalar arguments. Any placeholder that cannot be filled falls
back to the static label chain unchanged. The fixture is django-spec-agents
0.31.0's own build_tool_catalog output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The arguments, and a result that parses to a JSON object, render as a
label/value list (keys by the tool-name rule, scalars as text, booleans and
null in words, nested values as a count) with a View raw control that swaps
in the JSON the card showed before. A host formatPayload still owns its
region; null falls through to the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new standalone entry, ./answer and ./answer/bundle, kept out of the main
bundle. A click or keyboard activation (never a hover) asks
answers/<skill>/?subject= for the stored answer, POSTs {subject} once on a
404 and draws the run's stream as it arrives, follows a running answer
through threads/<id>/events/, and Regenerate POSTs {subject, regenerate}.
No tools, messages or context are sent, and a version change only discards
the shown answer. Streams are read with the client's own parser and
verifier, the pipeline the detached replay uses; the POST does not go
through an agent, since the mount takes no RunAgentInput. Fixtures are
recorded from django-ag-ui 0.93.0's AnswersServer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	CHANGELOG.md
# Conflicts:
#	CHANGELOG.md
# Conflicts:
#	CHANGELOG.md
The four cards came to 60 changed files, over the release's budget of about
fifty. The template's merge is undone here; its branch is unchanged and
goes into the next release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cut stream or a RUN_ERROR left the partial answer under the failed
status; the element now empties its body on failure. Also: the demo's
group-cards default, a regenerated answer the demo mock remembers, number-
neutral count strings, two stale stylesheet comments, the zod guard on the
answer bundle, and tests that pin three mutants and the compact step's
focus order.

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

The label column was fit-content(40%), a percentage that resolves against the
card's own shrink-to-fit width, so short labels wrapped and the card never grew.
It is now fit-content(20ch) with a value floor of eight characters.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The label was the slot's fallback content, so markup written over two lines
assigned a whitespace text node and the trigger drew empty. The label is now a
sibling of the slot, hidden while the slot holds an element or non-blank text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Artui
Artui merged commit 2593016 into main Dec 2, 2026
7 checks passed
@Artui
Artui deleted the release/0.19.0 branch December 2, 2026 12:35
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