aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-23 23:34:18 -0400
committerCraig Jennings <c@cjennings.net>2026-06-23 23:34:18 -0400
commitf87f59cc9eb1dd492be5b55870271d67245c1fdd (patch)
tree18bab578f4026f9f85878bd0bfc53d147eab470a /debug
parente5aab199cd4c83f357ff5190139ddf2994ac28a3 (diff)
downloadrulesets-f87f59cc9eb1dd492be5b55870271d67245c1fdd.tar.gz
rulesets-f87f59cc9eb1dd492be5b55870271d67245c1fdd.zip
feat(wrap): add session teardown and shutdown to wrap-it-up
A bare "wrap it up" now tears the session down after the valediction: it kills the ai-term buffer and the aiv-<project> tmux session (which takes claude with it) and restores geometry. "wrap it up with summary" or "and summarize" keeps the buffer. "wrap it up and shutdown" gates on this being the only live ai-term session, then powers the machine off through an abort-able Emacs countdown. Teardown can't run inline because it kills the session claude runs in, so the valediction would never flush. Step 6 instead drops a basename-keyed sentinel after commit+push is verified, and a new Stop hook (ai-wrap-teardown.sh) does the teardown when the response ends, by which point the valediction has rendered. The hook is a no-op on every normal stop because the sentinel only exists after a teardown wrap. The runtime lives in .emacs.d/modules/ai-term.el (cj/ai-term-quit, cj/ai-term-live-count, cj/ai-term-shutdown-countdown), and the rulesets side calls it via emacsclient. I routed that companion to .emacs.d, so the feature is end-to-end once it lands. The hook has 8 bats tests. The live teardown and shutdown paths are a manual checklist in todo.org. Built from the proposal. I went with both summary qualifiers, the Emacs-timer countdown, and the live-count gate. Claude-Session: https://claude.ai/code/session_017PtX1nt1rtYVATuzmzBS4f
Diffstat (limited to 'debug')
0 files changed, 0 insertions, 0 deletions