Browse Source

tweak: small fix

Aiden Cline 2 months ago
parent
commit
7d82f1769c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/opencode/src/cli/cmd/tui/context/directory.ts

+ 1 - 1
packages/opencode/src/cli/cmd/tui/context/directory.ts

@@ -5,7 +5,7 @@ import { Global } from "@/global"
 export function useDirectory() {
   const sync = useSync()
   return createMemo(() => {
-    const directory = sync.data.path.directory ?? process.cwd()
+    const directory = sync.data.path.directory || process.cwd()
     const result = directory.replace(Global.Path.home, "~")
     if (sync.data.vcs?.branch) return result + ":" + sync.data.vcs.branch
     return result