You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b8bf11b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tui,opencode,core,sdk): audit-v8 wave D — tombstone, lease & bound hardening
Closes the runtime/UI findings from core-review/opencode-audit-v8-{opus,deepseek}.md
(fix wave D ownership set):
- tui NEW-02 / opus NEW-05: live handlers (todo.updated, session.diff,
message.updated, message.part.*, session.status, message.diff.updated) drop
events for tombstoned deleted sessions; tombstone set bounded (1024, oldest
evicted) via rememberDeleted().
- deepseek NEW-03 / wave-A D-P2-15 residual: boundQueueMaps() actually caps both
the per-session queue map and the cached-share map, skipping in-flight entries;
sweep runs after getCached/create/flush so it can progress.
- deepseek NEW-04 / wave-A D-P1-04 residual: pending remote unshare retry moved
before the share early-return in sync() so any later sync re-attempts it;
removals map bounded (256). Restart-durability residual documented.
- deepseek NEW-05: explicit dispose/disposeDirectory/disposeAll/reload now drain
an active provide lease (bounded 2s, then log) before teardown; provide leases
the exact entry loadEntry() returned, not a reload-replaced entry.
- deepseek NEW-06: ws-pool refreshes busyAt as the consumer reads the response so
prune only reclaims genuinely stalled lanes; busyTimeout option for tests.
- deepseek NEW-07: event remove() tombstones the aggregate so durable subscribers
created afterwards complete immediately; cleared on re-commit.
- deepseek NEW-08 / opus P3-19: snowflake role-hold window raised 512B -> 64KiB
(documented bound) so >512B whitespace gaps are not flushed un-rewritten.
- deepseek NEW-09: concurrent stop() coalesced through a WeakMap in both
opencode util/process.ts and sdk/js process.ts.
- opus NEW-06: frame cache scoped per instance directory; dispose clears only the
disposed instance's frames.
Tests: 20 new/updated across tui/opencode/core/sdk/js. No push.
0 commit comments