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`.
52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
terminal 80x24 buffer=normal length=24 base=0 viewport=0
|
|
lifecycle started=1 stopped=0 progress=inactive
|
|
title "DSH snapshot"
|
|
cursor hidden column=7 viewportRow=21 bufferRow=21
|
|
buffer
|
|
0| " DEEPSEEK HARNESS"
|
|
style 1-8 fg=bright-magenta bold
|
|
style 10-16 bold
|
|
1| " Snapshot agent ready."
|
|
style 1-21 dim
|
|
2| " main-session"
|
|
style 1-12 dim
|
|
3| <blank>
|
|
4| "Assistant "
|
|
style 0-8 fg=bright-magenta bold underline
|
|
5| <blank>
|
|
6| "You "
|
|
style 0-2 fg=bright-magenta bold underline
|
|
7| "Old prompt with a long line that exercises wrapping and stays visible after "
|
|
8| "compaction. "
|
|
9| <blank>
|
|
10| "● Tool / bash / Run the coverage gate"
|
|
style 0-36 fg=green
|
|
11| "$ pnpm run test:coverage "
|
|
style 0-23 dim
|
|
12| "/workspace/project "
|
|
style 0-17 dim
|
|
13| "packages/ui/tui 100% "
|
|
style 0-19 dim
|
|
14| "… +1 lines (Ctrl+O to expand) "
|
|
style 0-28 dim
|
|
15| "1 test skipped "
|
|
style 0-13 dim
|
|
16| "coverage complete "
|
|
style 0-16 dim
|
|
17| "[exit 0] "
|
|
style 0-7 dim
|
|
18| "Model wait 0.0s "
|
|
style 0-14 dim
|
|
19| <blank>
|
|
20| "/workspace/project (tui-staging) deepseek-v4-flash ↑0 ↓0 0% context"
|
|
style 0-17 fg=bright-magenta bold
|
|
style 18-31 dim
|
|
style 34-50 dim
|
|
style 53-57 dim
|
|
style 60-69 dim
|
|
21| " dsh > "
|
|
style 1-3 fg=bright-magenta bold
|
|
style 5-6 dim
|
|
style 7-7 inverse
|
|
22-23| <blank>
|