Skip to content

Commit 42cc289

Browse files
declan-scaleclaude
andcommitted
fix(codex): align live-test AGENT_NAME with the manifest agent name
conftest set AGENT_NAME to "<name>-test" while the manifest registers "<name>", so the live test queried a non-existent agent and got 404. Drop the override for the sync and async-base tutorials (the test's own default already matches the manifest). For the temporal tutorial set it to the manifest name instead of removing it, since project/workflow.py reads AGENT_NAME at import time. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8057584 commit 42cc289

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/tutorials/00_sync/harness_codex/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99

1010
sys.path.insert(0, os.path.dirname(__file__))
1111

12-
os.environ.setdefault("AGENT_NAME", "s-harness-codex-test")
1312
os.environ.setdefault("ACP_URL", "http://localhost:8000")

examples/tutorials/10_async/00_base/harness_codex/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99

1010
sys.path.insert(0, os.path.dirname(__file__))
1111

12-
os.environ.setdefault("AGENT_NAME", "ab-harness-codex-test")
1312
os.environ.setdefault("ACP_URL", "http://localhost:8000")

examples/tutorials/10_async/10_temporal/harness_codex/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
sys.path.insert(0, os.path.dirname(__file__))
1111

12-
os.environ.setdefault("AGENT_NAME", "at-harness-codex-test")
12+
# AGENT_NAME must match the manifest's agent name: the live test queries the
13+
# server by this name, and project.workflow reads it at import time.
14+
os.environ.setdefault("AGENT_NAME", "at-harness-codex")
1315
os.environ.setdefault("ACP_URL", "http://localhost:8000")
1416
os.environ.setdefault("WORKFLOW_NAME", "at-harness-codex")
1517
os.environ.setdefault("WORKFLOW_TASK_QUEUE", "at_harness_codex_queue")

0 commit comments

Comments
 (0)