summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/context/local.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-09 11:52:39 -0600
committerAdam <[email protected]>2025-12-09 11:52:43 -0600
commit1bc1e56da379fdd9040dc40caac1a57ffe8d1197 (patch)
treea29b8ae17b7db70cb7cf22f2378b8f6b0295090d /packages/desktop/src/context/local.tsx
parent0d0c20e673d90bf5f5bb005fb6b91fd4850726a3 (diff)
downloadopencode-1bc1e56da379fdd9040dc40caac1a57ffe8d1197.tar.gz
opencode-1bc1e56da379fdd9040dc40caac1a57ffe8d1197.zip
wip(desktop): progress
Diffstat (limited to 'packages/desktop/src/context/local.tsx')
-rw-r--r--packages/desktop/src/context/local.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/desktop/src/context/local.tsx b/packages/desktop/src/context/local.tsx
index 0d8303b45..8223a36b9 100644
--- a/packages/desktop/src/context/local.tsx
+++ b/packages/desktop/src/context/local.tsx
@@ -257,7 +257,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
const load = async (path: string) => {
const relativePath = relative(path)
- sdk.client.file.read({ path: relativePath }).then((x) => {
+ await sdk.client.file.read({ path: relativePath }).then((x) => {
setStore(
"node",
relativePath,
@@ -335,7 +335,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
return {
node: async (path: string) => {
- if (!store.node[path] || store.node[path].loaded === false) {
+ if (!store.node[path] || !store.node[path].loaded) {
await init(path)
}
return store.node[path]