From 7fec6f1d559f5edfbf879dddeaff3bc8eb9364a7 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sun, 8 Nov 2026 23:09:08 -0800 Subject: [PATCH] Give the 4a stub's user echo the uuid its transcript row records --- .../native-chat/native-chat-4a-provider-stub.cjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/scripts/performance/native-chat/native-chat-4a-provider-stub.cjs b/config/scripts/performance/native-chat/native-chat-4a-provider-stub.cjs index 8155ded9d94..12de18656f5 100644 --- a/config/scripts/performance/native-chat/native-chat-4a-provider-stub.cjs +++ b/config/scripts/performance/native-chat/native-chat-4a-provider-stub.cjs @@ -196,8 +196,10 @@ async function startTurn(frame) { const controller = new AbortController() current = controller // The CLI's --replay-user-messages echo, which opens the turn. - remember({ type: 'user', uuid: frame.uuid ?? randomUUID(), message: frame.message }) - await write({ ...frame, isReplay: true }) + // One uuid for the echo and the transcript row, so fork and rewind can find this prompt. + const echo = { ...frame, uuid: frame.uuid ?? randomUUID(), session_id: sessionId, isReplay: true } + remember({ type: 'user', uuid: echo.uuid, message: frame.message }) + await write(echo) const content = frame.message?.content ?? frame.message const prompt = Array.isArray(content) ? content.map((block) => block?.text ?? '').join('\n')