Commit Graph
880 Commits
Author SHA1 Message Date
peter_baserow c7cc8662c5 fix: stop reporting errors from an application's custom JavaScript to Sentry 2026-12-03 08:35:21 +00:00
Przemyslaw Kukulski 4852e32060 fix: show an error instead of an unhandled 429 when a page refresh is refused (#6982)
* fix: keep published page data when a refresh is refused

* Review feedback
2026-12-03 06:16:22 +00:00
Davide Silvestri 2052bcf176 fix: don't report a row fetch cancelled by a gallery or timeline refresh (#7016)
A search or filter change refreshes the view and cancels the pending
fetch of newly visible rows. The fetch threw RefreshCancelledError, but
the gallery and timeline views dispatch it without awaiting, so it was
reported as an unhandled rejection (BASEROW-SAAS-WEB-FRONTEND-7T). The
refresh loads the visible rows itself, so the cancelled fetch now just
returns.
2026-12-02 16:18:53 +01:00
Peter Evans 34d9ca3a12 fix: keep the trigger's table when testing a rows trigger node (#7004)
* fix: keep the trigger's table when testing a rows trigger node

* chore: link the trigger table fix changelog entry to its issue
2026-12-02 13:50:20 +00:00
Przemyslaw Kukulski 547237eafb fix: don't report sign-out error when old session token is already invalid (#6980)
* fix: don't report sign-out error when old session token is already invalid

* Review feedback
2026-12-02 14:15:12 +01:00
alamin-br 94e374dbac fix: don't open a linked row after its cell or modal is closed (#6992)
The linked row modal can be unmounted while it fetches the row, which
left its modal ref null and threw on show.
2026-12-02 13:50:20 +01:00
Davide Silvestri 7c97626046 fix: stop the guided tour from crashing when its steps change (#6942)
* fix: stop the guided tour from crashing when its steps change

Fixes #6941

* fix: re-prepare the guided tour step when the step at its index changes
2026-12-02 10:33:35 +01:00
Jonathan Adeline d61ac1b6e0 fix: explain invalid numeric dashboard filter input (#6990)
* fix: explain invalid numeric dashboard filter input

* fix: show invalid numeric filter input while typing
2026-12-02 13:31:51 +04:00
Peter Evans 557135532c chore: call workspace applications builders and name the builder role (#6948)
* chore: call workspace applications builders and name the builder role in English copy

* chore: say who can configure a builder instead of naming the builder role next to it

* test: expect the reworded Slack bot warning

* chore: name roles the same way everywhere and say builder in snapshot errors
2026-12-02 08:55:45 +00:00
Jonathan Adeline 63765512ac feat: support numeric input in dashboard filters (#6899)
* feat: support numeric input in dashboard filters

* fix: show only the numeric filter error outline

* fix: recover stale filters in shared dashboards

* fix: initialize the English translation fallback
2026-12-02 09:59:32 +04:00
Tsering Paljor 6f25cd83ab fix: Ensure workspace settings modal can't be empty (#6923)
* Show the first workspace settings page when the permissions load after the modal opens

* Show a spinner while the workspace settings modal loads and a message when it has no page.

* Stop a failed permissions fetch of an earlier opening from closing the reopened settings modal.

* Fix tests

* Give the workspace settings modal a minimum height so it doesn't grow once its page loads.
2026-12-02 08:57:29 +04:00
Tsering Paljor 6391674129 fix: Revoke a login's access tokens on logout (#6951)
* Reject the access tokens of a login session once the user logs out.

* Reject user source access tokens once the user logs out of the published application.

* Refuse websocket connections made with the access token of a logged-out session.

* Keep a logged-out session revoked for backends running another Baserow version.

* Test that an unreadable revoked-session marker keeps a token off the websocket cached fast path.

* Revoke the session's access tokens when logging out with an expired refresh token.

* Test that logging out with an already rotated refresh token rejects the session's access tokens.

* Make the user source blacklist test show that the access token authenticates before the logout.

* Log a published application visitor out in the tabs where their login ended elsewhere.

* Add the changelog entries.

* Keep a published app login whose cookie the browser never saved, such as in a cross-site iframe.
2026-12-02 08:57:10 +04:00
Bram 59fab074b5 Updated descriptions for 3.0 (#6979) 2026-12-01 20:37:32 +00:00
Przemyslaw Kukulski f01dce307f chore: remove the agent-builder and user_templates feature flags (#6960) 2026-12-01 19:56:53 +01:00
alamin-br 71e30fc7ee fix: don't throw when a grid cell or context is gone before it's cleaned up (#6957)
A cell unmounted in the same render it was mounted in has no cell ref yet, and a
context can be hidden after an awaited request outlived it (Sentry FE-BX, FP, FN).
2026-12-01 18:01:30 +01:00
Peter EvansandJeremie Pardou d7e2c3f635 chore: remove core and WAB feature flags shipping in v3 (#6903)
* chore: remove core and WAB feature flags shipping in v3

* docs: drop stale feature flag mentions from invitation link comments

* docs: add missing changelogs for released core features

* docs: mark identities ADR as accepted

* chore: remove the identities feature flag

* docs: add changelog for workspace identities

* test: remove obsolete identity feature flag test

* docs: remove stale identities feature flag references

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-12-01 16:01:14 +00:00
alamin-br e7381b5384 feat(mcp): always turn on OAuth sign-in and add the MCP tools changelog (#6930)
* chore: add changelog entry for the MCP shared tools

The tools PRs left it for when the milestone was done.

* feat(mcp): always turn on OAuth sign-in

BASEROW_MCP_OAUTH_ENABLED is removed before it ships, so OAuth sign-in is
on everywhere. The settings page opens the endpoint tab when the OAuth
connections fail to load.
2026-12-01 15:44:39 +01:00
Davide Silvestri aacb878968 fix(database): run realtime refresh callbacks when no view is selected (#6944)
* fix(database): run realtime refresh callbacks when no view is selected

Fixes #6943

* fix(database): add created and restored fields when no view is selected

view/getSelected is {} without a selected view, so the field_created and
field_restored handlers looked up an undefined view type and threw. Use
view/hasSelected instead, and cover both events on a table page without views.
2026-12-01 13:38:24 +01:00
Peter Evans ba7a06521e fix: stop reporting handled AI provider errors to Sentry (#6761) 2026-12-01 12:22:17 +00:00
Przemyslaw Kukulski bb7ba42b90 fix: small template marketplace fixes (#6916)
* fix: small template marketplace fixes

* Review feedback
2026-11-30 21:08:04 +01:00
Bram 273ad51415 Add members to left sidebar (#6910) 2026-11-30 17:41:51 +01:00
Przemyslaw Kukulski 67101593d4 fix: apply view field visibility to ad hoc filters, sorts and aggregations (#6913) 2026-11-30 17:07:59 +01:00
Jérémie Pardouandpeter_baserow 4df2f3dcee feat(dashboard): add choice selector and field option picker (#6915)
* feat(dashboard): add choice selector and field option picker

* refactor(dashboard): import raw option paths separately

* chore(dashboard): remove redundant choice selector changelog

* fix(dashboard): open explorer when switching to formula mode

* fix: show the formula again when a reused formula input leaves raw mode

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-30 16:27:43 +01:00
Davide Silvestri 9080e662ec chore(agent): Agent Builder analytics events for PostHog (#6914)
* feat(agent): send Agent Builder analytics events to PostHog

Adds metadata-only events for the Agent Builder dashboard: agent_run_finished,
agent_trigger_skipped (one per skip episode), labelled tool lists and
waited_seconds on decide_agent_tool_approvals, and a content-free
$ai_generation per agent model request. Tool labels never carry action or
MCP tool names. Nothing is read or sent when PostHog is disabled, including
the action_done receiver, which now returns early.

* feat(agent): send create modal steps to PostHog

* refactor(agent): drop $ai_latency and merge overlapping analytics tests

* fix(agent): report every reply ending, including failures before a run
2026-11-30 15:07:35 +00:00
alamin-br 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.
2026-11-30 14:24:03 +00:00
Przemyslaw Kukulski 06ba01b67a fix: user templates leave out synced table settings, shared links and mentions (#6837) 2026-11-30 13:33:30 +01:00
Peter EvansandJeremie Pardou e4b9a2615b feat: add a shared base for integrations that connect an account through OAuth (#6810)
* feat: add a shared base for integrations that connect an account through OAuth

* fix: keep OAuth account scopes current and bound provider answers

* fix: share parent registration between form APIs

* fix: preserve refreshed OAuth tokens when actions fail

* refactor: use absolute imports for parent OAuth modules

* refactor: decouple OAuth cleanup from application publication models

* refactor: use common import hooks for OAuth connections

* fix: keep OAuth account integrations out of the workspace

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-30 08:55:52 +00:00
Peter Evans b84390b9ca feat: add an Add identity button to the Local Baserow Authenticate as dropdown (#6906) 2026-11-30 08:51:01 +00:00
Peter Evans 19e7bcc696 fix: invitation link password dialog, snapshot icon, unauthorized integrations and link cookie (#6907) 2026-11-30 08:08:57 +00:00
Peter Evans c772afdb22 feat: show application integrations in one grouped table (#6901)
* feat: show application integrations in one grouped table

* feat: show application integrations in one grouped table

* test: open the integration menu to promote in the automation settings spec

* refactor: share one integration row between both integrations tables
2026-11-27 15:39:11 +00:00
Bram 85f9e8e67d [2/2] Usage credit subscription: Measure AI usage (#6823)
* Measure AI usage

* Show the AI usage data of plugins per agent reply and AI values job

* Fixed feedback
2026-11-27 13:52:27 +00:00
Peter Evans 1e7ae9deb8 feat: list every invitation link of a workspace in the workspace settings modal (#6802)
* feat: list every invitation link of a workspace in the workspace settings modal

* fix: show the table of view invite links, keep the list steady while searching and wrap its header
2026-11-27 17:16:07 +04:00
Tsering PaljorandJeremie Pardou 250748c8dc feat: Workspace level integrations (#6547)
* Add ADR-013 for workspace level integrations

* Add implementation

* Improve context section and remove technical points

* Move bulk replacement point to v2

* Remove workspace-level ownership on import since manual promotion should handle this.

* Add a glossary section

* Do Lazy creation + Celery migration

* Remove demotion

* Tighten the Options considered section

* Add Decision describing where the integrations are managed

* Update implementation plan after changes to ADR

* Sync plan and adr

* Rename adr and implementation

* Add the shared application that owns workspace integrations

* Create the shared application of every workspace

* Let only workspace admins manage workspace integrations

* Let applications use the integrations of their workspace.

* Trash workspace integrations in their workspace.

* Copy workspace integrations into exports and keep them in duplicates.

* Workspace admins can share integrations with every application in the workspace.

* Load the shared application of each workspace in the frontend and keep it out of application lists.

* Manage workspace integrations from an Integrations page in workspace settings.

* Offer workspace integrations in the integration dropdowns of every application.

* Move promoted integrations to the workspace list in other open tabs.

* Let admins make an app's integration available to the whole workspace from its integration settings.

* Preselect a workspace integration for new nodes and data sources when the app has none of its own.

* fix tests

* Delete implementation file

* More fixes after rebase

* Fix tests

* Let builders of an application see and use the workspace integrations from it.

* Show the workspace integrations, read-only, in the integration settings of applications.

* Keep a dashboard's integration out of promotion to the workspace.

* Leave the shared applications out of the admin dashboard's application count.

* Create the shared application of the workspaces made by the fill commands.

* Say in the promotion modal that an integration nobody authorized will run as the promoting admin.

* Say in the promotion modal that undoing it won't make the integration run as the previous person again.

* Ignore integration ids in sample data when publishing copies the workspace integrations an app uses.

* Let only undoing a promotion move an integration out of the workspace.

* Let the shared application backfill stop itself after 5 minutes and skip workspaces another transaction has locked.

* Say in the workspace integrations settings that published applications and workflows keep their own copy until they're published again.

* Leave the shared application out of the assistant evals' application counts.

* Refresh the workspace integrations when the Builder's data, events, users and integrations panels open.

* Say that anything new using a promoted integration blocks undoing the promotion, even from its own application.

* Warn when a database button sends through a workspace integration with no host or token.

* Refuse roles and invitations on the shared application.

* Fix tests

* Show an application only the workspace integrations of types it can use.

* Say in the promotion modal what builders of other applications can do as the integration.

* Leave the shared application type out of the API docs for creating and updating applications.

* Check who receives a workspace integration event in one permission call.

* Say which workspaces have a shared application and who creates it.

* Let a redone promotion record what uses the integration again.

* Update docstrings

* Stop template visitors from listing the integrations of the template's workspace.

* Let database buttons find their own copy of a workspace integration after an import.

* Say what holds the workspace row lock while a shared application is created.

* Fix tests

* Stop the workspace integration form component from being made reactive.

* Make test runs use a new copy of the workflow after an integration it uses changes.

* Hide the Members settings tab from members who can't list the workspace members.

* Add changelog

* Fix migration conflict

* Fix migration conflict

* Fix test

* Update comments and ADR number

* Link to the workspace integrations from the sidebar's Settings menu.

* fix: refresh agent action errors when workspace integrations change

* fix: move workspace integrations into workspace settings

* fix: use share icon for workspace integration promotion

* refactor: use explicit shared application relations

* feat: centralize default integration selection

* refactor: share integration change notifications

* refactor: prepare integration mappings before import

* refactor: collect integration references during export

* refactor: prepare integration ownership changes without a new hook

* test: restore registered service model after mocking

* test: cover shared integration defaults in Builder

* test: include Slack in Agent workspace integration choices

* Fix migrations

* Stop template visitors from listing the workspace integrations through an application of the template.

* Only offer integrations of the user source's integration type when updating a user source.

* Say the workspace integration copy means published Application Builder apps and automation workflows.

* Use the same spacing under both integration settings sections and enlarge their headings.

* Keep the shared application out of automatic snapshot schedules.

* Fix test after rebase

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-27 15:49:32 +04:00
Peter Evans b13c47f329 fix: run scripts inside the builder HTML element in preview and published apps (#6854)
* fix: run scripts inside the builder HTML element in preview and published apps

* fix: keep HTML element scripts off in preview on the editor hostname

* chore: add a changelog entry for scripts in the builder HTML element

* perf: stop scripts in one HTML element from delaying scripts in another

* test: remove the duplicated widget resize test

* test: drop the toSorted-free browser setup from the dashboard tests
2026-11-27 10:03:29 +00:00
Davide Silvestri 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.
2026-11-27 10:53:47 +01:00
Davide Silvestri 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
2026-11-27 10:20:12 +01:00
Przemyslaw Kukulski fa2a48b520 feat: search shared templates by author and link to "Your templates" (#6880) 2026-11-27 10:12:11 +01:00
alamin-br 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.
2026-11-27 10:09:24 +01:00
Peter Evans 26c10064a8 fix: load dashboards in browsers without Array.prototype.toSorted (#6893) 2026-11-27 09:07:15 +00:00
Davide Silvestri 992054e30f feat(agent): suggested messages and public chat appearance (#6874)
* feat(agent): suggest messages to start a conversation with

An agent gets up to four suggested messages, edited in its Instructions.
A new conversation shows them as cards, on the agent's page and on its
public chat, and a click puts the message in the box, ready to send.

* feat(agent): let builders style their public chat page

A public chat gets a font, an accent color, a plain or gradient
background and a "Powered by Baserow" switch, set in its card. The page,
password screen included, uses them; the core chat styles take their
accent from CSS variables so the page only sets the color.

* feat(agent): introduce an empty public chat with its title and welcome text

An empty chat shows a mark in the accent colour, the title, the welcome text and the suggested messages in the middle, like the member chat. The header with the title only appears once a conversation exists.

The welcome text is rendered as markdown on the server, so it no longer appears after the page has loaded.

* fix(agent): fall back to a generic font family on the public chat

A quoted generic family is read as a font name, so the page showed a serif font until the chosen one loaded.

* feat(agent): keep a public chat's appearance on a copy

A duplicated, restored, exported or templated agent's public chat keeps its font, colours, background and Powered by switch. A value from a file that the API would refuse falls back to the default.

* fix(agent): check an imported agent's suggested messages

A file could carry suggested messages the API refuses, and a value that isn't a list broke the workspace's application list. An import now keeps them only when the API would accept them. The copy tests also cover suggested messages and a user template.

* fix(agent): give public chats a neutral default appearance

* fix(agent): label suggested messages and cover when they can be used
2026-11-26 20:42:31 +01:00
Peter EvansandJeremie Pardou 5a62c876e4 fix: align custom code in builder Preview with the editor on shared hostnames (#6881)
* fix: restrict editor-written code in the builder editor and on the editor hostname

* fix: simplify builder author code restrictions by hostname

* refactor: remove redundant backend custom code hostname checks

* refactor: unify builder HTML element rendering restrictions

* refactor: clarify builder web frontend hostname terminology

* fix: distinguish untrusted builder content in preview notices

* refactor: remove unused backend preview security setting

* docs: shorten builder code restriction changelog

* fix: restrict iframe cookie access across frontend ports

* refactor: share web frontend hostname matching

* fix: preserve protected HTML interactions and bound iframe height

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-26 17:20:44 +00:00
Peter Evans cba704e8b7 feat: redesign the refinement popovers in the automation and dashboard sidebars (#6858) 2026-11-26 15:32:22 +00:00
Tsering Paljor 380ecc6c21 feat: Collect only anonymous page views on published applications (#6877)
* Collect only anonymous page views on published applications.

* Explain why a published page is counted once when it opens.
2026-11-26 18:57:53 +04:00
Przemyslaw Kukulski 41277db4ec feat: notify admins and authors about user template reviews (#6845)
* feat: notify admins and authors about user template reviews

* Review feedback
2026-11-26 15:35:14 +01:00
alamin-br 724ca69647 fix(agent): small Agent Builder fixes from the launch review (#6871)
* fix(agent): small Agent Builder fixes from the launch review

Imported actions ask first, SECRET_KEY_FALLBACKS is read, signed links keep their query,
Gemini retries transient errors, approval cards stop saying 'by you', and agent-builder turns identities on.

* test(assistant): turn identities off by having no flags

The agent-builder flag now turns identities on as well.

* fix(agent): address review of the launch quick fixes

Key fallbacks are JSON arrays, Gemini retries once per Kuma call, and an
imported action must carry the service its type runs.
2026-11-26 15:21:58 +01:00
Peter Evans 17c1af4cc4 feat: show formula data as a source badge and the data it points to (#6857)
* feat: show formula data as a source badge and the data it points to

* docs: add a changelog entry for the formula data redesign

* test: close the data explorer before saving a button field in e2e tests

* fix: keep long formula data inside the filter row and wrap its tooltip

* fix: show the link styling tabs for a column just changed to a link
2026-11-26 13:34:21 +00:00
Przemyslaw Kukulski becb8db5a1 feat: track template marketplace usage in PostHog (#6847) 2026-11-26 12:40:30 +01:00
Davide Silvestri dcf2ce57b4 feat(agent): let people outside Baserow talk to an agent through a public chat (#6864)
* docs(agent): add ADR 016 on agent channels

A channel is a place outside the agent's own page where people talk to it and get its replies. It is its own concept beside triggers: a trigger reacts once to an event, a channel carries a conversation that continues.

* feat(agent): add channels and replies with no member behind them

A conversation a channel started is shared, has no owner and holds visitor messages. Its replies run on the channel's authority and stop once the channel is off, trashed or deleted. A reply that can call tools keeps its text out of the stream, so nothing written before a tool call reaches a visitor. Members can read such a conversation, filter for it and decide its held calls, but not write in it.

* feat(agent): add channel types, the visitor service and the channels API

Channel types are a registry and each type keeps its own data in a subclass. Builders list, add, change and delete an agent's channels, with audit actions and trash. One service holds everything an anonymous visitor may do.

* feat(agent): add the public chat channel with its visitor API

A public chat is a page with its own link and an optional password. Anyone with the link talks to the agent through an anonymous API that shows a message's text only; a signed token says which conversation is theirs.

* feat(agent): show visitor conversations to members

A conversation a channel started reads "Started by a visitor" in the list and can be filtered. The visitor's messages sit on the right under their label, and the composer gives way to a note, since members don't write in it.

* feat(agent): add the public chat page

The page a visitor opens from the link: the title and welcome text, the conversation, and a password form when the chat is protected. It keeps its tokens in local storage and recovers a reply through one sync path, so it never stays on the typing dots.

* feat(agent): add the Channels section to the agent configuration

A builder adds a public chat, copies its link, sets a title, a welcome text and a password, switches it off or deletes it. The link and password controls match the ones shared views and dashboards have.

* feat(agent): edit the public chat's welcome text with the rich text editor

The card shows the text formatted while it is written and saves it as markdown. The public page shows it read-only with the same component, so the builder sees what the visitor gets.

* feat(agent): give channels and visitor conversations their own icon

The person icon marks a private conversation and the globe the HTTP trigger, so channels use two bubbles: a conversation with someone outside the workspace.

* fix(agent): harden public chat replies, sends and exports after review

- A reply that can call tools keeps no draft: when it fails, is stopped or
  waits for approval, the visitor sees nothing rather than text it wrote
  before a tool call.
- One rule decides whether a channel can be used, for the visitor API and
  for the worker before a reply starts or resumes, licence included.
- Visitor sends can be repeated safely. A lost first message is recovered
  only with a secret key the page generated, never with ids members can read.
- Visitor conversations never become template examples, even when pinned.
- Visitor responses are never cached, and passwords are taken exactly as
  typed when set and when checked.

* fix(agent): harden the public chat page and Channels section after review

- The page sends a secret key with the first message and ids with the next
  ones, so a resend after a lost answer runs nothing twice, and shows each
  message once.
- It asks for a password when the chat became protected, retries a failed
  first load with backoff while saying so, and shows a stopped reply.
- The password modals wait for the server before the switch changes.
- In a workspace without Advanced or Enterprise a card only allows switching
  the chat off and deleting it.
- The welcome text is checked against its limit before it is saved.
- In a visitor's conversation the reject dialog says the visitor may see the
  reason, and the conversation filter is named Channels.

* fix(agent): fit the Permissions section description on one line

* fix(agent): open a protected public chat only once the server grants access

The page took a stored token as proof of access and guessed a refused one
from an empty title, so a failed info request after the password showed a
blank chat. The info endpoint now says whether the request has access, and
the page shows the chat only on that answer.

* fix(agent): open a protected public chat without flashing the password form

The server renders the page without the visitor's token, which only the
browser keeps, so a saved session showed the password form until the info
reloaded. The page now shows neither the form nor the chat until the
browser has checked its stored token.

* fix(agent): read the public chat from the primary database

A replica can lag behind a chat that was just switched off or given a
password, so visitors could keep using it until the replica caught up.

* fix(agent): cap the length of a public chat password guess

* fix(agent): back off syncing a public chat reply that waits for a member

A reply can wait for approval for hours, so the visitor page now checks
less often, up to once a minute, and right away when the tab is shown.

* fix(agent): refuse an agent message's uuid sent again by a visitor

A visitor and the agent both write without a sender, so a visitor resending
an agent message's uuid and text got it back as accepted, with no reply
after it, and a 500. The retry now also needs the role of the sender.

* fix(agent): keep syncing a resent public chat reply that waits for approval

A resend can get back a reply without a run, which opened no stream and
started no sync, so the page never showed the decision. Following a reply
now syncs whenever no stream follows it.

* fix(agent): send a heartbeat for each run record a visitor can't see

During a long tool run the visitor's stream dropped every record, so the
page saw nothing, reconnected every 15 seconds and replayed the hidden
records each time.

* fix(agent): word the approval and workspace access instructions for visitors

They told the agent that the reader approves held calls and can restore the
Run as identity, which is wrong for a visitor and shares internal
configuration with them.

* feat(agent): copy channels switched off with a link of their own

A copy of an agent now keeps its channels, so a builder doesn't have to set
them up again, but none answers before a member turns it on, and each gets
a new link. Only a duplicate or a snapshot restore keeps a public chat's
password; file exports and templates leave it out. Copied visitor
conversations stay on the copied channel.
2026-11-26 11:26:08 +00:00
alamin-br 274e05e900 feat(agent): connected apps as cards, with an on/off switch per app (#6870)
* feat(agent): let editors switch a connected app off

An app can be paused without losing its tool choices or sign-in.

* test(assistant): switched-off apps still count as acting without asking

* feat(agent): edit connected apps inline as cards

Matches how triggers and actions are added, edited and collapsed.

* feat(agent): show connected app tool details as in the new design

* fix(agent): fit connected app cards in a narrow configuration panel

* fix(agent): explain failed app removals and keep tool descriptions readable

Also ignores repeated switch clicks while one is saving.

* fix(agent): stop switched-off apps mid-reply and let a waiting sign-in be cancelled

A reply checks the app is still on before each call; Cancel stays usable while the provider popup is open.

* fix(agent): keep a reply going when the app switch can't be checked

A failed check is a tool error, a removed app says so, and the refused call counts as not run.

* fix(agent): keep connected app cards in step with the server after review

Updates of one app go one at a time, untouched fields follow other editors, and the badge, switch and remove confirmation show the real state.

* fix(agent): keep a card's save buttons and badge right while saving

Covers a second submit, a key the new authentication drops, and a refused key cleared by a later refresh.
2026-11-26 12:04:31 +01:00
Przemyslaw Kukulski ed9eb7d3a7 feat: turn user templates off for a whole instance (#6842)
* feat: turn user templates off for a whole instance

* Review feedback
2026-11-26 11:12:23 +01:00