Skip to content

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

chore(e2e): the group-chat routes in the surface snapshot, exempt for now

raullopez-sandboxe5da62d1f03e
diff --git a/console/tooling-e2e/surface/exemptions.json b/console/tooling-e2e/surface/exemptions.json
index c028e1228..a47bb0383 100644
--- a/console/tooling-e2e/surface/exemptions.json
+++ b/console/tooling-e2e/surface/exemptions.json
@@ -1,8 +1,11 @@
{
"_about": "Read by src/gate/gate.ts; see the README, \"Coverage gate\". exempt and unauthenticated need a reason per entry. backlog is what no scenario covered when the gate landed: it only shrinks, and the gate fails on an entry a scenario now covers.",
"exempt": {
+ "DELETE /gateway/chats/{room_id}/agents/{agent_id}": "Switch Console group chats. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog), and the stacks the harness builds do not turn on the group_chats flag these routes need.",
"GET /gateway/auth/oidc/callback": "Needs a live OIDC identity provider; the harness signs in with a password.",
"GET /gateway/auth/oidc/login": "Needs a live OIDC identity provider; the harness signs in with a password.",
+ "GET /gateway/chats/agent-candidates": "Switch Console group chats. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog), and the stacks the harness builds do not turn on the group_chats flag these routes need.",
+ "GET /gateway/chats/{room_id}/threads/{root_id}/messages": "Switch Console group chats. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog), and the stacks the harness builds do not turn on the group_chats flag these routes need.",
"GET /gateway/docs": "FastAPI's generated API documentation; no behaviour of Switch's own to cover.",
"GET /gateway/docs/oauth2-redirect": "FastAPI's generated API documentation; no behaviour of Switch's own to cover.",
"GET /gateway/hosted-controller/machines": "Needs a hosted controller configured (HOSTED_CONTROLLER_CONFIG_PATH), which no stack the harness builds has.",
@@ -13,8 +16,10 @@
"GET /gateway/service-connections/{service}/flows/authorize": "Needs the third-party service's own sign-in page in a browser.",
"GET /gateway/service-connections/{service}/flows/callback": "Needs the third-party service's own sign-in page in a browser.",
"POST /gateway/auth/oidc/exchange": "Needs a code from a live OIDC sign-in; the harness signs in with a password.",
+ "POST /gateway/chats/{room_id}/agents": "Switch Console group chats. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog), and the stacks the harness builds do not turn on the group_chats flag these routes need.",
"POST /gateway/hosted-controller/machines/{machine_id}/observation": "Needs a hosted controller configured (HOSTED_CONTROLLER_CONFIG_PATH), which no stack the harness builds has.",
"POST /gateway/hosted-controller/machines/{machine_id}/prepare": "Needs a hosted controller configured (HOSTED_CONTROLLER_CONFIG_PATH), which no stack the harness builds has.",
+ "PUT /gateway/chats/{room_id}/read": "Switch Console read positions. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog).",
"WS /gateway/changes/ws": "Console's change-notice socket. What it sends is covered by core's test_changes_socket.py, and the session probe checks it refuses a handshake without a session; no scenario drives Console's lists yet.",
"get_template_status": "Needs an agent created from an official template on a managed machine and then a newer revision of that template; no stack the harness builds has managed agents yet (create_agent is in the backlog). Covered by core's test_template_updates.py."
},
diff --git a/console/tooling-e2e/surface/server-surface.json b/console/tooling-e2e/surface/server-surface.json
index d09ac80bd..9a762ac58 100644
--- a/console/tooling-e2e/surface/server-surface.json
+++ b/console/tooling-e2e/surface/server-surface.json
@@ -88,6 +88,11 @@
"auth": "session",
"flags": []
},
+ {
+ "route": "DELETE /gateway/chats/{room_id}/agents/{agent_id}",
+ "auth": "session",
+ "flags": []
+ },
{
"route": "DELETE /gateway/chats/{room_id}/hidden",
"auth": "session",
@@ -357,6 +362,11 @@
"auth": "session",
"flags": []
},
+ {
+ "route": "GET /gateway/chats/agent-candidates",
+ "auth": "session",
+ "flags": []
+ },
{
"route": "GET /gateway/chats/events",
"auth": "session",
@@ -382,6 +392,11 @@
"auth": "session",
"flags": []
},
+ {
+ "route": "GET /gateway/chats/{room_id}/threads/{root_id}/messages",
+ "auth": "session",
+ "flags": []
+ },
{
"route": "GET /gateway/collaborations",
"auth": "session",
@@ -942,6 +957,11 @@
"auth": "session",
"flags": []
},
+ {
+ "route": "POST /gateway/chats/{room_id}/agents",
+ "auth": "session",
+ "flags": []
+ },
{
"route": "POST /gateway/chats/{room_id}/archive",
"auth": "session",
@@ -1315,6 +1335,11 @@
"auth": "session",
"flags": []
},
+ {
+ "route": "PUT /gateway/chats/{room_id}/read",
+ "auth": "session",
+ "flags": []
+ },
{
"route": "PUT /gateway/connector-apps/{service}",
"auth": "session",