Repository navigation
Commit c1fa943
committed
fix(session,server,tui,core): wave 1-5 reliability hardening — races, SSE correctness, projector hot paths
Adversarial-audit hardening across processor/session, server SSE, TUI, DB projector, share-next, provider, snapshot, tools, hydration and lifecycle surfaces. P0: snapshot-lock TOCTOU race corrupting tracked baselines, processor flush/coalescer races (mid-stream part loss), retry re-execution of settled tasks.
Highlights: bounded event fan-out + Option decode on durable reads; worker admission cap; SSE id/gap sequence + frame cap; provider stream teardown + snowflake split; TUI reactive memoization + data test surface; projector hot paths (previous-row read gated on step-finish, SQL-filtered shell reads) + migration 20260917212851 (drops part_session_idx/session_message_time_created_idx; adds event_seq_idx/event_message_id_idx); bounded hydration tail; retry finalization settles tool calls; step-start snapshot reuse; instance-cache TTL/reaping; share-next lifecycle idempotency verified.
Tests: new sse-frame, lru-cache, rpc, httpapi-global-event suites; 9-file regression battery 161 tests / 0 fail / 1 skip; typecheck green (core, opencode, tui); prettier clean.
Design-blocked (documented in-repo): F-025 structuredClone in session.ts is load-bearing; F-055 GlobalBus dual-emit upstream handoff.1 parent 857ce25 commit c1fa943
88 files changed
Lines changed: 3443 additions & 1107 deletions
File tree
- packages
- core
- src
- database
- migration
- event
- project
- session
- system-context
- test
- opencode
- src
- acp
- bus
- cli/cmd
- run
- control-plane
- lsp
- permission
- plugin
- openai
- project
- provider
- server
- routes/instance/httpapi
- handlers
- middleware
- session
- llm
- snapshot
- tool
- util
- test
- project
- server
- session
- tool
- util
- server/src/handlers
- tui
- src
- component/prompt
- context
- routes/session
- util
- test/cli
- cmd/tui
- tui
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
113 | 136 | | |
114 | 137 | | |
115 | 138 | | |
116 | 139 | | |
117 | 140 | | |
118 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
119 | 145 | | |
120 | 146 | | |
121 | 147 | | |
| |||
141 | 167 | | |
142 | 168 | | |
143 | 169 | | |
144 | | - | |
| 170 | + | |
| 171 | + | |
145 | 172 | | |
146 | 173 | | |
147 | 174 | | |
148 | 175 | | |
149 | 176 | | |
150 | 177 | | |
151 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
152 | 186 | | |
| 187 | + | |
153 | 188 | | |
154 | 189 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
165 | 195 | | |
166 | 196 | | |
167 | 197 | | |
| |||
234 | 264 | | |
235 | 265 | | |
236 | 266 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 267 | + | |
| 268 | + | |
241 | 269 | | |
242 | 270 | | |
243 | 271 | | |
| |||
262 | 290 | | |
263 | 291 | | |
264 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
265 | 299 | | |
266 | 300 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
| 301 | + | |
273 | 302 | | |
274 | 303 | | |
275 | 304 | | |
| |||
292 | 321 | | |
293 | 322 | | |
294 | 323 | | |
295 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
296 | 330 | | |
297 | 331 | | |
298 | 332 | | |
| |||
302 | 336 | | |
303 | 337 | | |
304 | 338 | | |
305 | | - | |
| 339 | + | |
306 | 340 | | |
307 | 341 | | |
308 | 342 | | |
| |||
323 | 357 | | |
324 | 358 | | |
325 | 359 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
330 | 365 | | |
331 | 366 | | |
332 | 367 | | |
| |||
340 | 375 | | |
341 | 376 | | |
342 | 377 | | |
343 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
344 | 384 | | |
| 385 | + | |
345 | 386 | | |
346 | 387 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
354 | 393 | | |
355 | 394 | | |
356 | 395 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| |||
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
258 | | - | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | | - | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
281 | 288 | | |
282 | 289 | | |
283 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
26 | 47 | | |
27 | 48 | | |
28 | 49 | | |
| |||
74 | 95 | | |
75 | 96 | | |
76 | 97 | | |
77 | | - | |
| 98 | + | |
78 | 99 | | |
79 | 100 | | |
80 | 101 | | |
| |||
89 | 110 | | |
90 | 111 | | |
91 | 112 | | |
92 | | - | |
| 113 | + | |
93 | 114 | | |
94 | 115 | | |
95 | 116 | | |
| |||
204 | 225 | | |
205 | 226 | | |
206 | 227 | | |
| 228 | + | |
207 | 229 | | |
208 | 230 | | |
209 | 231 | | |
| |||
0 commit comments