Redesign session selector with multi-line layout

- Custom SessionList component with 2 lines per item
- First line: message text (bold when selected)
- Second line: metadata (time · message count) in dim
- Blue › cursor for selected item
- Added "Resume Session" header
- Handle Ctrl+C (‹x03›) in SelectList for consistency
- Improved date formatting (38 minutes ago, 8 hours ago, etc.)
This commit is contained in:
Mario Zechner 2025-11-12 09:25:40 +01:00
parent 6b48e73607
commit a6e300693d
3 changed files with 113 additions and 84 deletions

View file

@ -148,8 +148,8 @@ export class SelectList implements Component {
this.onSelect(selectedItem);
}
}
// Escape
else if (keyData === "\x1b") {
// Escape or Ctrl+C
else if (keyData === "\x1b" || keyData === "\x03") {
if (this.onCancel) {
this.onCancel();
}