test-case: CMD: extraction + confirm gate (yes and no answers) #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps
cd ~/src/aish && luajit main.luaHow do I list the files in the current directory?CMD:(e.g.CMD: ls).execute 'ls'? [y/N], type n + Enter.─── exec output ───frame appears — the next[aish:fast]>prompt comes right back.Expected
─── exit 0 ───.What this exercises
executor.extract_cmd_linesfinds theCMD:line (§3 substrate marker).config.shell.confirm_cmd = truegates execution.repl.lua— case-insensitive y means yes, everything else means no.mfritsche@noether:~/src/aish$ cd ~/src/aish && luajit main.lua
aish: loaded config from ./config.lua
[aish:fast]> How do I list the files in the current directory?
CMD: ls
execute 'ls'? [y/N] n
[aish:fast]> How do I list the files in the current directory?
CMD: ls
execute 'ls'? [y/N] y
─── exec output ───
broker.lua config.lua docs ffi main.lua renderer.lua router.lua vendor
CLAUDE.md context.lua executor.lua history.lua README.md repl.lua safety.lua
─── exit 0 ───
Test passed