deepseek-harness/packages/core/session/tests
Hypatia May d9a11dc91e fix(tui,host): project the human transcript from append-origin events
The terminal and history pagination both treated the model-visible surface as
the human transcript. A landed compaction replacement therefore erased the
conversation it summarized — messages the reader had already seen — and a
model-only replacement copy consumed a page's `maxMessages` quota, which could
also split a compaction's provenance from the replacement citing it.

`dsh-session` now exports the marker split `isAppendSurfaceEvent` /
`isReplacementSurfaceEvent`. The terminal replays append-origin surface events,
keeps a shadowed step's tool cards paired through its append-origin assistant
message, and renders one dim marker where a compaction landed; the checkpoint is
recognized through the compaction seam's `isCompactCheckpointSource` contract,
not the shape of the replacement. `session.history` counts only append-origin
human messages. Everything model-facing keeps reading `session.surface`.
2026-07-29 16:13:36 +08:00
..
chunk-rows.spec.ts fix(session): break chunk runs on time gaps that cannot subtract exactly 2026-07-15 22:44:32 +08:00
derived-cache.spec.ts refactor: identify and freeze messages at creation 2026-07-28 13:55:59 +08:00
fork.spec.ts Merge remote-tracking branch 'origin/master' into xtr/identified-immutable-messages 2026-07-28 15:45:53 +08:00
gen-persistence-catalog.spec.ts docs: expand session persistence event catalog 2026-07-18 15:11:51 +08:00
invariant.spec.ts Merge remote-tracking branch 'origin/master' into xtr/identified-immutable-messages 2026-07-28 15:45:53 +08:00
json.spec.ts fix(schema): align projected and enforced declarations 2026-07-23 01:05:41 +08:00
properties.spec.ts refactor: identify and freeze messages at creation 2026-07-28 13:55:59 +08:00
repair.spec.ts refactor: identify and freeze messages at creation 2026-07-28 13:55:59 +08:00
request-header.spec.ts refactor: identify and freeze messages at creation 2026-07-28 13:55:59 +08:00
scoped.spec.ts refactor(core): simplify scoped agent lifecycles 2026-07-12 22:36:04 +08:00
session.spec.ts fix: enforce message snapshot invariants 2026-07-28 15:33:00 +08:00
surface.spec.ts fix(tui,host): project the human transcript from append-origin events 2026-07-29 16:13:36 +08:00