From b146c3ff1e2f50cf230d59fb020e5ad117dffdaf Mon Sep 17 00:00:00 2001 From: Filip Hejmowski Date: Tue, 13 Jan 2026 11:48:36 +0100 Subject: [PATCH 1/2] fix: listing files --- bun.lock | 1 - packages/ui/src/hooks/use-filtered-list.tsx | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index 10001bb6195..0d4710724ec 100644 --- a/bun.lock +++ b/bun.lock @@ -1,6 +1,5 @@ { "lockfileVersion": 1, - "configVersion": 1, "workspaces": { "": { "name": "opencode", diff --git a/packages/ui/src/hooks/use-filtered-list.tsx b/packages/ui/src/hooks/use-filtered-list.tsx index b6bd7d5c6c0..23f7709795f 100644 --- a/packages/ui/src/hooks/use-filtered-list.tsx +++ b/packages/ui/src/hooks/use-filtered-list.tsx @@ -23,10 +23,11 @@ export function useFilteredList(props: FilteredListProps) { const [grouped, { refetch }] = createResource( () => { - // When items is a function (not async filter function), call it to track changes const itemsValue = typeof props.items === "function" - ? (props.items as () => T[])() // Call synchronous function to track it + ? props.items.length === 0 + ? (props.items as () => T[])() + : undefined : props.items return { From 2bd9bbc96a6c9791932e69859cf30f5f49de2d6a Mon Sep 17 00:00:00 2001 From: Filip Hejmowski Date: Tue, 13 Jan 2026 11:53:54 +0100 Subject: [PATCH 2/2] fix: lock --- bun.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/bun.lock b/bun.lock index 0d4710724ec..10001bb6195 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 1, "workspaces": { "": { "name": "opencode",