This commit is contained in:
ZacharyZhang-NY committed 2026-04-04 12:03:50 -04:00
1 parent 66158e222e
commit 67c757f481
314 files changed
+37945 -22962

No files matched your search

+6
View File
@@ -31,6 +31,7 @@ export function registerCoreOperationHandlers({
publishDomainChanged,
emitEvent,
wakeAgentIfPossible,
handleApprovalCreated,
handleApprovalResolved,
dispatchAutomation,
queueTaskRun,
@@ -44,6 +45,7 @@ export function registerCoreOperationHandlers({
| "publishDomainChanged"
| "emitEvent"
| "wakeAgentIfPossible"
| "handleApprovalCreated"
| "handleApprovalResolved"
| "dispatchAutomation"
| "queueTaskRun"
@@ -74,6 +76,10 @@ export function registerCoreOperationHandlers({
entityId: id,
detail: parsed.payloadSummary,
});
// Notify thread integration about the new approval
handleApprovalCreated(id, parsed.companyId, parsed.relatedTaskId ?? null, parsed.type, parsed.payloadSummary ?? "");
if (shouldAutoApproveApproval(db, parsed.companyId, parsed.type)) {
resolveApprovalDecision({
db,