Commit Graph

5 Commits

Author SHA1 Message Date
Levi Neely 533bc8acee Fix: Ensure streaming process is killed when log window is closed with 'q'
Previously, pressing 'q' in the Emacs log viewer would close the window
but might leave the streaming 9p read process running. Now explicitly
kills the process before closing the window.

- Added anvillm-log-quit function that kills process then closes window
- Changed 'q' keybinding from quit-window to anvillm-log-quit
- Process is now reliably terminated on both 'q' and buffer kill
2026-02-15 11:26:08 +01:00
Levi Neely 57007b2fbc Add streaming log viewer to Emacs and TUI
TUI changes:
- Press 'l' to view session log in scrollable pane
- Manual refresh with 'r' key
- Non-blocking read prevents hang on streaming log file
- Log window scales to 80% of terminal width
- Auto-scrolls to bottom on open

Emacs changes:
- Press 'l' to view session log in dedicated buffer
- Streams log continuously in real-time
- Auto-scrolls when at bottom of buffer
- Process automatically killed when buffer closed
- Refresh with 'r' restarts stream from beginning
- Fixed pre-existing bug in anvillm-compose-prompt

Both interfaces now support log viewing with appropriate
streaming/refresh strategies for their execution models.
2026-02-15 11:22:45 +01:00
Levi Neely fb0ff24aa8 improve prompting 2026-02-14 12:50:34 +01:00
Levi Neely ccc02379ae add attach functionality to emacs frontend 2026-02-14 12:33:29 +01:00
Levi Neely e7b1b1912a basic emacs interface 2026-02-14 12:23:27 +01:00