* feat(analytics): record where each change comes from
Every action event sent to PostHog carries `action_source`: browser, api,
mcp, assistant, agent, automation or builder. Actions by an identity are
now sent without a person profile instead of being skipped.
* fix(analytics): report application builder changes as application
* style: format the action source test
* fix(analytics): report agent row actions as agent from their dispatch context
* fix(analytics): send no email with events of identities
* refactor(analytics): one name for the action source and no email for identities by default
* feat(analytics): keep the starting channel on jobs and label scheduled and public changes
* chore: remove the local venv link
* chore: drop the changelog entry
* fix(analytics): keep the source on exports, MCP connects and button clicks
* test(analytics): cover the dispatch context labels and public-view exports
* perf(database): resolve the dependencies of a field subset level by level
* chore: changelog entry for #6939Fixes#6939
* perf(database): batch selected fields and use indexed dependency lookups
* perf(database): let field types batch-load relations for model dependencies
* Return a 400 instead of crashing when a published page dispatch names a hidden element.
* Return a 400 from the editor dispatch, simulate and record names views for a forbidden element.
* Build the forbidden element tests' table in the builder's workspace so the data source is usable.
* Add the changelog entry.
* Renumber the workspace-level integrations ADR to 017 and mark it accepted
* Correct ADR 017 where the endpoint list and the promotion of Local Baserow integrations differ from the code
* fix: ignore malformed WebSocket messages instead of closing the connection
* fix: refuse unstorable page strings and clean page ids by default
* fix: match page unsubscribes on their channel group
* 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
* 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.
* 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>
* perf(database): read the model caches of linked tables at once
Fixes#6937
* fix(database): build each linked table model from its own cache entry copy
A prefetched cache entry is now used once, so two models of the same table
no longer share field instances.
* refactor(database): share the linked table model key in link row fields
* refactor(database): build every local model cache key from one prefix
* fix(backend): keep action fields mapped to inputs in workspace exports
Export redaction emptied every sensitive formula field, including ones that only
point at an input or previous step, so imported email actions lost their mappings.
* fix(backend): keep mapped HTTP rows on export and only for known data providers
Header, query and form rows mapped to inputs were still blanked, and any get('<text>')
was kept even when the text was not a data path.
* 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.
* fix: batch formula select option dependency queries when listing fields
Each formula field ran its own recursive dependency query and select option
query, making the list fields endpoint an N+1 (Sentry BASEROW-SAAS-BACKEND-1G7).
* test: cover single formula field select options and non-select formulas
* 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>
* 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
* 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.
* Answer 400 instead of crashing when a builder dispatch request body is not a JSON object.
* Add the changelog entry.
* Use existing decorator for request body validation
* 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>
* Check permissions before refusing to dispatch a builder workflow action without a service
* Stop the workflow action dispatch endpoint from crashing on an action without a service
* Add the changelog entry.
* Fix type hint
* fix(agent): encode public chat slug, linear web fetch strip, trigger reasons
Crafted public chat links could reach other API paths, and a page of unclosed
script tags took minutes to strip. Triggers without a message now say why they fired.
* fix(agent): keep custom elements in web fetch, validate public chat slug route
Address review: one list of row trigger types, <svg-icon> isn't stripped as <svg>,
and an invalid public chat slug 404s before any API call.
* 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
* 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>
* 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
* fix(agent): stop tool calls on Stop, always allow app tools, name databases on cards
Stop is seen only on the 2 s lease poll, Always allow skipped connected-app
tools, and same-named tables and rows looked identical on approval cards.
* fix(agent): give every named row its id when row labels repeat
A row named like another row's label could still read the same.
* fix: address review on agent stop, MCP always allow and database names
Refused calls show as not run, Always allow on MCP tools respects switched-off
servers and tools under lock, and more presentations name the database.
* feat(agent): 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