Repository navigation
Commit 56feb5c
committed
fix(session,server,tui,core,enterprise,sdk): wave 7–11 hardening — audits, security, SSE, DB, lifecycle
Two adversarial audit rounds (opus + deepseek: O-01..O-40, O2-01..O2-47, D-01..D-27, D2-01..D2-08, 12 drifts)
remediated by six parallel lanes per wave with fix-on-sight and two-consecutive-zero-change-pass loops.
- security: file-taint symlink containment (check-vs-use TOCTOU), webfetch SSRF guards (hex/mapped IPv6,
DNS pinning, body caps, DNS-before-permission), shell containment, lock ordering, secret env blocklist
- server: /event directory filter, desync latch reset, proxy stream-failure handling, /sync/steal +
history bounds, sse-frame byte cap + 5xx buffering, share-id entropy, host-header proxy caveat
- core: event read path (readAllAfter O(N²), tombstone N+1, expression index + migration
20260917225834), projector hot paths (migration 20260917212851), retry TX coverage, listener isolation
- session/processor: abort semantics (error + interrupted metadata), retry text dedup, errored-turn drops,
deltaLock terminal sites, tool-part settle, compaction drop, share trim/metadata merge
- tui/cli: context-usage selector sharing, stream.transport eager sort removal, acp lifecycle, help snapshot
- mcp/enterprise/lsp/sdk: OAuth transport close, catalog names, rate limiting, chunked body caps,
ws-pool busy eviction, process caps, broken-set lsp
Evidence: full opencode suite 3756 tests / 0 fail (264 files, 670s); core 1120/0; tui 207/0; typecheck exit 0
for core/opencode/tui/server/enterprise/sdk; prettier clean.1 parent 15315be commit 56feb5c
127 files changed
Lines changed: 4346 additions & 824 deletions
File tree
- packages
- core
- src
- database
- migration
- event
- session
- util
- test
- process
- enterprise
- src
- core
- routes
- api
- test/core
- opencode
- src
- acp
- background
- cli
- cmd
- run
- tui
- control-plane
- lsp
- mcp
- permission
- plugin/openai
- provider
- server
- routes/instance/httpapi
- groups
- handlers
- middleware
- session
- tool
- util
- test
- acp
- cli
- acp
- help/__snapshots__
- run
- mcp
- permission
- plugin
- provider
- server
- session
- skill
- tool
- util
- sdk/js
- src
- v2
- test
- server/src
- handlers
- tui/src/context
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
547 | 557 | | |
548 | 558 | | |
549 | 559 | | |
| |||
2087 | 2097 | | |
2088 | 2098 | | |
2089 | 2099 | | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
2090 | 2122 | | |
2091 | 2123 | | |
2092 | 2124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | | - | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
339 | | - | |
| 344 | + | |
340 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
341 | 349 | | |
342 | 350 | | |
343 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
287 | | - | |
| 290 | + | |
288 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| |||
315 | 322 | | |
316 | 323 | | |
317 | 324 | | |
| 325 | + | |
318 | 326 | | |
319 | 327 | | |
320 | 328 | | |
321 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
322 | 334 | | |
323 | 335 | | |
324 | 336 | | |
| |||
335 | 347 | | |
336 | 348 | | |
337 | 349 | | |
338 | | - | |
339 | 350 | | |
340 | | - | |
| 351 | + | |
341 | 352 | | |
342 | 353 | | |
343 | 354 | | |
| |||
389 | 400 | | |
390 | 401 | | |
391 | 402 | | |
392 | | - | |
| 403 | + | |
393 | 404 | | |
394 | 405 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
401 | 410 | | |
402 | 411 | | |
403 | 412 | | |
| |||
427 | 436 | | |
428 | 437 | | |
429 | 438 | | |
430 | | - | |
| 439 | + | |
431 | 440 | | |
432 | | - | |
433 | 441 | | |
434 | | - | |
| 442 | + | |
435 | 443 | | |
436 | 444 | | |
437 | 445 | | |
| |||
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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
278 | 282 | | |
279 | 283 | | |
280 | 284 | | |
| |||
0 commit comments