Skip to content

Commit 42cb2e5

Browse files
committed
fix: immer-related crash, plus try removing @opentui/core-darwin-arm64
Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 3b2def4 commit 42cb2e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"dependencies": {
3232
"@codebuff/sdk": "workspace:*",
3333
"@opentui/core": "github:CodebuffAI/opentui#codebuff/custom",
34-
"@opentui/core-darwin-arm64": "0.1.26",
3534
"@opentui/react": "github:CodebuffAI/opentui#codebuff/custom",
3635
"immer": "^10.1.3",
3736
"react": "^19.0.0",

cli/src/state/chat-store.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { enableMapSet } from 'immer'
12
import { create } from 'zustand'
23
import { immer } from 'zustand/middleware/immer'
34

@@ -34,6 +35,8 @@ type ChatStoreActions = {
3435

3536
type ChatStore = ChatStoreState & ChatStoreActions
3637

38+
enableMapSet()
39+
3740
const initialState: ChatStoreState = {
3841
messages: [
3942
{

0 commit comments

Comments
 (0)