feat(session): improve session list and log formatting for human readability #260

Merged
shoko merged 1 commits from fix/issue-252 into main 2026-04-08 08:53:54 +02:00
Owner

Summary

  • Improved kugetsu list command to show sessions in a table format ordered by last updated time
  • Improved kugetsu logs command with cleaner timestamps, color-coded log levels, and better visual separation

Changes

cmd_list improvements

  • Sessions now displayed in a table format with columns: ISSUE_REF, STATE, LAST_UPDATED, SESSION_ID
  • Sessions ordered by last activity (most recent first) using file mtime
  • Worktree status indicators show if worktree is missing

cmd_logs improvements

  • Cleaner timestamp formatting (human-readable dates instead of ISO format)
  • Color-coded log levels: ERROR=red, WARN=yellow, INFO=green, DEBUG=cyan
  • Better visual separation between log files and entries
  • File size and last modified time shown in summary

Testing

  • Bash syntax verified with bash -n
  • Manual testing of both commands

fixes #252

## Summary - Improved `kugetsu list` command to show sessions in a table format ordered by last updated time - Improved `kugetsu logs` command with cleaner timestamps, color-coded log levels, and better visual separation ## Changes ### cmd_list improvements - Sessions now displayed in a table format with columns: ISSUE_REF, STATE, LAST_UPDATED, SESSION_ID - Sessions ordered by last activity (most recent first) using file mtime - Worktree status indicators show if worktree is missing ### cmd_logs improvements - Cleaner timestamp formatting (human-readable dates instead of ISO format) - Color-coded log levels: ERROR=red, WARN=yellow, INFO=green, DEBUG=cyan - Better visual separation between log files and entries - File size and last modified time shown in summary ## Testing - Bash syntax verified with `bash -n` - Manual testing of both commands ## Related Issue fixes #252
shoko added 1 commit 2026-04-08 08:47:08 +02:00
- cmd_list: show sessions in table format ordered by last updated time
- cmd_list: display issue_ref, state, last_updated, and session_id columns
- cmd_logs: cleaner timestamp formatting with human-readable dates
- cmd_logs: color-coded log levels (error=red, warn=yellow, info=green, debug=cyan)
- cmd_logs: improved visual separation between log entries

fixes #252
han approved these changes 2026-04-08 08:52:45 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit d6659ce93a into main 2026-04-08 08:53:54 +02:00
Sign in to join this conversation.