Commit a2498da
committed
refactor(cli): migrate UI state to ui-store
Complete the store migration by moving UI-related state to ui-store:
- focusedAgentId, inputFocused, setFocusedAgentId, setInputFocused
- Removes these from chat-store (now fully in ui-store)
- Final step in reducing prop drilling
All state now properly distributed across specialized stores:
- chat-store: messages, input value, agent mode, session state
- stream-store: streaming agents, chain progress
- queue-store: message queue, streaming status
- ui-store: UI state (focus, input)
- auth-store: authentication
All tests pass (231/231) and typecheck is clean.1 parent 2ddb1d1 commit a2498da
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
103 | | - | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | | - | |
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
| |||
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
128 | | - | |
129 | | - | |
130 | 125 | | |
131 | 126 | | |
132 | 127 | | |
133 | 128 | | |
134 | | - | |
135 | | - | |
136 | 129 | | |
137 | 130 | | |
138 | 131 | | |
| |||
158 | 151 | | |
159 | 152 | | |
160 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
| |||
0 commit comments