Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Match the model-preference PTY test to the new status order

Rach Pradhan320d6b36c383
diff --git a/scripts/test-model-preference.py b/scripts/test-model-preference.py
index 1ad01e60..58e98966 100644
--- a/scripts/test-model-preference.py
+++ b/scripts/test-model-preference.py
@@ -123,7 +123,7 @@ def main() -> None:
# across providers until the workspace explicitly allowlists it.
with launch(str(cwd), env, codex_home=None) as session:
session.wait_for_literal("Cross-provider use is blocked")
- session.wait_for_literal("mimo-v2.6-pro · Off · ~/repo · Fallback")
+ session.wait_for_literal("mimo-v2.6-pro · Off · Fallback · ~/repo")
session.wait_for_prompt()
cursor = len(session.raw)
session.send_line("must not reach a provider")
@@ -137,7 +137,7 @@ def main() -> None:
# With explicit consent persisted, the same fallback is ready for use.
with launch(str(cwd), env, codex_home=None) as session:
session.wait_for_literal("saved preference kept")
- session.wait_for_literal("mimo-v2.6-pro · Off · ~/repo · Fallback")
+ session.wait_for_literal("mimo-v2.6-pro · Off · Fallback · ~/repo")
session.wait_for_prompt()
clean_exit(session)