v0.62.3
Install / Update
Install the dsh-context plugin on DeepSeek Harness with released NPM package:
dsh plugin --profile web add dsh-context@latestUpdate the dsh-context plugin:
dsh plugin --profile web update dsh-context@latestWhat's New
Fixes
- Memory: the runtime tool-attribution hook no longer retains disposed agents (#108)
- On real cordis tracked services (dsh's
ToolRuntimeis one), everyctx.toolsproperty read hands the reader a fresh traced proxy. The hook now peels it to the stable underlying instance before dedupe/patch/restore, so the per-read closures that pinned each caller's whole agent (scope tag → agent → session log) past disposal are gone. - Measured against real cordis 4.0.4 + dsh-scope 0.2.0-rc.2 with forced GC after each disposed agent: before the fix, 20 disposed agents × 1 MiB history kept 20/20 agents pinned (+20.47 MiB, strictly linear — 256 agents pinned 135 MiB); after, 0/20 and +0.24 MiB (measurement noise), flat at any scale.
- Unload/reload now actually restores: the original
registergoes back on the shared service (the restore guard never held through a traced proxy before), and the hook records only the reader's fiber NAME instead of its context. - Scoped registration semantics are unchanged — the caller still receives its own per-read proxy. The GC comparison stays a one-time measurement (not part of the test suite); a deterministic tracked-service regression test (single wrap across reads, restore on unload) guards the fix.
- On real cordis tracked services (dsh's
Commits
- fix(attribution): peel per-read traced proxies to the stable tools instance (0ece2c8)
- chore(release): v0.62.3 (be28102)
v0.62.2...v0.62.3 · 2 commits