fix(tui): show CLI sessions in resume picker

- session.list RPC now queries both tui and cli sources, merged by recency
- Session picker shows source label for non-tui sessions (e.g. ", cli")
- Added source field to SessionItem interface
This commit is contained in:
jonny
2026-04-09 12:17:55 +00:00
parent 294c377c0c
commit 304f1463a9
2 changed files with 10 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ interface SessionItem {
preview: string
started_at: number
message_count: number
source?: string
}
function age(ts: number): string {
@@ -109,7 +110,7 @@ export function SessionPicker({
</Text>
<Text color={t.color.dim}>
{' '}
({s.message_count} msgs, {age(s.started_at)})
({s.message_count} msgs, {age(s.started_at)}{s.source && s.source !== 'tui' ? `, ${s.source}` : ''})
</Text>
</Text>
)