Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

compat: whether agent_create's permission mode is read before its answer is timing (#963)

Dee6aef03d565b7
diff --git a/cli/e2e/compat.e2e.ts b/cli/e2e/compat.e2e.ts
index 5ac26d306..d8ed845af 100644
--- a/cli/e2e/compat.e2e.ts
+++ b/cli/e2e/compat.e2e.ts
@@ -47,6 +47,10 @@ const CHANGED_FIELDS: Array<[RegExp, string, { optional?: boolean }?]> = [
// Whether the search index had finished its first build when the query came, and how many conversations
// it still had to read, is timing; search runs in its own process now (#829) and is often ready sooner.
[/^\.session_search [^.]*\.(ready|pending)$/, 'the index\'s readiness, and what it still has to read, at the moment of the query is timing', { optional: true }],
+ // A row created with no mode learns it from the engine's arguments once discovery sees the process
+ // (core/agents/discovery.ts, fill-only), in both builds. Whether that lands before agent_create answers
+ // is timing: the release check of 08548179c met null against "auto" once, and its earlier run met none.
+ [/^\.agent_create [^.]*\.agent\.permissionMode$/, 'the permission mode is read back from the engine\'s arguments, before or after the answer', { optional: true }],
]
type Engine = 'claude' | 'codex'