mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
develop
10
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2686fb21a9 |
fix(agent): show held calls in full, name option renames, stop replies on trash (#6909)
* fix(agent): show held calls in full, name option renames, stop replies on trash Approvers saw cut previews of what was sent, option renames hid the rows they change, and trashing an agent left its running reply going. * fix(agent): let a removed member's running reply finish Removal now only blocks the member's next send or approval, so an accidental removal doesn't leave a partial result that won't resume. |
||
|
|
3276ed06fb |
fix(agent): stop tool calls on Stop, always allow app tools, name databases on cards (#6890)
* 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. |
||
|
|
b580793dd7 |
fix(agent): address agent builder feedback (#6781)
* fix(agent): address agent builder feedback * feat(identities): let builders bind existing identities Binding an Agent or a Local Baserow integration to an existing identity takes the new identity.bind permission, held by workspace builders and admins. Creating, editing and deleting identities stays admin-only. ADR 013 updated and trimmed of migration and deployment details. * fix(agent): show ask before changes only for the Everything preset * fix(agent): fix CI and polish the tools modal and input table Update tests for the identity bind rule and the key/value input table, keep table keys on one line, use one toggle style in the external tools modal, and apply Prettier. * fix(agent): compact the pending approvals menu Each conversation is one line: its title with an ellipsis, then Always allow, Reject and Approve. The chat keeps the full approval card. * feat(agent): make the conversation sidebar collapsible * address feedback * Added a little bit of space after the trigger --------- Co-authored-by: Bram Wiepjes <bramw@protonmail.com> |
||
|
|
a63ff419a2 |
feat(agent): let agents open web pages with any model (#6766)
* feat(agent): let agents open web pages with any model Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com> * fix(agent): open web pages through Baserow's HTTP stack and report failures Failed fetches ended the whole reply, showed as invalid input, and files were stored whole. Pages now go through the integration HTTP limits, only text is opened, and a reply opens at most five. * fix(agent): leave scripts out of opened pages and bound their titles Script and style text made up most of what the model got from many pages. * fix(agent): refuse internal addresses when opening pages The model picks the URL and a page can steer it, so the setting that lets integrations reach internal services shouldn't apply. * fix(agent): read opened pages more safely A crafted page could still end the reply, files sent as text were read, and pages without a charset came out garbled. --------- Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com> |
||
|
|
26ff58a3d9 |
feat(agent): let agents send emails through configured actions (#6720)
* feat(agent): add configurable send email actions
* fix(agent): send what an action call showed and harden actions
Review fixes for the send email action.
- Resolve an action call's formulas once and carry the values from the
held call to its dispatch, so the approved preview is exactly what is
sent. DispatchContext.resolved_values lets a dispatch skip resolving
the formulas of that service again.
- Deny an approved call when its integration changed, or when it comes
back without the values its approver read.
- Let the AgentActionType base own configuration checks, preview and
dispatch. A type only supplies its defaults and readable values.
- Reserve the mcp<number>_ names of connected app tools, and accept any
valid input name, run_ctx included.
- Keep whole numbers whole in Number inputs.
- Add BASEROW_AGENT_MAX_ACTIONS_PER_AGENT, unset by default, and load an
agent's actions in a constant number of queries.
- Order and label an action's fields from its presenter in the step
card and in configuration errors.
- Replace the plan with docs/development/agent-actions.md.
* fix(agent): show what a saved action returns and drop undone errors
- A debounced save updated a copy the action card doesn't render, so the
configuration errors the server found never showed. Save through the
object the list renders.
- Clear a rejected edit's error once the edit is undone.
- Word the action limit so it also reads well with a limit of one.
* test(database): update decorator tooltip snapshots for edge-aware tooltips
The tooltip directive now keeps top and bottom tooltips inside the
viewport and positions their arrow, which changes the inline style the
two decorator tooltip snapshots record.
* fix(agent): mark an action formula with a refused argument as invalid
A function's argument check raises Django's ValidationError, which the
readiness check let through. A formula like minus('abc', 1), stored by
an import, then failed the action list, the configuration and every
reply instead of showing the action as misconfigured.
* fix(agent): start an email action on the instance server only if it delivers
The starter asked the looser question the builder and automations use,
while the readiness check asks whether a message is delivered. With a
backend that only prints, a new action opened on the instance server
and was unavailable straight away.
* fix(agent): name a deleted action in the trash
* fix(agent): read a negative agent limit as no limit
A limit of -1 was kept as a limit, so nothing could be added: no action
with BASEROW_AGENT_MAX_ACTIONS_PER_AGENT, no reply with
BASEROW_AGENT_MAX_ACTIVE_RUNS_PER_WORKSPACE. Both now treat 0 or less
as no limit, like the trigger caps.
* feat(agent): ask first by default before an action runs
A new action sent as soon as it was added, so anyone chatting with the
agent could have it email any address. Built-in tools that change data
and MCP tools already start with Ask first on; every action now does
too, at the model level so the next action types inherit it.
* fix(agent): tell the approver's own session when "Always allow" applies
Approving with "Always allow" turned Ask first off on the server, but
the realtime event skipped the approver's session as if it had edited
the action itself. The Actions card kept showing Ask first on while
emails went out. No session made this edit, so every session is told.
* fix(agent): show an action call in full to whoever approves it
The approval preview kept 10 recipients and 1,000 characters while the
call sent everything. An action's step now shows every value, never
shortened. Limiting what a call may send is left to a follow-up.
* fix(agent): apply every action event a reconnect replays
Action events all write to one slot of the agent, and the watcher only
saw the last value of a tick. A reconnect replays what it missed in one
loop, so an action another user created was lost when a later event
followed it. The watcher now runs on every write.
* fix(agent): reload the configuration when the agent gains or loses an action
Actions count as tools for web search, but nothing refetched the
configuration when one was added, switched, repaired or deleted, here
or by another user. On a model that can't search while it uses tools,
the web search setting stayed stale until a reload. The Actions section
now emits the reload other sections already use, only when the agent
gains its first callable action or loses its last.
* docs(agent): leave the limits of a call to its action type
What a call may send and what its preview shows is for each action type
to limit. Send email limits neither yet.
* fix(agent): mark a stored formula that can't be checked as invalid
A formula nested too deeply raised RecursionError in the readiness check,
so listing the actions, the configuration and every reply failed. Any
failure to check a formula now marks its field as invalid, as a stored
formula can make the parser or a function's own check raise anything.
* fix(agent): keep an approval when its integration is renamed or moved
The approval key digested the whole exported integration. Its name and
its place in the list don't change where a call is sent, and the place
of every integration can change when another one is added or moved.
* fix(core): keep the custom scrollbar in WebKit browsers
Since Chromium 121 the standard scrollbar properties replace the
::-webkit-scrollbar rules, so the rich text editor lost its 10px thumb.
The standard properties now only apply where those rules don't exist.
Stylelint is told that a mixin's body ends up inside a rule.
* chore(agent): name the collapse-all button after its block
|
||
|
|
18ae3c06cb |
feat(agent): ask before running tools (#6602)
* 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. |
||
|
|
058bca8274 |
feat(agent): show readable requests for the database tools (#6651)
* 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. |
||
|
|
68f8fed4c2 |
feat(agent): show tool inputs and why tool calls failed (#6631)
* 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. |
||
|
|
d59e412bf3 |
feat(agent): add native web search (#6628)
* feat(agent): add native web search setting Agents can answer from current web pages using the search built into their model provider. Off by default because searches cost money and can leak data when combined with workspace tools. * fix(agent): stop retrying searches once a reply reaches its limit Newer Claude models report the limit only inside their filtering code, so they kept retrying for minutes with nothing on screen. * fix(agent): let Anthropic enforce the reply's search cap Searches run from filtering code escape max_uses and continuations reuse the tool, and Anthropic already counts earlier requests of the reply, so plain search with a fixed cap is the only one it enforces. * fix(agent): show when a reply could not search instead of having the model say so A 400 doesn't prove the model can't search, and an SDK that excludes search would fail the whole reply. * refactor(agent): match step events by pattern * feat(agent): mark web search as unavailable beside its switch A saved setting the chosen model can't use looked on until you read the text under it. |
||
|
|
eec8247c0a |
feat(agent): show tool activity in conversations (#6551)
* 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> |