github bowenliang123/dsh-context v0.62.3

latest releases: v0.85.1, v0.85.0, v0.84.1...
one month ago

v0.62.3

Install / Update

Install the dsh-context plugin on DeepSeek Harness with released NPM package:

dsh plugin --profile web add dsh-context@latest

Update the dsh-context plugin:

dsh plugin --profile web update dsh-context@latest

What's New

Fixes

  • Memory: the runtime tool-attribution hook no longer retains disposed agents (#108)
    • On real cordis tracked services (dsh's ToolRuntime is one), every ctx.tools property 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 register goes 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.

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

Contributors

Don't miss a new dsh-context release

NewReleases is sending notifications on new releases.