mirror of
https://github.com/stablyai/orca.git
synced 2026-11-14 01:47:24 +00:00
Give the 4a stub's user echo the uuid its transcript row records
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user