Skip to content

Commit

Permalink
fix: Allow runs to continue after call deny
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith committed Dec 11, 2024
1 parent 587032b commit 3f1c02c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/chat/function-call.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function FunctionCall({
functionName={targetFn}
/>
</div>
{approvalRequested && !approved && (
{approvalRequested && approved === null && (
<div className="flex gap-2">
<Button
size="sm"
Expand Down
6 changes: 5 additions & 1 deletion control-plane/src/modules/workflows/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
desc,
eq,
inArray,
isNull,
ne,
or,
sql,
Expand Down Expand Up @@ -622,7 +623,10 @@ export const getWaitingJobIds = async ({
eq(jobs.cluster_id, clusterId),
or(
inArray(jobs.status, ["pending", "running"]),
and(eq(jobs.approval_requested, true), ne(jobs.approved, true)),
and(
eq(jobs.approval_requested, true),
isNull(jobs.approved)
),
),
),
);
Expand Down

0 comments on commit 3f1c02c

Please sign in to comment.