Files
planning-with-files/docs
OthmanAdi c839b458db fix(dsh): re-inject the plan after compaction from the compaction/end session event
The compaction listener keyed on agent/session-start with source compact,
which no dsh release dispatches: the published 0.1.5-rc.2 declares the
source in the SessionStartSource union but every publish site announces
startup or resume, and the 0.1.6 alpha line does the same after folding the
field into agent/created. A live /compact against dsh 0.1.5-rc.2 wrote
compaction/start, compaction/summary, the compact checkpoint message and
compaction/end to the session log and the listener never ran.

The plugin now listens on session/event for a successful compaction/end,
marks the session, and the next agent/pre-step for that agent appends the
compaction note and the framed plan as one message: the continuation step
for an automatic pressure compaction (which runs inside the loop's own
pre-step listener ahead of ours), the next prompt for a manual /compact.
The plan is read at that step instead of being queued into the inbox, so a
prompt that arrives later never carries a stale copy and never a second
one. The mark survives a rejected step, is dropped when the step already
carries a queued plan message, and is cleared on session/disposed.

@deepseek-ai/dsh-compaction 0.1.5-rc.2 joins the devDependencies for the
SessionEventMap augmentation only; nothing is imported at runtime.
2026-09-17 23:09:27 +02:00
..
2026-07-03 16:56:32 +02:00
2026-09-08 12:08:22 +02:00
2026-09-17 10:11:23 +02:00