summaryrefslogtreecommitdiff
path: root/tests/tui.exp
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-01 17:42:15 -0700
committert <t@tjp.lol>2026-12-04 13:53:47 -0700
commit7622522776168577d9f4bf7846e7f5052e2418e2 (patch)
tree4c62775edc07ce520b749b0eb4a35bfc322a9270 /tests/tui.exp
parentb4c1ad53077556e5401569a41a739f58a5ab2c86 (diff)
Distinguish explicit TUI prompts from automatic rig prompts in tests and docs
Diffstat (limited to 'tests/tui.exp')
-rw-r--r--tests/tui.exp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/tui.exp b/tests/tui.exp
index 77ef267..f60f43e 100644
--- a/tests/tui.exp
+++ b/tests/tui.exp
@@ -63,8 +63,12 @@ send -- "\003"; expect eof; wait
# Also check unconditional launch flags when nothing is exported.
set cfg [open "$env(HOME)/.panto/config.toml" a]; puts $cfg {tools=[]}; close $cfg
set flag [open "$env(HOME)/.local/share/panto-antigravity/google/no-tools" w]; close $flag
-spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r low
-see {antigravity:}; send -- "no-tools"; see {no-tools}; send -- "\r"; see {no-tools-ok}
+set rig "$env(HOME)/.panto"
+set file [open "$rig/PROMPT.md" w]; puts -nonewline $file {no-tools}; close $file
+spawn -noecho $env(PANTO) --incognito --rig $rig -m antigravity:fast -r low
+see {requires direct TUI input}; send -- "\003"; expect eof; wait
+spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r low -- no-tools
+see {no-tools-ok}
send -- "\003"; expect eof; wait
# xhigh exists before switching models, but not on gemini-test.
spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r xhigh