Skip to content

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

E2E: turn auto mode off for the provider lane's agent

Petr Bauchadf8978cc9ca
diff --git a/console/tooling-e2e/src/clients/switch-client.ts b/console/tooling-e2e/src/clients/switch-client.ts
index 844eab85c..e29a3c64d 100644
--- a/console/tooling-e2e/src/clients/switch-client.ts
+++ b/console/tooling-e2e/src/clients/switch-client.ts
@@ -47,6 +47,7 @@ export interface ManagedAgentDefinition {
provider: string;
model: string | null;
instructions: string;
+ auto_mode: boolean;
auto_approve: boolean;
directory: string | null;
}
diff --git a/console/tooling-e2e/src/provider/harness.ts b/console/tooling-e2e/src/provider/harness.ts
index 2a44c951b..0e5e81593 100644
--- a/console/tooling-e2e/src/provider/harness.ts
+++ b/console/tooling-e2e/src/provider/harness.ts
@@ -120,7 +120,10 @@ async function createOnController(
provider,
model: provider === 'claude' ? CLAUDE_MODEL : null,
instructions: AGENT_INSTRUCTIONS,
- // The `approval` scenario needs the session to ask before running a tool.
+ // The `approval` and `interrupt` scenarios need the session to ask before
+ // running a tool. Auto mode, on unless a definition says otherwise, lets
+ // the provider run what it judges safe without asking.
+ auto_mode: false,
auto_approve: false,
directory: env.provider.agentRepoDir,
};