Preserve agent cwd through Codex app server
This commit is contained in:
@@ -96,6 +96,12 @@ else
|
||||
fail "Codex probe did not complete (cmd=${cmd}); tail: $(echo "$pane" | grep -vE '^\s*$' | tail -5)"
|
||||
fi
|
||||
|
||||
if echo "$pane" | grep -Fq "$REPO"; then
|
||||
pass "daemon-created Codex thread uses the requested project directory"
|
||||
else
|
||||
fail "Codex thread did not use requested directory $REPO"
|
||||
fi
|
||||
|
||||
if python3 "$REPO/agents.py" --config "$CFG" status \
|
||||
| grep -E '^\s*probe\b' | grep -q RUNNING; then
|
||||
pass "agents.py status reports probe RUNNING"
|
||||
|
||||
+2
-1
@@ -279,8 +279,9 @@ class TestExampleConfig(unittest.TestCase):
|
||||
cmd = launched[0]
|
||||
self.assertTrue(cmd.startswith(
|
||||
"codex remote-control start --json >/dev/null && "
|
||||
"codex --remote 'unix://' --model 'gpt-test' "))
|
||||
"codex --remote 'unix://' -C "))
|
||||
self.assertEqual(cmd.count("--remote 'unix://'"), 1)
|
||||
self.assertIn(f"-C {agents.shlex.quote(cfg['agents']['cx']['dir'])}", cmd)
|
||||
self.assertIn("--model 'gpt-test'", cmd)
|
||||
self.assertIn(
|
||||
"--dangerously-bypass-approvals-and-sandbox --dangerously-bypass-hook-trust --no-alt-screen",
|
||||
|
||||
Reference in New Issue
Block a user