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:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user