diff options
| author | Burak Yigit Kaya <[email protected]> | 2026-03-24 14:01:25 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-24 09:01:25 -0500 |
| commit | 431e0586add85c108ceadc0366a08ee09b862ecc (patch) | |
| tree | 1533a7b03ab12766eaa3271f1d733e2b70c67a76 /packages/app/src/context/global-sync | |
| parent | fde201c286a83ff32dda9b41d61d734a4449fe70 (diff) | |
| download | opencode-431e0586add85c108ceadc0366a08ee09b862ecc.tar.gz opencode-431e0586add85c108ceadc0366a08ee09b862ecc.zip | |
fix(app): filter non-renderable part types from browser store (#18926)
Diffstat (limited to 'packages/app/src/context/global-sync')
| -rw-r--r-- | packages/app/src/context/global-sync/event-reducer.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/app/src/context/global-sync/event-reducer.ts b/packages/app/src/context/global-sync/event-reducer.ts index b8eda0573..5d8b7c4e3 100644 --- a/packages/app/src/context/global-sync/event-reducer.ts +++ b/packages/app/src/context/global-sync/event-reducer.ts @@ -15,6 +15,8 @@ import type { State, VcsCache } from "./types" import { trimSessions } from "./session-trim" import { dropSessionCaches } from "./session-cache" +const SKIP_PARTS = new Set(["patch", "step-start", "step-finish"]) + export function applyGlobalEvent(input: { event: { type: string; properties?: unknown } project: Project[] @@ -211,6 +213,7 @@ export function applyDirectoryEvent(input: { } case "message.part.updated": { const part = (event.properties as { part: Part }).part + if (SKIP_PARTS.has(part.type)) break const parts = input.store.part[part.messageID] if (!parts) { input.setStore("part", part.messageID, [part]) |
