Skip to content

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

Python

fix(test): PTY spinner test sets a throwaway boot-gate key (CI has no auth)

Rach Pradhan06e7b2b2d158
diff --git a/scripts/test-pty-spinner.py b/scripts/test-pty-spinner.py
index 25483a6a..7c22158c 100644
--- a/scripts/test-pty-spinner.py
+++ b/scripts/test-pty-spinner.py
@@ -20,6 +20,10 @@ import os, sys, pty, select
_arg = sys.argv[1] if len(sys.argv) > 1 else "graff"
# absolute, so the child's chdir() to another cwd can't break the exec lookup
GRAFF = os.path.abspath(_arg) if os.sep in _arg else _arg
+
+# graff won't start without a provider key, but --selftest-spinner renders before
+# any model call — a throwaway key just clears the boot gate (CI has no real auth).
+os.environ.setdefault("LMSTUDIO_API_KEY", "local")
THRESHOLD = 0x10000 # supplementary plane: no legit spinner glyph lives here; 💩 = U+1F4A9