Preserve agent cwd through Codex app server

This commit is contained in:
2026-08-23 02:44:06 +00:00
parent a7d61d812e
commit 9afd9e0a99
4 changed files with 21 additions and 7 deletions
+2 -1
View File
@@ -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",