feat: add functionality to extract and display prior session messages

- Implemented `cwdToDashed` helper function to format current working directory for transcript file paths.
- Added `extractPriorMessages` function to read and parse the last user and assistant messages from a transcript file.
- Enhanced `contextHook` to retrieve and display prior session messages if enabled in the configuration.
- Updated output formatting to include a "Previously" section showing last messages from the prior session.
This commit is contained in:
Alex Newman
2025-12-01 18:10:55 -05:00
parent b116681529
commit 6dc648f07c
2 changed files with 179 additions and 48 deletions
File diff suppressed because one or more lines are too long