mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 06:03:51 +01:00
Keep held Slack form context available to retry failure handling
This commit is contained in:
1 parent
3ee8194472
commit
ec73713117
1 file changed
+1
-1
@@ -993,6 +993,7 @@ export function createChatInteractionCallbacks(db: Db, options: InteractionCallb
|
||||
await options.questionFormOpenAuthorizationBarrier?.();
|
||||
let providerAttempted = false;
|
||||
let attemptActionId: string | null = null;
|
||||
const cloudForm = event.provider === "slack" ? slackFormOpenContext() : undefined;
|
||||
try {
|
||||
const attemptProviderActionId = event.event.triggerId
|
||||
? `question_form_open_attempt:${createHash("sha256")
|
||||
@@ -1005,7 +1006,6 @@ export function createChatInteractionCallbacks(db: Db, options: InteractionCallb
|
||||
)
|
||||
.digest("hex")}`
|
||||
: null;
|
||||
const cloudForm = event.provider === "slack" ? slackFormOpenContext() : undefined;
|
||||
const runPreflight = (lease?: CredentialMutationLeaseGuard) => db.transaction(async (tx) => {
|
||||
await requireCurrentExternalActionAuthorization(tx, {
|
||||
conversationId: conversation.id,
|
||||
|
||||
Reference in new issue
Block a user