mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-06 15:52:22 +01:00
Merge updated parent into sleep-23-voice-inbound-cleanup
Preserve the existing PR boundary while integrating master through the sleep migration stack. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
commit
2ecbf7e798
2 files changed
+2
-2
No files matched your search
@@ -552,7 +552,7 @@ describeEmbeddedPostgres("tool gateway service", () => {
|
||||
expect(await db.select().from(toolCallEvents).where(eq(toolCallEvents.reasonCode, "approved_action_executed"))).toEqual([]);
|
||||
});
|
||||
|
||||
it.each(["succeeded", "failed", "denied", "timed_out", "rate_limited"] as const)("preserves a saved %s invocation while repairing the request", async status => {
|
||||
it.each(["succeeded", "failed", "denied", "timed_out", "rate_limited", "cancelled"] as const)("preserves a saved %s invocation while repairing the request", async status => {
|
||||
const pending = await savedClaim(db, 11 * 60_000);
|
||||
const completedAt = new Date(Date.now() - 5 * 60_000);
|
||||
await db.update(toolInvocations).set({ status, completedAt, resultSummary: { summary: "Saved provider result" },
|
||||
|
||||
@@ -35,7 +35,7 @@ export function toolReviewInterruptionService(db: Db, onSettled: (input: {
|
||||
.where(eq(toolActionRequests.id, row.id)).for("update");
|
||||
if (!invocation || request?.status !== "executing" ||
|
||||
request.updatedAt.getTime() !== row.updatedAt.getTime()) return null;
|
||||
const completed = ["succeeded", "failed", "denied", "timed_out", "rate_limited"].includes(invocation.status);
|
||||
const completed = ["succeeded", "failed", "denied", "timed_out", "rate_limited", "cancelled"].includes(invocation.status);
|
||||
const status = invocation.status === "succeeded" ? "executed" as const : "failed" as const;
|
||||
const errorCode = completed ? invocation.errorCode : "tool_execution_outcome_unknown";
|
||||
const errorMessage = completed ? invocation.errorMessage
|
||||
|
||||
Reference in new issue
Block a user