deepseek-harness/apps/cli/tests
Yichen Jiang 98fbe0ee94 fix(web): record which preset a session actually runs
The creation header names the preset a session STARTED with and is frozen,
which is correct — it is a creation fact. Switching is legal only while a
session is blank, and that looked like enough: no history exists yet.

It is not, because the switch's effect outlives the blank window. The user
switches, then sends the first message; every turn from there runs under the
new composition while the header still names the old one. The session is
then locked around a misrecorded preset, and resume reads the header to
rebuild it — composing one preset's tools over a history another produced,
which is exactly the replay the blank-only lock exists to prevent, reached
by another route. A picker showed `standard` for a session running
`core-web`.

A switch is now an `agent-preset/selected` event appended after the swap
commits, and `resolveSessionPreset()` (last selection, else the header) is
what every reconstruction reads: the summary, resume, the conflict guard,
and the fork introduced one layer down.
2026-08-07 00:38:11 +08:00
..
fixtures fix: retire leftovers of the removed $DSH_HOME/config.yaml personal overlay 2026-08-06 17:28:58 +08:00
args.spec.ts fix: address ds-review-bot round — insert-aliasing clones, settlement gates, closure module fallback 2026-08-06 09:27:44 +08:00
built-bin.e2e.ts refactor(cli)!: namespace the profile and bundle manifests under dsh.profile and dsh.bundle 2026-08-06 17:28:30 +08:00
headless-shutdown.e2e.ts refactor(cli)!: namespace the profile and bundle manifests under dsh.profile and dsh.bundle 2026-08-06 17:28:30 +08:00
install-script.spec.ts cleanup: remove TUI package and legacy dsh entrypoints 2026-08-04 13:20:28 +08:00
lazy-search-startup.compat.spec.ts feat(cli)!: dsh boots profiles; plugin subcommand manages them via pnpm 2026-08-06 06:29:06 +08:00
memory-mcp-configs.spec.ts fix(examples): keep memory configs provider-owned 2026-07-31 02:34:52 -07:00
process-shutdown.spec.ts test(cli): cover shutdown timer invariants 2026-08-04 11:03:52 +08:00
source-launch.compat.spec.ts feat(cli)!: dsh boots profiles; plugin subcommand manages them via pnpm 2026-08-06 06:29:06 +08:00
telemetry-switch.spec.ts fix(ci): telemetry switch trivially satisfied without the row; coverage-lane test fixes 2026-08-06 07:30:32 +08:00
trusted-hosts.spec.ts feat(cli)!: dsh boots profiles; plugin subcommand manages them via pnpm 2026-08-06 06:29:06 +08:00
web-agent-presets.spec.ts fix(web): record which preset a session actually runs 2026-08-07 00:38:11 +08:00