mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
implement-http-auth-integration
13
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2659033445 |
feat(agent): website widget channel (#6884)
* feat(agent): serve a website widget channel and its embed script A website widget is a public chat a website opens in a panel from a button. Its model extends the public chat's with the button's text and corner and never has a password. GET /api/agent/public-chat/<slug>/widget.js returns the button's script with the widget's settings written in, cached for five minutes. ADR 016 records the decision. * feat(agent): add website widgets in the Channels section Channel types now come from a frontend registry: "Add channel" opens a menu of them and each card shows its type's form. The website widget's form has the embed code and the button's text and corner, and shares the title, welcome text and appearance with the public chat. Embedded in the widget's panel, the chat page fills it with its background, keeps text readable on a dark one, and asks the widget to close on Escape. * fix(agent): copy only a channel type's own settings Export and import copied the public chat's appearance fields for every public chat type, so an imported widget kept a background it can't show or change. Each type now lists its appearance fields once, and copies use that list; the password follows the same rule. The widget's chat URL is built with get_embedded_share_url, so a share URL ending in / works. * test(agent): run the widget script on another website An e2e test embeds the widget on a page from another origin, with markup as the button text and title, and checks both show as text and the chat opens in the panel. * fix(agent): backend default button text, focus the channel menu, keep widget names visible A new widget gets its button text from the backend only, as one created through the API does. "Add channel" moves focus into its menu like the other menus, and a card's type label gives its space up before the name. A test covers choosing Automatic to clear a colour. * fix(agent): visible hover without an accent, no suggestions while a message is locked Without an accent colour the chat's buttons darken on hover as the member chat's do, and custom accents get the stronger hover again. The member chat hides suggested messages while the message box is read-only for a pending or failed send, since a click couldn't change it. * test(agent): serve the widget test's website on loopback CI's Chrome blocks a public page's scripts from loopback, so the routed website never loaded the widget. |
||
|
|
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> |
||
|
|
16dbb0690f |
feat(agent): configure who can chat, approve and continue triggered runs (#6826)
* feat(agent): configure who can chat, approve and continue triggered runs Approving held tool calls and continuing a conversation a trigger started become their own operations. With RBAC, an agent's Permissions section sets who may chat, approve and continue: a lowest role, specific people or teams, or nobody. Without RBAC every member chats and approves, and nobody continues. The owner of a private conversation can ask others to approve its held calls, and leave it to them. * feat(agent): let everyone in a private conversation leave it and name who stopped a reply Anyone asked to approve can now remove a private conversation from their own list; only its owner deletes it for everyone. Once the owner has left, the last person to leave deletes it for good, as only an owner's trash may list a private conversation. A reply someone else stopped says who stopped it. * fix(agent): close the gaps a security review of participation found Keep a triggered conversation's opening message untrusted when a person continues it, audit changes to who can chat, approve and continue, and require being able to chat to ask others to approve. People asked to approve follow runs only while they may read the conversations, the approver picker scans at most a thousand members, and the permission object lists only the agents the person may see. A reply whose sender was deleted can still be resumed by someone asked to approve it. * docs(agent): add the participation test plan with its results Cover every participation setting, asking others to approve, leaving a private conversation and stopping replies, with the outcome of the e2e run and the findings of the security review. * fix(agent): address the review of participation permissions - Name only people's messages to the model: a trigger's opening message no longer reads as written by a deleted user. - Check the approver candidates in one pass, so the number of queries doesn't grow with the workspace. - Show the read-only note only to who can't write in a conversation. - Take a person who leaves the workspace out of the conversations they were asked into and the rules naming them, and delete the conversations nobody is left in. - Record a rule change and its audit entry in one transaction. - Refuse a custom approve rule nobody named in it could use. * docs(agent): update the participation test plan after the review |
||
|
|
d21801281f |
feat(agent): trigger agents when rows are created, updated or deleted (#6695)
* feat(agent): trigger agents when rows are created, updated or deleted * test(agent): find the trigger picker by the class it now has The trigger picker renders the shared service picker since the send email actions, so its menu is under .agent-service-picker. * fix(agent): check a trigger's access again before its conversation starts The task that starts a firing's conversation trusted the access check made when the event happened. A run identity removed, trashed or without access by the time the task ran still got a conversation with the event's rows. * fix(agent): apply the row trigger review fixes - A type change moves an overlap rule left at the old type's default to the new type's default. - Queued replies wait while the run identity can't read what the trigger watches. - An imported formula is kept as written when no path is remapped, through one import_formula in core. - Row events hand their listeners services holding the event's table. - Trigger form choices no longer read the workspace's views. - A first row too long for a message is cut short instead of left out. - A no-access error for a type the card no longer shows is ignored. - The dispatcher no longer clamps the batch size. * fix(agent): keep the merged trigger behaviour and UI for row triggers - Skipping stays the default overlap rule: only the row trigger types say their events can't be skipped, so HTTP and periodic triggers start as they did before. - The workspace-access note is a plain alert and the batch size field is spaced like the hosted forms, without style overrides. - The type-change and queued-firing tests are develop's again, with the row trigger tests added after them. - ADR 014 names the hooks row triggers add to the shared service type. * fix(agent): show a row trigger without workspace access as misconfigured The trigger can't run until the agent has workspace access, so its card gets the error icon with a tooltip and the database field shows the error, instead of an info note. |
||
|
|
b566941058 |
feat(agent): start runs from HTTP webhooks (#6737)
* feat(agent): start runs from HTTP webhooks * fix(agent): address HTTP trigger review feedback - Add opt-in agent trigger types that adapt a shared trigger type - HTTP: exclude GET by default and drop the workflow response settings - HTTP: raw body is the default message and the text of an unset one - A message with no text says when the trigger fired, not the payload - Forms take hiddenFormFields from their host - Trigger cards collapse and no longer resize while saving - Keep the HTTP trigger uid out of exports without sensitive data * feat(agent): make trigger and action card headers consistent - Chevron on the left of action cards, as on trigger cards - "Enabled" label above the switches, on the Expand all line - Switch tooltip says the state and what a click does - No divider under an action card's name |
||
|
|
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
|
||
|
|
4ad9b01319 |
feat(agent): set up agent triggers in When it runs (#6693)
* refactor(core): read service results and trigger timezones through the service type * feat(agent): add named agent triggers with their API * feat(integrations): name and describe periodic trigger services for any consumer * feat(agent): configure triggers in the When it runs section * docs(adr): record agent triggers and shared conversations * fix(agent): save a trigger switch alone after a rejected save * fix(agent): audit only trigger messages that change and translate trigger actions * perf(agent): load trigger services in bulk when listing triggers * fix(agent): resolve trigger dates in the trigger's timezone, drop the duplicate schema and unnamed trash names * fix(agent): save each trigger field alone and show reverted service values in the form * fix(agent): offer to add a trigger only once the trigger list has loaded * fix(agent): stop nesting trigger service forms inside the configuration form * refactor(builder): read data source and previous action results through the service type * perf(agent): look up a trigger's type only when its service values change |
||
|
|
2e9746068d |
feat(agent): let Agents use tools from MCP servers (#6664)
* feat(agent): call tools of remote MCP servers (POC) Agents can use tools from external apps through MCP servers that an editor adds and reviews. * feat(agent): connect apps and review their MCP tools (POC) Editors add MCP servers to an Agent, pick which tools it may call, and see those calls in chat. * fix(builder): skip integration events for apps without an integrations list Creating an MCP server on an Agent raised a TypeError toast, because Agents keep no integrations in the store. * feat(agent): sign in to MCP servers with OAuth (POC) Popular hosted MCP servers (Linear, Notion, Airtable, Atlassian, Sentry) only accept OAuth sign-in. * feat(agent): say when an MCP server refuses the key, and require it A wrong key showed as an unreachable server and an empty tool list. * fix(agent): bind MCP sign-in to its editor and harden the MCP client A sign-in link opened by someone else could connect their account to the server. A provider outage disconnected accounts, and bad tool lists failed or looped. * feat(agent): copy MCP servers and their tool choices with the Agent Duplicating or exporting an Agent dropped its connected apps. * fix(agent): don't ask for an MCP credential the server no longer uses Switching away from an API key, or replacing a client Baserow registered, blocked URL changes until a credential nobody had was entered. * fix(agent): refuse an MCP sign-in when the server changed meanwhile Moving the server during sign-in made the callback fail with a 500. * fix(agent): give each MCP exchange an overall deadline A server sending a little at a time could hold a web worker or a reply forever. * fix(agent): tell the model what the MCP server answered when a call fails Invalid arguments and a refused key were reported as an unreachable server, so the model couldn't fix its call or explain the problem. * fix(agent): refresh MCP tokens that come without a lifetime Such a token was never refreshed, so the app stopped working once it expired. * fix(agent): start imported MCP tools off until reviewed An export file or template could turn on tools of an app nobody here reviewed. * fix(agent): hash imported MCP tools from their imported definition A file could carry a reviewed hash for a definition the server never had. * fix(agent): only approve the MCP tool definition the editor reviewed A tools list left open across a refresh could turn on a changed tool unseen. * fix(agent): bound MCP OAuth requests and expire tokens without a refresh token A slow token endpoint held the row lock and a reply indefinitely. An expired token with nothing to refresh it still showed the app as connected. * fix(agent): drop MCP tools fetched from a server that was moved meanwhile A refresh racing a URL change stored the old server's tools on the new one. * fix(agent): let only the editor use up an MCP sign-in, once Another user's attempt voided the editor's sign-in, and two requests at once could both exchange the code. * fix(agent): only copy connected apps the copier may read A duplicate carries the app's key, so a role that can't read the app shouldn't get it. * fix(agent): say when the browser blocks the MCP sign-in window A blocked popup showed a backend 'not connected' error instead. * chore(agent): remove unused needsReview from the MCP servers composable * fix(agent): hash MCP tool titles as stored A copied tool with a title over 255 characters never matched its server again. * fix(agent): forget the old refresh token on a new MCP sign-in Signing in as another account could later switch back to the first one. * fix(agent): wait for a URL change in flight before storing MCP tools An unlocked read let a refresh store the old server's tools on the new one. * chore(agent): drop a CancelledError clause that never applies * fix(agent): review an MCP server's tools after its URL changes A moved server's new tools were listed off with no review prompt, and clearing your own client id asked for a secret that would be thrown away. * fix(agent): always tell the opener how an MCP sign-in ended An unexpected error left the sign-in window on 'Connecting' and the opener waiting. * chore(agent): give the removed MCP tool modifier its base class * fix(agent): keep MCP credentials out of object reprs A reply's request object printed the server's key in error reports and logs. * fix(agent): use the current secret of an editor's own MCP client Adding a secret later kept the old 'no secret' method, so refreshes failed and the app disconnected. * fix(agent): don't store MCP tokens for a server moved during sign-in A URL saved while the provider answered got the old server's tokens, which then went to the new server. * fix(agent): clear only the expired MCP token, not a newer sign-in A reply clearing an expired token could undo a sign-in that had just finished. * docs(core): note that Agents also narrow imported integration types * fix(agent): give MCP tools with clashing model names a distinct name A second tool whose name matched another after the 64-character cut was dropped while still shown as on. * fix(agent): send a registered MCP client secret when the server doesn't say how RFC 7591 defaults to Basic auth; sending nothing made every sign-in fail. * fix(agent): try the next OAuth metadata URL when one can't be reached One unreachable candidate ended discovery although the others would answer. * fix(agent): read only the headers of the MCP OAuth discovery probe A server streaming its initialize answer made sign-in time out. * fix(agent): keep a registered MCP client registered when its id is sent back Writing back the same client id turned Baserow's own client into an editor's one. * fix(agent): ask for the OAuth client secret in its own words The error talked about a header, which the OAuth form doesn't have. * refactor(integrations): move MCP serializers and errors to their own modules Matches the layout of the other API modules. * fix(agent): count MCP tools when deciding whether web search fits Gemini 2.5 can't combine search with function tools, and MCP tools are function tools too. * fix(integrations): require https sign-in endpoints for https MCP servers The MCP authorization spec requires it, and the code, refresh token and client secret would otherwise go out in clear text. * fix(integrations): send an editor's MCP client secret with Basic auth RFC 6749 makes Basic the method every server supports; the body form is only used when the server lacks it. * fix(integrations): say when an MCP server doesn't use OAuth Starting a sign-in for it answered that the integration doesn't exist. * docs(integrations): document the MCP OAuth helpers * fix(integrations): only use MCP OAuth tokens with the connection they belong to A sign-in or refresh racing a move or a disconnect could store or send one server's tokens to another. A generation on the server now ties each sign-in to its connection. * fix(integrations): don't ask for an MCP credential the change drops anyway The form had to predict which empty secrets to send around the check; it now sends only what the editor changed. * refactor(integrations): let integration types mount their own API urls The MCP endpoints were mounted by the Agent application type. * fix(integrations): limit the size of MCP and OAuth responses One Agent's server could make a shared worker load any amount of data. Uses the HTTP request integration's limit. * feat(integrations): audit MCP tool and account changes and send them to other editors They changed the integration outside its update action, so they weren't logged and other editors only saw them after a reload. * fix(agent): keep MCP servers in the integration store and match each sign-in to its result Other editors' changes now arrive live, late answers no longer land in a modal opened since, and a sign-in finishes even when the provider cuts the popup off. The review also shows each tool's parameters. * fix(integrations): register with MCP servers when Baserow runs on this machine An authorization server can't fetch a client metadata document from localhost, so signing in failed on local https instances. * style(agent): format the connected apps test * fix(integrations): keep MCP OAuth tokens with their issuer, lock like integration updates, audit before notifying A zero lifetime now means expired, a new issuer or client drops the old account, and MCP locks only the integration row so PATCH can't deadlock with them. * fix(agent): don't run MCP writes that follow a held call They can't wait for approval yet, so they're refused until the held call is decided. * fix(agent): keep MCP tool picks with the definition they were made for Another editor's refresh could re-enable a changed tool, and a new tool crashed the list. The review now also shows each tool's full input schema. * fix(agent): scroll the MCP tools modal, not its list The list had its own scrollbar inside the modal, and the checkbox labels showed cut off in the narrow columns. * feat(agent): take whether an MCP tool changes data from the server Editors had to answer it for every tool, and every tool started ticked. The server's read-only hint answers it; a tool without one still counts as changing data. * feat(agent): ask first before calling MCP tools MCP tools act with the server's own credential, so editors need the same Allow / Ask first choice as for workspace tools. An approval only holds for the server, account and tool definition it was given for. |
||
|
|
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> |
||
|
|
ca3d710b3b |
feat(agent): choose the identity an Agent runs as (#6540)
* feat(agent): choose the identity an Agent runs as Agents can run as one of the workspace's Agent identities or with no workspace access. The tools that act with the identity's permissions come next. * fix(agent): refresh the run-as identity label * fix(agent): flag deleted run-as identities in configuration * feat(agent): explain unavailable workspace identities * refactor(agent): return a typed configuration object * fix(agent): handle run-as identity permissions and lifecycle * refactor(agent): use constants for readiness and state checks * fix(agent): record before and after configuration values * refactor(agent): move configuration transaction to API view * fix(agent): batch run-as identity invalidations * test: use real debounce in views admin tests * fix(agent): keep run-as choices within the viewport * perf: reuse permission data within batches |
||
|
|
4cbe4af199 |
feat(agent-builder): Agents reply to messages (#6466)
* feat(agent-builder): answer messages with background replies Each message starts a core chat run that streams the configured model's reply and saves it with its turn: status, error code, model messages, usage, and the provider and model that answered. Messages record their author. One reply runs per conversation, and BASEROW_AGENT_MAX_ACTIVE_RUNS_PER_WORKSPACE caps a workspace (default 5). Copies keep turns and authors and end replies still running. * feat(agent-builder): stream, stop and resume replies in the chat The chat follows each reply through the core run stream, shows authors, lets the user stop a reply, resumes after a reload or in another tab, and explains replies that did not finish. * refactor(agent): keep replies focused on chat * refactor(agent): keep each reply's outcome on its message A reply is an assistant message created empty with its prompt, and the run writing it saves its text, status and error code there, replacing the turn table. Send responses name the run they started, so a reply that ends before the response is still followed. Retries read the run before the reply, listed replies that still look unfinished are read again from the primary, and blank replies are saved empty. * feat(chat): add shared chat components Store-free message, markdown, composer and copy button components styled after the agent builder designs, so the Agent chat and later Kuma can share one UI. Replies render markdown without images, which could carry conversation data to any URL, and app links open in the router. * feat(agent-builder): show replies with the shared chat components Replies render in place from the conversation history under the agent's name and avatar, with Thinking and Writing above the composer while they run, a note when stopped and an error card when they fail. Stop stays available while a reply runs, even when the configuration stops being ready. * feat(agent): hand finished replies to followers and announce reply runs A finished run carries the saved reply as the messages list shows it, so followers can apply it without reading the messages again. Conversations expose the run writing a reply, and agent_conversation_updated carries that run's id when a reply starts and null when it ends, with the conversation's updated_on to order them, so every session can show it without requests. A blank model answer now ends the reply as failed, and replies reuse ChatRunStatus. Reply permission checks move to the service, sends check the agent-builder flag, finishing a reply relies on the engine's run lock instead of a row lock, and the workspace limit defaults to 10. * feat(chat): share Kuma's typing and loading indicators Kuma's bouncing dots and reasoning spinner move to core as ChatTyping and ChatLoading, and Kuma renders them from there with the same look. ChatComposer's status prop becomes activity and keeps focus on the input when Send and Stop swap, ChatMessage drops its author props until conversations can be shared, and markdown leaves mailto and other non-web links to the browser. * feat(agent-builder): show reply progress like Kuma and apply replies in place A reply shows the typing dots until its first text, then a spinner beside the streaming text. The finished run's saved reply replaces it in place, a run's start no longer reads the messages, and a streamed chunk re-renders only the reply being written. Realtime updates set a listed conversation's run without reading the list again, so its dot pulses grey while it replies, in every session, and the page drops its chat subscription when no conversation is open. * fix(agent): handle empty replies and legacy message retries * fix(agent): address reply review feedback * refactor(chat): share response UI with Kuma * fix(assistant): separate thinking from streamed answers * feat(chat): share message footers with Kuma * fix(chat): keep thinking blue and streamed answers expanded |
||
|
|
72760990c5 |
feat(agent-builder): configure Agent instructions and model (#6415)
* feat(agent): configure Agent instructions and model Adds the Agent settings fields, readiness and configuration endpoints, an autosaving configuration sidebar and the settings permission. Settings are copied with the Agent and exported only by members who can read them. * test(agent): share Agent page setup and mock helpers Both page specs reuse one setup and one-line route mocks, and API tests share an authenticated client. * fix(agent): lock parent before configuration updates * fix(agent): limit model availability checks to settings readers * refactor(agent): read Agent readiness from the application Readiness travels with the application payload instead of a separate readiness endpoint, so the page load and realtime updates keep it current. The configuration form also stays stable while editing. It no longer reloads on unrelated application updates, saves text fields on blur and selections on change, restores a blank name instead of blocking navigation, keeps the current Agent selected when the save before a switch fails, and ignores re-selecting the current provider. The export permission test now goes through ExportApplicationsActionType. * fix(agent): tighten the Agent configuration API The configuration endpoint now serves only instructions, provider and model behind agent_application.read_configuration, which saving also requires. Renames go through the standard application update, the views return their declared serializers, the length limits come from the model, and the endpoints are documented in the API schema. * fix(agent): rename through the application and fit the assistant panel The configuration sidebar renames the Agent through the regular application update, follows the Agent column width with container queries, offers Retry first without an empty actions row, keeps its focus outline on its own buttons, and names an unavailable provider. The first load starts on mount, and the specs mount with a route record and find fields by label. * fix(agent): keep configuration edits across token refreshes The page reset itself whenever a token refresh reassigned the user, because the watch compared a new array each time; it now watches the Agent and user ids by value. The configuration payload names its readiness `readiness`, like the application payload, and the redundant readiness tests are gone. * fix(agent): explain configuration section errors * fix(agent): address configuration review feedback * refactor(agent): reuse shared menu and button components * fix(agent): align sidebar separators and back control with design * fix(agent): match sidebar close control to design * Remove name input loading spinner and added newline * remove double validation --------- Co-authored-by: Bram Wiepjes <bramw@protonmail.com> |
||
|
|
aba67743e2 |
feat(agent-builder): scaffold Agent workspace applications (#6343)
* feat: scaffold Agent Builder applications and empty agents * chore: defer Agent Builder changelog until feature flag removal * refactor: represent each agent as a workspace application * fix: complete Agent application rollout safeguards * fix: use the designed robot icon for Agent applications * refactor: gate only Agent application creation * refactor: keep Agent scaffold on standard shared behavior * fix(agent): load workspace access before opening from overview * refactor(agent): align enterprise feature naming * refactor(agent): retain application stylesheet name * refactor(agent): move application scaffold into open source * fix(agent): hide the empty Agents sidebar group while creation is disabled * test(agent): keep only Agent-specific scaffold tests Generic application behaviour is already covered by core tests, and the branch has no enterprise code, so the enterprise tests are removed. * refactor(agent): define the agent-builder flag with the other flags * chore(agent): type Agent application hooks and tidy flag docs * fix(agent): support the purple item icon color * fix(agent): use the shared application type keys for Agent names The export and import dialogs read `applicationType.<type>s`, so Agent groups showed the raw key. * fix(agent): hide the Agent type filter while creation is disabled All workspaces now only offers the application types that can be created, so Agent stays out of the filter while the flag is off. * fix(agent): use a singular Agent search subtitle * test(agent): cover Agent creation with the flag enabled * refactor(agent): match the Agent search type to Dashboard The backend already filters results by read permission, and the Agent route checks access when it opens. * refactor(agent): drop the unreachable sidebar creation check The only link that opens the modal already checks `canBeCreated()`. * fix(agent): drop the Enterprise-only hint from the empty Agent page Managing access needs Enterprise, so the text was wrong elsewhere. * refactor(agent): drop the default allowed_fields from the Agent type * feat(agent): track when Agents were last viewed Opening an Agent now loads it from `GET /api/agent/<id>/`, which marks it viewed like the load endpoints of the other application types. |