* fix(agent): stop tool calls on Stop, always allow app tools, name databases on cards
Stop is seen only on the 2 s lease poll, Always allow skipped connected-app
tools, and same-named tables and rows looked identical on approval cards.
* fix(agent): give every named row its id when row labels repeat
A row named like another row's label could still read the same.
* fix: address review on agent stop, MCP always allow and database names
Refused calls show as not run, Always allow on MCP tools respects switched-off
servers and tools under lock, and more presentations name the database.
* feat(agent): retain reply execution details
* feat(agent): hold Ask first tool calls for the owner's approval
* feat(agent): approve or reject held tool calls in the chat
* fix(agent): tell the model that Ask first calls wait for the user
* refactor(agent): run the approval action through the action registry
* fix(agent): preserve approval state across reply transitions
Mark held calls waiting immediately and keep retry slots across durable
pauses. Keep stale history and run snapshots from undoing newer decisions.
Contain rejection dialog focus and localize its waiting announcement.
Add focused transition regressions and update the tool presentation contract.
Align approval fixtures with the parent conversation cursor contract.
Validation: 469 backend passed (one known xfail), 362 frontend passed;
query-growth, migration drift, lint and browser component checks passed.
* feat(agent): show partial results of approved calls in the approval card
* test(agent): cover web searches next to held tool calls
* fix(agent): drop retry slots, every tool call has its own card
A paused reply no longer saves which failed steps the next response may
continue. Transcripts drop text PostgreSQL can't store, like steps do.
* feat(agent): show a held call's named request while it waits
A held call is named as the Agent identity when it is held and sends
the request to its step like a running call, so the owner decides on
names. What can't be named keeps its ID; the call still waits.
* feat(agent): title held changes with their table
* fix(agent): end held calls by the owner's decision
A held call that a reply ends without resuming is rejected when the owner
rejected it, stopped when they approved it, since the resume may have run it,
and failed when undecided. Copies end held calls at export, where the
decisions are known. Rejected calls stay out of the interruption note.
* fix(agent): resume a paused reply as the run that paused
The transcript keeps whether the paused run offered web search and the
identity it acted as. A resume offers search only if the paused run did, so a
provider that refused it doesn't fail the reply after the approved change ran.
It runs approved calls only as the identity they were held under; when the
Agent no longer acts as it, they fail with a permission error. Every resume
tells the model that users approve these calls.
* chore(agent): clean up after the tool approval review
Drop the unreachable ChatRunAlreadyActive from the decide path, its API schema
and tests, and test the refused resume against the real run limit. Remove the
import branch for exports without ask_first_tools and the toolInputText
indirection, and add the decision audit strings to the agent catalog.
* fix(agent): end held calls that never ran as not run
A held call that a reply ends without running now fails with `not_run`:
undecided, or approved when the resume never started (not ready, cancelled
before it started). Only a resume that started stops its approved calls,
since it may have run them; `mark_reply_interrupted` now passes an empty
result, so `None` again means the run never started. The interruption note
leaves `not_run` calls out, like rejected ones, and the card says "It didn't
run."
* fix(agent): keep the IDs of what a held request can't name
A table, database or view the Agent identity can't see no longer empties the
whole request preview: it keeps its ID, like fields and rows already did.
Values of rows for a table that can't be named are all masked, since its
password fields are unknown. An approval for an unknown table now shows
`table_id` and the requested rows instead of nothing.
* fix(agent): tell the model why an approved call lost its identity
When the Agent no longer acts as the identity a call was held under, the
approved call is denied with a note saying so, and that tools are
unavailable for the rest of the reply, instead of "This tool is no longer
allowed."
* fix(agent): hold no change after a call with invalid arguments
pydantic-ai validates every call of a response before running any, and
reports invalid ones with `args_valid=False`. An ask first call that fails
validation is retried, never held, so it no longer holds the changes after
it: a change set to run without asking now runs.
* fix(agent): leave reply transcripts out of copies
Duplicates and snapshots no longer copy each reply's model messages and
usage. They hold every tool result, nothing reads them, and the export
loaded all of them at once. A copied reply can't resume anyway.
* feat(agent): title unfinished calls by their request
A call that isn't running or done is titled by what it asked for, so an
approved call that fails keeps "Update 1 row in Accounts". An approved card
item shows any outcome other than success next to the decision, now failed
too. Held reads keep their request and are titled with their table.
* feat(agent): name a tool request as the Agent before the call runs
Before a change tool runs, its request is resolved into names with the
Agent's permissions. If a name can't be resolved, the call fails and
nothing runs. Values of password fields are masked, and lists are cut to
10 items of 10 keys.
* feat(agent): show readable requests for the database tools
Change tools show the tables, fields, views and rows they work on by
name, rows by their primary value. Card titles use the requested table.
* fix(agent): let the tool, not the preview, decide whether a call runs
Fields, rows and tables the Agent identity can't name keep their IDs in
the readable request, and a preview that can't be built is left out, so
delete_fields and update_fields fail per item again and a table without
a primary field can still be changed.
* fix(agent): never show an oversized request as an empty list
A request whose single item can't be stored keeps its names without
the list. Row deletions no longer dedupe IDs, which the row handler
rejects anyway.
* fix(agent): show a call's readable request while it runs
The tool sends its named request to the running step through a
pydantic-ai custom event before it changes anything, so a stopped call
or one whose worker died still shows what it asked for.
* feat(agent): show tool inputs and name known targets of failed calls
Moved out of the tool activity layer so the approvals layer can decide how long input values are kept.
* refactor(agent): drop duplicate checks on step resources and input previews
* refactor(agent): drop failed-call targets and row input previews
Failed calls show only the error, the input preview is a single size
check on the stored JSON, and row writes keep no preview because their
values can include passwords. Both are tracked in #6626.
* feat(tools): report database tool errors in one format
Every error has a code, a message written for people and an optional hint
for the model. Batch tools list failed items in errors, set changed, and
set error only when nothing was changed. MCP gets the hint after the
message.
* fix(assistant): read the shared tools' new error format
Formula repair finds invalid formulas by code and rechecks the outcome
after repairing. A repair that fails for another reason reports the real
cause. Hints reach Kuma as next steps.
* feat(agent): keep only tool calls that did something
A failed call shows the reason, a call that changed nothing is skipped,
a partly done call lists what failed, and a retry of a failed call
continues its card.
* feat(agent): show failure reasons and partial results in tool cards
* style(mcp): format the server test
* fix(tools): log unexpected errors and keep their text out of messages
Built-in errors are unexpected again: logged, with the generic message.
Tools raise ToolInputError with a message for people and a hint for the
model where they mean a user error, including linking to a table in
another database. create_views no longer turns any exception into a
message.
* fix(agent): give every tool call its own card
A result ends only its own call's card: no retry continues an earlier
card. Step text, reply text and streamed text are cleaned of characters
PostgreSQL can't store. The partial status is visible.
* feat(agent): show tool activity in conversations
* refactor(agent): centralize tool step statuses
* fix(agent): keep tool-step diagnostics free of private data
* fix(agent): retain Sentry details for tool errors
* feat(agent): show tool inputs and failed read attempts
* fix(agent): show individual tool outcomes in activity groups
* feat(agent): explain tool failures in translated tooltips
* feat(agent): name known targets in failed tool calls
* fix(agent): use shared tool errors after rebase
* fix(agent): show interrupted changes, announce tool steps and clear pre-tool text
* refactor(agent): move input previews and failed-call targets out of tool steps
* refactor(agent): log tool-step failures without the Sentry helper
* fix(agent): classify tool errors once and drop partial-failure steps
Calls to tools a reply never offered no longer get a step.
* refactor(agent): key tool presenters by tool name and drop unused step data
Drops presentation_type, the unused card icon, copy-time step cleanup and Kuma-visible chat CSS changes, and defers steps when loading reply history.
* test(agent): cover Stop during a change and merge overlapping step tests
* docs(agent): trim tool presentation guide to the step contract
* fix(agent): keep step facts JSON-safe and polish stopped cards
Restores the JSON check on step facts, keeps a stopped change's title readable at narrow widths, raises its warning contrast, and stops reopening a running reply from re-announcing its old steps.
* fix(agent): cap the Agent chat column at 900px
* fix(agent): name the executing tool call and keep step cards stable while text streams
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(agent): name reused tables and views instead of showing zero created
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(agent): tell the model which changes an interrupted reply started
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(agent): continue a retried tool call on the step of its invalid attempt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(agent): report views skipped by name collisions
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>