Commit Graph

4 Commits

Author SHA1 Message Date
Castor Gemini 69395ccb0a fix(playback): Implement word wrapping for content
- Add a new 'printContent' function to handle word wrapping for the
  main conversational text in the detailed playback view.
- This ensures that long lines of text are correctly wrapped to the
  terminal width, improving readability.
2025-08-22 05:21:25 -05:00
Castor Gemini 02dd197abc refactor(ui): Adjust playback format width to 100 characters 2025-08-22 05:18:09 -05:00
Castor Gemini 73bc0f73aa fix(playback): Make playback independent of the filesystem
- Refactor the prettyFormat.go functions to render all content
  directly from the 'Content' fields of the protobuf messages.
- Remove all 'os.ReadFile' calls from the formatting logic.
- This ensures the 'playback' command is self-contained and works
  correctly on saved protobuf data where the original content files
  are no longer available.
2025-08-22 03:36:54 -05:00
Castor Gemini f6e881b064 refactor(playback): Move formatting logic to prettyFormat.go
- Create a new prettyFormat.go file to contain all the detailed
  log formatting and printing logic.
- Simplify doPlayback.go to handle the summary view and call out
  to the new prettyFormatChat function for detailed views.
- This separation of concerns makes the code cleaner and fixes
  compilation errors related to redeclared functions.
2025-08-22 03:26:39 -05:00