This commit is contained in:
Franco Pieri 2026-04-20 23:58:14 -04:00 committed by GitHub
commit 088c7fbf8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -562,6 +562,13 @@ export const useSessionBrowserInput = (
state.setActiveIndex(0);
state.setScrollOffset(0);
return true;
} else if (key.name === 'return') {
const selectedSession =
state.filteredAndSortedSessions[state.activeIndex];
if (selectedSession && !selectedSession.isCurrentSession) {
onResumeSession(selectedSession);
}
return true;
} else if (
key.sequence &&
key.sequence.length === 1 &&

View file

@ -6,7 +6,7 @@ exports[`SessionBrowser component > enters search mode, filters sessions, and re
Search: query (Esc to cancel)
Index │ Msgs │ Age │ Match
#1 │ 1 │ 10mo │ You: Query is here a… (+1 more)
#1 │ 1 │ 10mo │ You: Query is here a… (+1 more)
"
`;
@ -17,7 +17,7 @@ exports[`SessionBrowser component > renders a list of sessions and marks current
Sort: s Reverse: r First/Last: g/G
Index │ Msgs │ Age │ Name
#1 │ 5 │ 10mo │ Second conversation about dogs (current)
#1 │ 5 │ 10mo │ Second conversation about dogs (current)
#2 │ 2 │ 10mo │ First conversation about cats
"