diff options
| author | Aiden Cline <[email protected]> | 2025-12-10 16:01:10 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-10 16:01:10 -0600 |
| commit | 7d82f1769cbde45384467308106099610fb7810a (patch) | |
| tree | cd129bdb2b2cae844ca666ad3ce7ebaaec46807d | |
| parent | 7435d94f85364654dda80c7b41d9c2379ebad640 (diff) | |
| download | opencode-7d82f1769cbde45384467308106099610fb7810a.tar.gz opencode-7d82f1769cbde45384467308106099610fb7810a.zip | |
tweak: small fix
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/context/directory.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/context/directory.ts b/packages/opencode/src/cli/cmd/tui/context/directory.ts index 4664f2a88..17e5c180a 100644 --- a/packages/opencode/src/cli/cmd/tui/context/directory.ts +++ b/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 |
