Browse Source

fix(app): open legacy picker at home (#39804)

Co-authored-by: Brendan Allan <git@brendonovich.dev>
opencode-agent[bot] 1 month ago
parent
commit
d3f30df180
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/dialog-select-directory.tsx

+ 2 - 2
packages/app/src/components/dialog-select-directory.tsx

@@ -57,9 +57,9 @@ export function DialogSelectDirectory(props: DialogSelectDirectoryProps) {
   const [filter, setFilter] = createSignal("")
   let list: ListRef | undefined
 
-  const missingBase = createMemo(() => !(sync.data.path.home || sync.data.path.directory))
+  const missingHome = createMemo(() => !sync.data.path.home)
   const [fallbackPath] = createResource(
-    () => (missingBase() ? true : undefined),
+    () => (missingHome() ? true : undefined),
     async (): Promise<Path | undefined> => {
       if ((await sdk.protocol) !== "v1") return
       return sdk.client.path