fix(agents): harden tool transcript repair
This commit is contained in:
@@ -338,6 +338,11 @@ describeLive("gateway live (dev agent, profile keys)", () => {
|
||||
key: sessionKey,
|
||||
model: modelKey,
|
||||
});
|
||||
// Reset between models: avoids cross-provider transcript incompatibilities
|
||||
// (notably OpenAI Responses requiring reasoning replay for function_call items).
|
||||
await client.request<Record<string, unknown>>("sessions.reset", {
|
||||
key: sessionKey,
|
||||
});
|
||||
|
||||
// “Meaningful” direct prompt (no tools).
|
||||
const runId = randomUUID();
|
||||
|
||||
Reference in New Issue
Block a user