fix: pass --model and its value as two argv elements
pi 1.5.2 rejects --model=<id> as an unknown option (live run 3838). The probe already refuses ids starting with "-", so the id cannot be read as an option. A test now asserts no option in pi's argv uses the = form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7095db060e
commit
f75f3dddf2
3 files changed
+10
-5
No files matched your search
@@ -52,7 +52,7 @@ class LocalPrTests(LocalSetup, test_cli.CliCase):
|
||||
self.assertIn("Edited by the local drafter.",
|
||||
git(self.remote, "show", f"{BRANCH}:docs/README.md"))
|
||||
argv = json.loads(self.argv_file.read_text())
|
||||
self.assertIn("--model=org/model-a", argv)
|
||||
self.assertEqual(argv[argv.index("--model") + 1], "org/model-a")
|
||||
self.assertNotIn(KEY, " ".join(argv))
|
||||
self.assertIn("Drafted by pi with org/model-a: 2 turns.",
|
||||
self.fake.prs[0]["body"].splitlines()[-1])
|
||||
|
||||
Reference in new issue
Block a user