mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 12:37:55 +01:00
test(heartbeat): retain mutable recovery event fault fixture
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
225145192e
commit
5f5e2ca8f1
1 file changed
+2
-1
@@ -45,7 +45,8 @@ describe.skipIf(!support.supported)("committed Agent Chat reply recovery", () =>
|
||||
completionContractRevision: "test", completionContractCriterionIds: [] });
|
||||
const reply = "The teammate is hired and ready for your next instruction.";
|
||||
const prpEvent = { runId, normalizedSessionId: sessionId, turnId: "hire-turn", sourceEventId: "fixture-final-answer",
|
||||
payload: { kind: "agentMessage", channel: options.channel ?? "final", providerPhase: "final", text: reply } };
|
||||
payload: { kind: "agentMessage", channel: "final", providerPhase: "final", text: reply } };
|
||||
if (options.channel) prpEvent.payload.channel = options.channel;
|
||||
await db.insert(heartbeatRunEvents).values({ companyId, runId, agentId, seq: 170, eventType: "item.completed", payload: { prpEvent } });
|
||||
const disposition = options.disposition ?? "done";
|
||||
await port.completeRun({ result: { schema: "paperclip.run_result.v1", reportedWorkDisposition: disposition,
|
||||
|
||||
Reference in new issue
Block a user