Commit Graph
51 Commits
Author SHA1 Message Date
Przemyslaw Kukulski f01dce307f chore: remove the agent-builder and user_templates feature flags (#6960) 2026-12-01 19:56:53 +01:00
Przemyslaw Kukulski db66e25b17 feat: per-user feature flags for early access (#6780) 2026-11-19 08:32:55 +01:00
Davide Silvestri 23f328cb19 feat(database): assign identities to rows and mention them in comments (#6619)
* feat(database): assign and mention identities behind a field option

- Collaborator fields get `include_identities` and long text fields
  `long_text_include_identities`, both off by default.
- With the option on, active identities of the workspace can be assigned
  or suggested as mentions; they are shown with their icon and renamed
  in realtime, and they never receive notifications.
- Turning the collaborator option off backs up the column, deletes the
  identity assignments and strips identities from the view defaults, so
  the update can be undone.
- Identities can author row comments and be mentioned in them.
- Exports write an identity as `Name <identity>`.

* refactor: hide internal emails in collaborator exports through one check

* fix: import a personal view only for a person, without a query per owner

* fix: show collaborator identities with the icon of the user subject type

* refactor: drop a redundant local import of the core handler

* fix: unify identity icons and space field options

* fix: keep identity field menus and saved mentions readable

* fix: limit identity mention suggestions to row comments

* perf: prefetch available collaborators once per workspace

* fix: use workspace members as authors of generated rows

* fix: resolve linked collaborator values by member email

* fix: use workspace collaborators for field pickers and paste

* refactor: move identity avatar styles to the avatar stylesheet

* fix: address review feedback on identity collaborators
2026-11-18 22:53:44 +01:00
Davide Silvestri 5169076065 feat: introduce User-backed workspace identities (#6556)
* feat: introduce User-backed workspace identities

Replaces workspace core.Agent subjects with identities stored as Django
Users, so permissions, execution and attribution use the same record.

- User.objects and WorkspaceUser.objects are human-only; permission and
  identity code opts in through objects_and_identities. is_human and
  is_identity classify a user at runtime.
- Login, tokens, seats, notification recipients, personal views and
  last-admin checks stay human-only. Roles, teams and field grants work
  for identities unchanged.
- Agent applications run as an identity, never as a person. Every shared
  tool rechecks the identity's authority on each call, and MCP refuses a
  tool that skips that boundary.
- Migrations add the profile metadata and index, remove the Agent model
  and delete or clear legacy Agent data: trash entries, role assignments,
  team memberships, integration authorizations and run-as bindings.
- Rename the management API, UI, events and feature flag to identity.

Squashed and rebased onto develop; the previous history is kept on
backup/6556-before-develop-rebase.

* refactor: remove generic subject options endpoint

* refactor: simplify identity selection and Agent run-as options

* feat: distinguish identity notification senders

* fix: restrict identity bindings to identity managers

* docs: record users and identities verification

* fix: restore snapshots as the person restoring

A restore checked the snapshot creator's permission and used the creator
to decide whether an Agent keeps its identity binding. It now checks the
person restoring, passed to the import as `restored_by`. `copied_by` stays
unset on restore, so credential checks keyed on it behave as on develop.

Restoring a snapshot whose creator was deleted works again. The copy rule
for identity bindings covers Agent run-as only; a copied Local Baserow
integration keeps its authorized subject.

* fix: leave settings pages the user may not open

A settings route without a permitted tab rendered an empty page, as the
Identities page did with its feature flag off. It now opens the first
page the user may see.

* fix: renumber the legacy Agent cleanup migrations

Develop added agent 0016 and integrations 0043, so the migrations that
clear legacy Agent run-as bindings and integration authorizations move to
agent 0017 and integrations 0044.

* test(agent): run the trigger self-event test as an identity

The test added on develop created a `core.Agent`, which this branch
removes. It now uses an identity user as the Agent's run-as subject.

* perf: load user types once per batched permission check

* refactor: state the stored subjects in each subject type

* fix: give every user a profile

* fix: keep identity attribution on rows copied in their workspace

* refactor: give people and identities their own subject type

UserSubjectType stays the type both are registered and stored under. It forwards what differs to HumanSubjectType and IdentitySubjectType, so get_specific_type is the only place in subject code that inspects the user type. The registry returns the specific type on request and get_by_model keeps returning the stored type, which never reads the profile.

An identity's membership is checked in one query instead of two.

* fix: keep the roles of identities when a database is duplicated

The role import read subjects through the model's default manager, which only returns people, so duplicating or restoring a database failed when an identity held a role on it. It now resolves the subject through the subject registry.

A subject that no longer exists is skipped instead of failing the whole duplicate or restore.

* refactor: look up a subject type from its content type in one place

* fix: reload a cached token whose profile is incomplete

A token cached by the previous release has a profile without the user type, which reads as not a person, so its requests were refused until the entry expired. The token cache now treats it as a miss, with the check the user cache already used.

* refactor: check the user type once where the check was repeated

The MCP endpoint loader, the personal view permission manager and the identity trash type each asked the same question several times. The rule that an identity is never selected by email moves from the team handler to the identity subject type.

* refactor: leave trashed workspaces out of the identity membership manager

WorkspaceUser.objects_and_identities was named after objects but also returned memberships of trashed workspaces, so callers filtered them by hand. It now follows the existing pair: it leaves trashed workspaces out, and objects_and_identities_and_trash includes them, as objects_and_trash does for people.

* test: state the behaviour of every user type

The table fails when a user type is added and says what has to be decided first. An unknown type is checked to be denied.

* refactor: refuse to say whether a stored user subject is interactive

The answer differs between a person and an identity, so reading it from the stored type would be wrong for one of them. It now raises and points to the specific type.

* refactor: lock the person in membership writes instead of checking the type

Leaving a workspace, removing a member and adding a user lock the user through the people manager, which refuses an identity or an unknown type in the same query. Nothing adds an identity through add_user_to_workspace, so its branch for identities goes. The last admin check compares the membership with the people who are admin, which needs no type check.

* test: leave no rows behind in the legacy authorization migration test

The test left an integration that pointed at a user that didn't exist and a workspace, in the database the migration tests share. Tests that ran after it then failed on the foreign key or on the workspace id. It now uses a real user and empties the two tables.

* docs: describe the subject types and compare the Subject table alternative

ADR 013 is shorter and states that people and identities each have a specific subject type under the stored auth.User type. It compares shared User storage with a Subject table that users and identities would both point to.

* chore: run the legacy run-as cleanup after the agent actions migration

Develop added agent migration 0017, so the cleanup becomes 0018 and depends on it.

* test: leave no rows behind in the legacy agent migration tests

Like the legacy authorization test, these left a workspace in the database the migration tests share, which a later test that creates workspaces with fixed ids collides with.

* fix: write and read the workspace role of an identity in one place

The role assignment API wrote the role of an identity through the membership update of people, which told every member of the workspace about it and stored Builder as MEMBER, while the identities API stored BUILDER and returned the stored value. Both now write through the identity handler, which stores the role like the role of a person, and the role is read with the resolver the workspace members use.

* fix: take no row lock in the membership writes of a person

Leaving a workspace locked the user before the membership while removing or updating a member locks the membership first, so the two could deadlock. The user type never changes and these operations refuse an identity, so the lock protected nothing: they now only check that the user is a person. Leaving no longer locks the admin memberships and removing a member no longer checks for the last admin, as before identities.

* fix: find an identity by its name only in the subject options

The search also matched the email and username, which for an identity hold an internal key, so searching a part of that key returned every identity.

* chore: run the identity migrations after the new ones on develop

Develop added core 0138, integrations 0044 and enterprise 0073, so the identity migrations become core 0139 and 0140, integrations 0045 and enterprise 0074 and depend on them.

* fix: keep the identity of a copied integration only for identity managers

A duplicated application or a restored snapshot kept the identity its Local Baserow integration acts as, without checking the person who made the copy. Restoring a snapshot could so bring back a binding an admin had removed. The copy now keeps the identity only when that person may bind identities, as the Agent application already did, and is otherwise authorized as that person.

* docs: follow the renumbered migrations and the copy rule in the test plan

The test plan named the identity migrations and their tests by their old numbers and still said a copied integration keeps its subject.

* test(agent): run the row trigger tests as an identity

The row trigger tests added on develop created a `core.Agent`, which this
branch removes. They now use an identity user as the Agent's run-as
subject, and the e2e fixture creates it through the identities endpoint.
2026-11-18 08:44:31 +00:00
Davide Silvestri 9f9e068a27 feat(agent): show waiting approvals and let editors stop the asking (#6610)
* feat(agent): count pending approvals per application and conversation

* feat(agent): show waiting approvals in the sidebar, header and conversation list

* feat(agent): always allow a held tool from the approval

* feat(agent): add Always allow and the ask before changes switch

* fix(agent): read pending counts from the primary and lock the conversation first

* test(agent): run approval test actions through the action registry

* test(agent): read the decision result in the web search approval test

* test(agent): let the waiting conversations request start before answering it

* fix(agent): keep older waiting conversations through a reconnect

* perf(agent): count pending approvals for many users and conversations at once

The core hook takes many users and returns counts per user and application, so
creating or restoring an Agent and the count task count once for all members
instead of once per member; the task sends every count in one broadcast.
Pending approvals are defined once, and a page of conversations gets its counts
in one query passed to the serializer, like its runs, instead of an annotation
with a per-object fallback.

* refactor(agent): return one decision result and name the count signal after its event

The service and the action both return the decision result, which carries the
approved and rejected tools, so they are computed once for the audit params and
Always allow. Always allow bumps the Agent's updated_on like a configuration
update. The signal is renamed application_pending_count_updated, like its
websocket event.

* fix(agent): keep the deciding tab's waiting counts current

A decision lowers the Agent's count before its request and restores it when the
request fails, unless the call was decided elsewhere. Its conversation count
goes through the tracked update, so a list read that started earlier restarts
instead of bringing the old count back. The pill adds only the waiting
conversations it hadn't loaded, and leaves a conversation picked while it loads
selected.

* chore(agent): describe the ask switch and drop the unused counter class

The ask switch is described by its text and the row separator is hidden from
screen readers. The sidebar no longer adds tree__action--has-counter, whose
padding --has-options already sets.

* test: give fixture fields unique default names

Two fields of one table could get the same random name, so a formula
referencing the other field referenced itself and failed with
SelfReferenceFieldDependencyError.

* refactor(agent): show the sidebar count with the warning counter

The admin Templates count added badge-counter--warning, so the Agent's count
uses it too instead of its own yellow color prop on BadgeCounter.

* fix(agent): reconcile approval counts and cycle loaded conversations

* fix(agent): name the tools Always allow stops asking for

* fix(agent): load older pages until the pill reaches a waiting conversation
2026-11-11 17:25:51 +00:00
Peter Evans 8e37e1ec3a fix: sign users out of existing sessions when an admin changes their password (#6629)
* fix: sign users out of existing sessions when an admin changes their password

* fix: keep admins signed in after changing their own password in the admin panel

* fix: send other tabs to the login page after a password change instead of crashing

* chore: add changelog entry for the password change tab crash fix

* fix: send users with two-factor auth to the login page after changing their own password
2026-11-11 10:10:17 +00:00
Davide Silvestri 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
2026-11-05 09:16:14 +01:00
Davide SilvestriandBram Wiepjes 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>
2026-10-23 09:12:13 +00:00
Davide Silvestri 64c9fff85e feat [6/8]: prepare AI provider management for rollout (#6070)
* feat: retire AI provider flag and add rollout audit

* test: remove obsolete AI provider flag setup and docs

* chore: clean up AI provider configuration and tests

* feat: deprecate legacy AI provider environment configuration

* docs: explain AI provider migration sizing and timing

* docs: mark AI provider migration audit for removal

* docs: explain AI provider migration audit usage

* fix: log AI provider env deprecations after logging setup

log_ai_provider_env_deprecations() ran at the tail of _setup_health_checks(),
which ready() calls before setup_logging(). The notice went out through
loguru's default sink and missed BASEROW_BACKEND_LOG_LEVEL, the Baserow
format, and the OpenTelemetry log exporter, so operators shipping logs to a
collector never saw it.

Also drop two references the flag removal invalidated: the getEffectiveAIAgentModels
JSDoc still described filtering as conditional on the removed provider flag, and
the AI field architecture doc still pointed provider authors at the deleted
legacy workspace-setting hook. That doc now names BuiltInGenerativeAIModelType,
which is what grants an integration override model inheritance.

* fix: reuse environment AI settings in generation workers

* feat: import legacy AI provider settings on upgrade

Removing the ai-providers flag makes database-backed providers the default, which
would leave every existing installation on an empty AI providers page with a
management command as the only way to populate it. A data migration imports the
environment and each workspace's stored settings instead, so a standard upgrade
needs no commands.

Both scopes are imported in one migration. Legacy workspace settings replaced the
instance ones entirely, while database providers inherit, so each imported workspace
is also switched off the instance provider of the same type. Without that a workspace
would silently gain models billed to the instance account.

Settings that cannot fit their columns are skipped and logged rather than raising
DataError and rolling back the whole upgrade. The migration reverses as a no-op
because the previous version does not read these tables, so deleting rows would only
discard edits made during a rollback window.

migrate_ai_provider_settings stays as the recovery path and now shares its planning
logic with the migration, so both agree on which legacy settings are complete. It
deliberately does not switch workspaces off inherited providers, and warns instead.

* chore: remove the temporary AI provider audit command

audit_ai_provider_settings existed to inventory legacy configuration before a manual
import. The upgrade now imports automatically, so the command has no remaining step
to support. Removal was already tracked in #5749.

* docs: reduce AI provider docs to lasting behaviour

The upgrade procedure, rehearsal plan and sizing query described a one-time
transition and do not help anyone after the release; they live in the pull request
instead. What remains explains how providers work: the two scopes, how they combine,
the inheritance switch, what the deprecated environment variables still do, and how
integration overrides and published applications behave.

Also corrects claims that no longer hold: published applications keep materialised
credentials only when they were published before the upgrade, the import is no longer
optional, and a workspace-owned provider suppresses the environment fallback too.

* docs: shorten the AI provider changelog entries

Bullet points render as single list items under the entry. The released entries
average around twenty characters; these ran to four hundred, so the detail belongs
in the AI providers guide rather than the changelog.

* docs: clarify where imported AI credentials are stored

The previous wording implied Baserow's own exports carry provider credentials.
They do not: AIIntegrationType lists ai_settings as a sensitive field and
ImportExportConfig excludes those by default, and AIProviderConfig is not part of
any export path.

* docs: explain the AI provider upgrade and where to configure providers

State that the upgrade imports the BASEROW_* provider variables once and no longer
reads them, list the exceptions, and give the exact navigation for instance admins
(Admin tools -> AI providers) and workspace admins (workspace Settings -> AI
providers). Map each deprecated variable to the field that replaces it.

* fix: renumber the legacy AI provider import after 0121_agent

Develop's core 0121_agent and this branch's import migration both depended on
0120, leaving two leaf nodes, so migrate refused to run and the startup check and
E2E shards failed. The import is now 0122 and depends on 0121_agent.

* feat: remove the legacy workspace generative AI settings endpoint

GET/PATCH /api/workspaces/{id}/settings/generative-ai/ had no caller left, yet a
PATCH was still honoured for any provider type without a workspace provider and
never shown in the AI providers UI. Remove it with the handler parameter,
receivers and frontend handler that only it could trigger.

* fix: stop instance AI provider changes from fanning out per workspace

An instance-level change queued one Celery task per 25 workspaces behind a global
blocking lock, sent a payload to every connected user, and made the premium receiver
serialize every AI field on the instance. Instance changes now notify staff only;
other users see them after a reload. The render lock is per scope, and the in-use
guards no longer read one row per workspace.

* fix: keep inherited Kuma when a workspace switches off the instance provider

The upgrade switches imported workspaces off the same-type instance provider, which
made an inherited instance Kuma model invalid there, so Kuma fell back to the
deprecated env model or turned off. Inheriting the instance Kuma selection now
ignores workspace switch-offs; explicit workspace selections stay strict and are
the only ones that block a switch-off.

* fix: skip malformed Ollama URLs during AI provider migration

* fix: preserve skipped legacy AI provider connections

* test: cover independent legacy AI workspace connections

* fix: skip malformed legacy AI provider settings

* fix: move legacy AI import after current core migrations

The linear rebase omitted the migration renumbering from the previous merge commit, while develop advanced through core 0124. Rename the existing AI import to 0125, depend on 0124, and update its historical migration test so core has a single leaf.
2026-09-25 17:05:10 +02:00
Bram ac6cdb5aca All workspaces homepage [4/7] Remember user last viewed (#6001)
* Track when a user last viewed a view, page, dashboard or workflow

* moved `ai_provider_states` into _get_application_serializer_context

* Fixed feedback

* Fix migration conflict

* Fixed feedback

* Skip impersonated last viewed
2026-09-25 12:37:13 +02:00
Jérémie Pardou ad80341c03 feat: add Agent subject type (#5851)
* Add workspace Agents and permission management

* fix: remove all duplicate team subject memberships

* fix: align agent team role inheritance with users

* fix: delegate workspace role storage to subject types

* fix: preserve agent team memberships through trash

* Fix migration conflict

* fix: save agent settings pages independently

* fix: preserve agent roles across license changes

* fix: stabilize agent list pagination

* fix: filter agent websocket events by list permission

* fix: authorize agent team membership changes

* fix: serialize concurrent agent team updates

* fix: refresh agent teams through realtime events

* fix: restrict personal views to user subjects

* fix: deny agents with unavailable roles

* fix: exclude agents in trashed workspaces

* test: cover permanent agent access cleanup

* fix: gate agents in team selectors

* fix: accept trash option for preview actors

* fix: set native agent form button types

* fix: ignore stale agent modal saves

* fix: show permitted agent management actions

* fix: validate subject lookup fields

* perf: optimize batched user membership checks

* perf: cache agent team feature per list

* fix: map agent nonmember API errors

* fix: document paginated agent API schema

* fix: stabilize agent API schema operations

* fix: show agent name validation errors

* fix: show total agent count

* test: cover agent creation submissions

* test: cover agent and subject UI behavior

* docs: define direct subject role contracts

* fix: clarify team access management

* fix: use standard empty agents table

* fix: align agent name column styling

* refactor: move agent trash import

* refactor: align agent extension registry naming

* fix: recover agent team selector loading

* fix: validate every subject in role batches

* fix: ignore stale agent list responses

* perf: index recent team subjects

* fix: restore role handler imports

* Fix lint

* fix: reuse prefetched user memberships

* fix: preserve low priority role fallback

* fix: preserve trashed field permission subjects

* fix: open team picker when agent loading fails

* Fix tests
2026-09-21 16:32:32 +02:00
Davide Silvestri bb1f2c47a3 fix: webSocket stalls and reduce realtime replay storage overhead (#6040)
* fix: prevent realtime replay from stalling websocket workers

* fix: index replay recipients and reset disposable history

* docs: explain realtime recipient trigger

* docs: identify realtime recipient trigger on model

* fix: reject expired replay anchors retained by cleanup locks
2026-09-09 16:46:09 +02:00
Davide Silvestri ab45c2346a feat [4/8]: per-feature AI model settings (#5796)
* feat: per-feature and workspace-level AI model settings

Baserow could only point every AI feature at one instance-wide model. An
administrator can now register provider models, declare which AI features each
model may serve, and pick the default model per feature; a workspace admin can
inherit that choice, override it, or disable the feature locally.

The assistant resolves its model once per logical request and threads that
snapshot through its nested agents and tools, so a single run can no longer
re-read settings repeatedly or pick a model other than the one it validated.
The scoped provider state is memoized for the duration of a request, keeping
workspace serialization from loading it once per workspace.

Also:
- add Google and Groq provider types, and keep these database-only providers
  out of the legacy workspace settings they cannot round-trip through;
- prune orphaned feature selections so an unloaded feature type's RESTRICT FK
  no longer blocks provider and model deletion;
- record whether a configured model answers text and tool-calling probes, and
  invalidate that result when its credentials or identifier change;
- broadcast provider and availability changes over the existing realtime
  channel so open clients update without reloading;
- read the assistant model from the shared configmap, so frontend pods no
  longer miss it on Helm installs.

Manual test instructions live in docs/testing/kuma-model-settings-test-plan.md.

* fix: address AI provider settings review feedback
2026-09-04 10:53:53 +02:00
Davide Silvestri f27bb387fe feat [3/8]: add workspace AI provider management and complete AI Field resolution (#5785)
* feat: add workspace AI providers for AI fields

* fix: address workspace AI provider review feedback

* fix: address remaining AI provider review feedback

* fix: resolve core migration conflict

* fix: stabilize premium AI provider tests

* address feedback for local imports
2026-08-20 10:49:57 +02:00
Davide Silvestri 4feb259e10 chore(deps): upgrade Nuxt to 4.5.0 and Vue ecosystem (#5763) 2026-08-05 16:05:01 +00:00
Davide Silvestri c3706658a2 feat [1/8]: add instance AI provider management behind a feature flag (#5740)
* feat: add instance AI provider management

* fix: simplify AI provider testing

* fix: remove extra model list spacing

* fix: show AI provider form errors inline

* fix: use icons for AI provider row actions

* fix: place model errors before help text

* chore: polish code

* fix: address feedback

* fix: address remaining frontend CI failures
2026-07-27 14:12:37 +00:00
dimmur-brw f5ebc9457c feat: show anonymous public view visitors in editor's presence bar (#5704) 2026-07-20 17:01:01 +02:00
dimmur-brw 8eeb53e4fc feat: User presence (part 2) - user presence on grid (#5570) 2026-07-06 08:04:35 +02:00
Davide Silvestri d2924478bd fix(web-frontend): recover realtime connection on refocus and self-heal after failures (#5628)
Reconnect recovery only fired on visibilitychange/pageshow/online — none of
which fire when returning from another app/window or after OS sleep — and the
client gave up permanently after 10 attempts. It also latched forever on a
socket stuck in CONNECTING.

- add a window focus listener so refocusing recovers a dropped connection
- keep retrying slowly after max attempts instead of giving up
- force-close a socket stuck in CONNECTING via a handshake watchdog
2026-07-02 14:51:14 +02:00
Davide Silvestri caca908d5c fix(web-frontend): refresh access token on websocket reconnect (#5623)
A backgrounded tab makes no HTTP calls, so the axios interceptor that
refreshes the short-lived access token never runs and the token expires.
On refocus the socket reconnected with the stale token, the server
rejected it, and the reconnect latched into a permanent 'please refresh'
error instead of recovering.

connect() now refreshes an expiring/expired token before reconnecting,
and an auth rejection forces one refresh-and-retry (bounded so a
persistently rejected token can't loop) before surfacing the failure.
2026-07-01 15:13:18 +02:00
dimmur-brw 0b0562ec93 feat: User presence (part 1) - infrastructure and grid avatars (#5399) 2026-07-01 07:10:01 +00:00
dimmur-brw 1d1e992b21 Improve websocket management when the connection is lost (#5355) 2026-06-23 22:25:52 +02:00
Jonathan Adeline 552ce22d16 chore: Bump to Nuxt4 (#5197) 2026-06-17 16:10:09 +04:00
Jérémie Pardou a2058c516c Improve web frontend hostname detection for other plugins (#4790)
* Improve web frontend hostname detection for other plugins
2026-02-17 16:30:27 +01:00
Davide Silvestri 3e774f88f1 fix(realtime): Realtime updates for data sources and workflow actions (#4587)
* Add realtime signals for data-sources and workflow-actions

* Address feedback for data sources and other handlers

* Add realtime update for theme

* apply Peter's patch

* Fix flaky test
2026-02-03 10:54:20 +01:00
Peter Evans cac1284f91 Resolving two issues: 1) in our realTimeHandler, don't unsubscribe the client if the state isn't CONNECTED, if they're re-connecting then it'll throw an error when socket.send is called. 2) For defensive programming purposes, in the table page's beforeDestroy, ensure we have a realtimePage before trying to unsubscribe from it. If we attempt to destroy before mounted happens, then realtimePage is still null. (#4527) 2026-01-28 16:36:38 +00:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Cezary Statkiewicz 5185890680 #3447 - do not fail in the frontend if an unknow job type comes from the backend 2025-03-17 15:17:30 +00:00
Abdalla Mahmoud d4c47e159c Notify other windows about started jobs.
review comments
2025-02-05 13:47:48 +01:00
Davide Silvestri 1396190c93 Resolve "The Notification handler get_notification_by not handle the MultipleObjectsReturned exception" 2024-03-12 14:38:30 +00:00
Bram Wiepjes 5d1411c18e Invalidate authentication tokens on password change 2023-10-25 08:09:12 +00:00
Petr Stribny a8940f2887 Resolve "Real-time support for row change history" 2023-10-16 08:01:49 +00:00
Jonathan Adeline 0af095785c Use runtime config 2023-08-07 11:29:29 +00:00
Davide Silvestri 8a4a21c209 Resolve "Notify user when added to rows as a collaborator" 2023-07-27 15:51:41 +00:00
Davide Silvestri c5c79744ce Notification v1: create notification panel and show mentions in comments 2023-07-14 07:59:25 +00:00
Davide Silvestri b074d2e1cc Resolve "Rename notifications to toasts" 2023-06-28 16:31:32 +00:00
Peter Evans 0426ead072 Resolve "Rename group to workspace in frontend code." 2023-03-28 14:40:58 +00:00
Alexander Haller 581ee16c76 Resolve "Prevent websockets from leaking information about resources in Baserow" 2023-01-11 19:03:32 +00:00
Petr Stribny 95c0a54c12 Realtime user and group user updates 2022-08-31 15:49:01 +00:00
Davide Silvestri d6b8a57a79 Resolve "Allow setting a password for publicly shared form and grid views" 2022-04-26 19:57:54 +00:00
Alexander Haller 7d23f36dd7 Implement order groups action 2022-04-22 13:26:19 +00:00
Nigel Gott 60eb85da4f Realtime Public View Sharing 2022-01-11 20:13:08 +00:00
Bram Wiepjes cac27f1628 Final branch licensing system 2 2021-10-20 19:28:51 +00:00
Nigel Gott 6e5ce3846a Resolve "Trash (never delete anything)" 2021-07-09 08:29:08 +00:00
Bram Wiepjes 7d4aeeec36 Resolve "Make the applications orderable" 2021-05-18 13:43:07 +00:00
Bram Wiepjes 583e524cde Resolve "Show error if the websocket reconnecting loop stops" 2021-03-16 10:38:17 +00:00
Bram Wiepjes 29ce880cb5 prevent websocket reconnect when the connection closes without an error 2021-03-09 16:49:07 +01:00
Bram Wiepjes c8a9c1438e Resolve "Implement an exponential backoff for the websocket reconnecting" 2021-03-08 14:08:41 +00:00
Bram Wiepjes 6d1d3c86a7 Resolve "Show error when the web-frontend can't connect to the backend when rending the page server side." 2021-02-09 10:29:53 +00:00
Bram Wiepjes c994b18462 Resolve "Inviting users to a group" 2021-02-04 16:16:33 +00:00