mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-30 01:41:43 +00:00
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:
parent
294c377c0c
commit
304f1463a9
2 changed files with 10 additions and 3 deletions
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue