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

Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
opencode-agent[bot] 2026-07-31 04:38:34 +00:00 committed by GitHub
commit d3f30df180
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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