diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 01:04:01 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 01:04:01 +0900 |
| commit | cce2380c116b9052f3839a0bc3f2bc4191f9afbd (patch) | |
| tree | b0d37090500ff055aacfe077b8e753d53ab4c4dc /scripts | |
| parent | 08866b6c40be89f152a2dc5961d074666ea9d700 (diff) | |
| download | dispatch-web-cce2380c116b9052f3839a0bc3f2bc4191f9afbd.tar.gz dispatch-web-cce2380c116b9052f3839a0bc3f2bc4191f9afbd.zip | |
chore: biome-format scripts/live-probe.ts
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/live-probe.ts | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/live-probe.ts b/scripts/live-probe.ts index a78fb4f..bc654dd 100644 --- a/scripts/live-probe.ts +++ b/scripts/live-probe.ts @@ -119,16 +119,27 @@ async function main() { // Post-seal: resync authoritative seq'd history + commit to cache (the real path). const sinceSeq = await cache.sinceSeq(conversationId); const hist = await historySync(conversationId, sinceSeq); - record("history endpoint returned chunks", hist.chunks.length > 0, `${hist.chunks.length} chunks, latestSeq=${hist.latestSeq}`); + record( + "history endpoint returned chunks", + hist.chunks.length > 0, + `${hist.chunks.length} chunks, latestSeq=${hist.latestSeq}`, + ); const monotonic = hist.chunks.every((c, i) => i === 0 || c.seq > (hist.chunks[i - 1]?.seq ?? -1)); record("history chunks are seq-monotonic", monotonic); const merged = await cache.commit(conversationId, hist.chunks); state = applyHistory(state, merged); - record("provisional superseded after applyHistory (sealedTurnId cleared)", state.sealedTurnId === null); + record( + "provisional superseded after applyHistory (sealedTurnId cleared)", + state.sealedTurnId === null, + ); const cached = await cache.load(conversationId); - record("IndexedDB cache persisted the turn", cached.length === hist.chunks.length, `${cached.length} cached`); + record( + "IndexedDB cache persisted the turn", + cached.length === hist.chunks.length, + `${cached.length} cached`, + ); const committedText = selectMessages(state) .filter((m) => m.role === "assistant") |
