mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 17:04:41 +00:00
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:
parent
6b48e73607
commit
a6e300693d
3 changed files with 113 additions and 84 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue