fix(review): harden web replay verification

Validate replay sidecars and cross-copy failure facts, make browser console tripwires and macOS temp paths deterministic, and wait for asynchronous TUI resume details. Keep the owning docs, translations, and generated catalog aligned.
This commit is contained in:
Tianyi Cui
2026-07-26 22:38:33 +08:00
parent b67ecc45fc
commit e2882f486b
20 changed files with 310 additions and 132 deletions
+7 -6
View File
@@ -71,12 +71,13 @@ export interface Scenario {
recorded: boolean
/**
* Whether replay is driven by a hand-written `replay.override.json` sidecar
* (a `ReplayEntry[]` that REPLACES the script derived from `session.jsonl`)
* — the throw/hang cases chunks cannot express. The fixture guard requires
* the sidecar exactly when this is set: the harness forwards the file purely
* on existence, so an unregistered stray sidecar would silently replace the
* derived script — the guard fails loud on either mismatch. Defaults to
* false (replay derives from the fixture's `assistant/chunk` events).
* (a `ReplayOverrideDoc` that replaces or patches the script derived from
* `session.jsonl`) — the throw/hang cases chunks cannot express. The fixture
* guard requires the sidecar exactly when this is set: the harness forwards
* the file purely on existence, so an unregistered stray sidecar would
* silently alter the derived script. The guard fails loud on either
* mismatch. Defaults to false (replay derives from the fixture's
* `assistant/chunk` events).
*/
overridden?: boolean
/**