test-case: session log save + resume round-trip #20
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.luaReply with exactly: alpha(wait for response):save test-session-alpha:quitls ~/.local/share/aish/sessions/— verifytest-session-alpha.jsonlis present.cat ~/.local/share/aish/sessions/test-session-alpha.jsonl— verify it has ametaline + 2 turn lines.cd ~/src/aish && luajit main.lua:resume test-session-alpha:historyExpected
saved as test-session-alpha.jsonl.{"meta":{"started":...,"model":"fast","aish_version":"phase1"}}, then user + assistant turn lines.resumed 2 turns from test-session-alpha.What this exercises
Phase 1 §1 done-criteria #3 (session JSONL persistence + resume).
Full
history.lualifecycle: open with meta → append → close → load → context restore.Test passed.
[aish:fast]> :history
[1] user: alpha
[2] assistant: CMD: echo "Hello, alpha!"
[3] user: history
[4] assistant: CMD: history