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 pull request #739 from sandbox-quantum/feat/switch-trust-integration-fixes

Timo Bozsolik-Torres2762f63d6dbe
diff --cc core/tests/integration/conftest.py
index 6db331f83,3b32da77a..64c2ad0b4
--- a/core/tests/integration/conftest.py
+++ b/core/tests/integration/conftest.py
@@@ -268,14 -260,16 +269,20 @@@ class Harness
event_buffer: EventBuffer,
owner_id: str,
session_factory: object,
+ collab_lifecycle: object,
) -> None:
self.protocol = protocol
+ # The real lifecycle under the `collaboration_bridges` marker, the
+ # no-bridges stand-in otherwise.
+ self.collab_lifecycle = collab_lifecycle
self.room_service = room_service
self.client_lifecycle = client_lifecycle
+ # Not registered by default — most tests never need a running admin
+ # client, and one running in every test room changes what every
+ # room_join-watching test sees (admin is itself a room member once its
+ # client runs). A test that needs the SystemActor (e.g. to read back an
+ # admin notice) registers it itself, through this, before start_clients().
+ self.client_factory = client_factory
self.room_store = room_store
self.event_buffer = event_buffer
self.owner_id = owner_id