From de18c965a019a251a071848010133ea153c49424 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 26 Sep 2025 05:32:43 -0400 Subject: [PATCH] sync --- .../cmd/tui/component/dialog-session-list.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx b/packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx index 6db67c942..8c64671f5 100644 --- a/packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx @@ -12,19 +12,21 @@ export function DialogSessionList() { const options = createMemo(() => { const today = new Date().toDateString() - return sync.data.session.map((x) => { - const date = new Date(x.time.updated) - let category = date.toDateString() - if (category === today) { - category = "Today" - } - return { - title: x.title, - value: x.id, - category, - footer: Locale.time(x.time.updated), - } - }) + return sync.data.session + .filter((x) => x.parentID === undefined) + .map((x) => { + const date = new Date(x.time.updated) + let category = date.toDateString() + if (category === today) { + category = "Today" + } + return { + title: x.title, + value: x.id, + category, + footer: Locale.time(x.time.updated), + } + }) }) onMount(() => {