Repository navigation
Release 0.19.0: one-click answers, compact step groups, readable tool cards - #50
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.19.0: three changes, 50 files.
What ships
<ag-ui-answer>, a one-click answer about one subject (new entry./answerand./answer/bundle, kept out of the main bundle). It reads a django-ag-ui 0.93.0+ answers mount:answers/<skill>/?subject=. A stored answer draws with no POST.404POSTs{subject}exactly once and draws the stream as it arrives.409, is followed throughthreads/<id>/events/?after=0.{subject, regenerate: true}.versionis never sent. A change ofversiondiscards the answer shown, and the next open asks again.data-tool-group-displaynow readscompact;fullis the explicit opt-out.formatToolPayloadthat 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 useDetachedHttpAgentitself, because that agent POSTs a fullRunAgentInput. The answers mount reads only{subject, regenerate}and builds every run itself.The fixtures in
tests/fixtures/answers.jsonwere recorded from django-ag-ui v0.93.0'sAnswersServer. The recorder isscripts/record_answer_fixtures.py.Left for 0.20.0
The tool-call summary template (
x-summary-templateand the catalog'ssummary_template) was integrated but is not in this release. With it, the release came to 60 files against a budget of about 50. Commitba0c635undoes its merge. Its branch,lane/template(e378cf7), is unchanged and goes into 0.20.0. This PR is squash-merged, so its commits never reachmain's history.Verification
mkdocs --strict, and 357 files / 5263 tests across happy-dom and Chromium at 100% coverage.full. It also found test gaps. All were fixed ina342d9d.Follow-ups (not in this PR)
src/answer/read_answer_stream.tscould bring it under about 100 KB.make demo-checkfailed or hung on the untouched base as well.CHANGELOG.md. The commit was redone, so this branch is clean.🤖 Generated with Claude Code