diff options
| author | Adam <[email protected]> | 2025-11-07 12:48:12 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-11-07 12:48:17 -0600 |
| commit | 3a1d1a6284b66aaf385c3c97bb842a8e1d8985cb (patch) | |
| tree | 29d1d3e919aee5d34051582b7354706ad3cf0481 /packages/desktop/src/context/sync.tsx | |
| parent | 4463d319c97ab167022b056aa199396bd97762e4 (diff) | |
| download | opencode-3a1d1a6284b66aaf385c3c97bb842a8e1d8985cb.tar.gz opencode-3a1d1a6284b66aaf385c3c97bb842a8e1d8985cb.zip | |
feat(desktop): custom syntax colors
Diffstat (limited to 'packages/desktop/src/context/sync.tsx')
| -rw-r--r-- | packages/desktop/src/context/sync.tsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/desktop/src/context/sync.tsx b/packages/desktop/src/context/sync.tsx index c5b169a38..bc9491fd3 100644 --- a/packages/desktop/src/context/sync.tsx +++ b/packages/desktop/src/context/sync.tsx @@ -188,7 +188,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({ async sync(sessionID: string, _isRetry = false) { const [session, messages, todo, diff] = await Promise.all([ sdk.client.session.get({ path: { id: sessionID }, throwOnError: true }), - sdk.client.session.messages({ path: { id: sessionID } }), + sdk.client.session.messages({ path: { id: sessionID }, query: { limit: 100 } }), sdk.client.session.todo({ path: { id: sessionID } }), sdk.client.session.diff({ path: { id: sessionID } }), ]) @@ -211,12 +211,6 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({ draft.session_diff[sessionID] = diff.data ?? [] }), ) - - // If no messages and this might be a new session, retry after a delay - // if (!isRetry && messages.data!.length === 0) { - // setTimeout(() => this.sync(sessionID, true), 500) - // return - // } }, fetch: async (count = 10) => { setStore("limit", (x) => x + count) |
