From 667741fb9ee2c885bc6879064a257790ab6b9b13 Mon Sep 17 00:00:00 2001 From: Artur Maciag <1679024+p1c2u@users.noreply.github.com> Date: Mon, 23 Nov 2026 12:03:16 +0000 Subject: [PATCH] Give the stand-in agent a sign-in file where v0.16.0 looks Since v0.16.0 an agent with -agent-owner-config=false keeps its Codex sign-in in its own profile, /agents//profile, so the callee exited asking for a login. Write the file there too. --- network/run.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/network/run.sh b/network/run.sh index 3e0b709..d542d7b 100755 --- a/network/run.sh +++ b/network/run.sh @@ -143,8 +143,13 @@ start_node() { # The agent's own (isolated) Codex configuration needs a sign-in file; the # stand-in never reads it. -mkdir -p "$work/callee/codex" "$work/agent" -echo '{}' >"$work/callee/codex/auth.json" +# Releases before v0.16.0 keep it in /codex, later ones in the +# agent's own profile, /agents//profile. +for profile in "$work/callee/codex" "$work/callee/agents/$agent/profile"; do + mkdir -p "$profile" + echo '{}' >"$profile/auth.json" +done +mkdir -p "$work/agent" start_node callee "" -agent codex -agent-command /work/bin/codex -agent-name "$agent" \ -agent-dir /work/agent -agent-owner-config=false -agent-dir-instructions=false -agent-dir-skills=false start_node caller