Repository navigation
fix: support session.snapshotEvents() in DSH presets - #88
Conversation
DeepSeek Harness no longer exposes session.events as an array; presets should read session history via session.snapshotEvents() when available. Update all preset plugins and verify helpers to use snapshotEvents() with a fallback to the older session.events API for compatibility.
|
Independent real-world verification of this fix: on dsh 0.1.2-rc.1, a deployed preset derived from this repo's combo-anchored/tool-bootstrap.mjs crashed on every prompt with |
…ompat) The mock suite only exercised the legacy session.events fallback that PR #88 keeps for older harness builds. Add snapshot-only session mocks (no events property, mirroring dsh 0.1.3-alpha.1) across the core scan paths: tool bootstrap promotion, dev_tool_search durable unlocks, compaction re-anchoring, anchor-turn freshness, and instruction-hint restart safety. 223/223.
…ty projects - Record the 0.1.3-alpha.1 session.events -> snapshotEvents() change and the #88 compat shim in the Compatibility section (bilingual), verified by source comparison and the mock suite, not by live runs. - Community projects: both-anchored (auto-b7n) per the #85 commitment once DeepseekCotexplorations#17 merged, plus dsh-recovery (ecosystem tooling, described as such). - Acknowledge 324641aliyun; stats footnote 26/18 -> 27/19 (2026-09-06).
|
Merged as 4458390 — thank you for the clean, mechanical fix. Local verification and source audit on the merged main:
CI notes: this being a first contribution, your branch CI shows |
DeepSeek Harness has removed the direct
session.eventsarray and now providessession.snapshotEvents(). This caused preset plugins that scan session history to fail, so Prefab and other anchored presets could not seed/inject context correctly after a DSH update.This PR updates all preset plugin files and verify helpers to use:
and the equivalent for
agent.session.events.It keeps compatibility with older DSH versions that still expose
session.events.Verification:
npm testpasses: 214/214