Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Merge remote-tracking branch 'origin/main' into admin-mention-checks

Abel Dantasf83aad4b2689
diff --cc CHANGELOG.md
index 5fd9c4fe4,bc67fcf48..7fa8a9226
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -159,15 -159,18 +159,27 @@@ version of their own to them without al
compares it only when someone signs in.
#### Changed
+ - **Workspaces belong to organizations. Upgrade by replacing every pod, and
+ downgrade the database before rolling back.** Every existing workspace gets
+ an organization of its own, and its owners become the organization's admins.
+ An organization admin administers every workspace in it without being added
+ to each. A release from before organizations doesn't know about organization
+ admins: if old and new pods serve together during a rolling update, or after
+ a rollback that keeps the new database, an owner removed from a workspace by
+ an old pod is still the organization's admin and can come back into it. So
+ for this release, replace every switch-core pod at once rather than rolling
+ them, and to roll back, first downgrade the database to the revision before
+ `238c68b7306e` (`alembic downgrade 238c68b7306e-1`), then start the older
+ release.
+- **The heads-up for tagging an agent that isn't in the room comes from the
+ process that wrote the message, and costs nothing when every name tagged
+ is one of the room's agents.** The admin's consumer, which reads every
+ message in a workspace on one process, checked each message with an `@`:
+ two database sessions and a lookup for every name tagged. Under load that
+ one process fell behind the rest. The check now runs once a message has
+ committed, on whichever process wrote it, and only when the message tags
+ a name that is none of the room's agents (a role, a person, an agent not
+ in the room). The warnings read as before.
- **An agent's stream reads in one database session per pass, and pooled
connections are no longer pinged before use.** A pass that delivered a
message opened a session for each of its reads, six pool checkouts and six