Refactor: Extract global state management

This commit is contained in:
2025-11-09 19:28:40 -08:00
parent 9c768c9092
commit 7e37df357d

1
src/state.js Normal file
View File

@@ -0,0 +1 @@
export const state=window.state={messages:[],busy:!1,controller:null,currentThreadId:null,abortRequested:!1,attachments:[],stream:{rid:null,bubble:null,meta:null,text:'',done:!1}}