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`.
54 lines
2.4 KiB
Plaintext
54 lines
2.4 KiB
Plaintext
terminal 104x30 buffer=normal length=30 base=0 viewport=0
|
|
lifecycle started=1 stopped=0 progress=inactive
|
|
title "DSH snapshot"
|
|
cursor hidden column=7 viewportRow=22 bufferRow=22
|
|
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 compaction. "
|
|
8| <blank>
|
|
9| "● Tool / bash / Run the coverage gate"
|
|
style 0-36 fg=green
|
|
10| "$ pnpm run test:coverage "
|
|
style 0-23 dim
|
|
11| "/workspace/project "
|
|
style 0-17 dim
|
|
12| "packages/ui/tui 100% "
|
|
style 0-19 dim
|
|
13| "… +1 lines (Ctrl+O to expand) "
|
|
style 0-28 dim
|
|
14| "1 test skipped "
|
|
style 0-13 dim
|
|
15| "coverage complete "
|
|
style 0-16 dim
|
|
16| "[exit 0] "
|
|
style 0-7 dim
|
|
17| "Model wait 0.0s "
|
|
style 0-14 dim
|
|
18| <blank>
|
|
19| "… earlier context was compacted … "
|
|
style 0-32 dim
|
|
20| <blank>
|
|
21| "/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
|
|
22| " dsh > "
|
|
style 1-3 fg=bright-magenta bold
|
|
style 5-6 dim
|
|
style 7-7 inverse
|
|
23-29| <blank>
|