feat: add optional messageID to ShellInput (#20657)

This commit is contained in:
Noam Bressler
2026-04-02 18:18:16 +03:00
committed by GitHub
parent 57a5236e71
commit 291a857fb8
3 changed files with 5 additions and 1 deletions

View File

@@ -756,7 +756,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
}
const model = input.model ?? agent.model ?? (yield* lastModel(input.sessionID))
const userMsg: MessageV2.User = {
id: MessageID.ascending(),
id: input.messageID ?? MessageID.ascending(),
sessionID: input.sessionID,
time: { created: Date.now() },
role: "user",
@@ -1827,6 +1827,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
export const ShellInput = z.object({
sessionID: SessionID.zod,
messageID: MessageID.zod.optional(),
agent: z.string(),
model: z
.object({