Skip to content

Commit 127e624

Browse files
frenchie4111claude
andcommitted
fix(announcements): wire announcements slice into mergeWireSnapshot
The per-slice wire-merge introduced in #77 (d1aa7b9) enumerates every AppState slice; the announcements slice that landed on this branch needs the same merge line so the AppState object literal still satisfies the type. TypeScript catches this by design — that's the guard the new helper documents. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d0d77c4 commit 127e624

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/shared/state/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ export function mergeWireSnapshot(state: WireSnapshotState): AppState {
316316
costs: { ...initialState.costs, ...state.costs },
317317
browser: { ...initialState.browser, ...state.browser },
318318
jsonClaude: { ...initialState.jsonClaude, ...state.jsonClaude },
319-
snooze: { ...initialState.snooze, ...state.snooze }
319+
snooze: { ...initialState.snooze, ...state.snooze },
320+
announcements: { ...initialState.announcements, ...state.announcements }
320321
}
321322
}
322323

0 commit comments

Comments
 (0)