mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
stop-reporting-builder-custom-code-errors
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
9e93fb8e36 |
chore(agent): keep agent tool approvals visible and show failure details to builders (#6883)
* fix: keep agent approval controls visible on every pending call * fix: show private tool failure details to agent builders * fix: align approval buttons and wrap them as a group * fix: highlight failed tool calls and show the reason on demand * fix: preserve native disclosure buttons in tool history * fix: label the batch action Always approve all * fix: simplify approval rows and open tool errors in a context * fix: give the always approve action more room * fix: show failed tool calls once in approval cards * feat: show live tool execution status in agent conversations * fix: align tool status icons across approval rows * fix: shorten batch button to Always approve * fix: explain future tool access in approval tooltips * fix: right-align tool statuses with trailing icons * fix: match the tool spinner to the status icons * fix: give approval buttons equal widths * fix: explain email failures at the agent boundary * fix: map known integration failures to safe agent messages * fix: wrap tool statuses and refresh private diagnostics on demand * fix: order the agent diagnostics migration and verify finish payloads |
||
|
|
0efdf44427 |
Added additional actions and email trigger to agents (#6866)
* Added additional actions and email trigger to agents * Made delete row id required and share outcome * Default formula handles text and html * Made the email trigger and list rows labels a bit more generic * Remove AI prompt and start workflow actions * Added create, update, and delete permissions check * Give correct action name to Kuma * Add view, field and aggregation to tool call * Prefetch query for row aggregate to reduce queries * Implemented tool presentation for each type * Made semantic search extend LocalBaserowAgentActionType --------- Co-authored-by: Davide Silvestri <silvestri.eng@gmail.com> |
||
|
|
68139d057c |
feat(agent): add semantic search as an agent action (#6814)
* feat(agent): add semantic search as an agent action An agent's builder can add the enterprise semantic search service as an action: the model supplies the query, the builder picks the Local Baserow integration, table and fields. The search runs with the integration's authority. An action type now says whether it changes data. A type that only reads starts with Ask first off and is never held behind another held call. Every registered action type is offered, also when the workspace's license locks it. A locked type shows the upgrade modal instead of being added, and a locked action can only be renamed, switched or deleted until its type is usable again. The model never gets a locked action. * Fixed some bugs * Run action with workspace identity * fix(agent): keep a search match whose files or links don't fit A row whose non-text values took more than the space left could not be cut, so the result lost it and every row after it. Values that don't fit are now cut to "…" like texts, so the best match is still read. * test(agent): cover the semantic search card acting as the run identity The spec still expected the removed integration picker. It now checks the form gets the tables the run identity can read, the link to set up workspace access without one, and the reload when the identity changes. * fix(agent): don't offer action inputs in search filters A filter is resolved when the call is sent, without the call's inputs, so picking an input there only produced a configuration error. A host can now narrow what filter values read, and the action card offers them none. * refactor(agent): name the workspace check of an action type is_usable available_action_types now lists the locked types too, so is_available named the opposite of what it returned for them. * refactor(agent): one limit on what the model reads of an action result HTTP request and semantic search each defined the same 20,000 characters. * refactor(agent): drop what the integration picker of actions needed No action wraps its form anymore and Agents no longer hold Local Baserow integrations, so the presenter hook and the test changes for them go. * docs(agent): actions on Baserow data act as the Run as identity State the rule for every action whose service reads or changes Baserow data: no integration to pick, permissions on the identity alone. Actions on other services keep their integration. Drop the integration and form wrapper parts that no longer hold, and say how to bound a result. * fix(agent): log why a tool or run failed in debug mode Tool, preview, step, web fetch, trigger message, MCP and chat run failures logged only the exception class, so a failed semantic search showed nothing but its name. They now share the reply's helper, which adds the exception text in debug mode. --------- Co-authored-by: Bram Wiepjes <bramw@protonmail.com> |
||
|
|
5a6121b5a3 |
feat(agent): let agents send HTTP requests through configured actions (#6735)
* feat(agent): let agents send HTTP requests through configured actions An agent can now call an outside API with a configured HTTP request action. The model fills the inputs bound to the request, sees the API's answer, and fixed header, query and form values stay hidden in the approval preview. * fix(agent): hide and keep back what an HTTP action's approver doesn't read Values the builder fixed stay out of the preview and the paused run and are resolved again on approval, keyed by row position so an undone edit keeps a held call working. Malformed or oversized requests and other hosts are refused first. * fix(agent): keep an HTTP action's call on its host and bound what it returns A redirect elsewhere would carry fixed headers and the body past the approver, so agent calls only follow redirects on the same host. Also hide a URL's user, count row keys in the size limit, and measure the body the model reads. * fix(agent): show an HTTP action's inputs to the approver and refuse calls it can't send Review round 2: the approver reads every input the model chose but not a fixed URL path, and calls that can only fail are refused before they wait. |
||
|
|
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
|