@axiom-lattice/gateway 2.1.70 → 2.1.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2030,6 +2030,10 @@ async function replyInboxTask(request, reply) {
2030
2030
  tenant_id: tenantId
2031
2031
  });
2032
2032
  try {
2033
+ const queueStore = agent.getQueueStore?.() || agent.queueStore;
2034
+ if (queueStore?.resetProcessingToPending) {
2035
+ await queueStore.resetProcessingToPending(run.threadId);
2036
+ }
2033
2037
  await agent.addMessage({
2034
2038
  input: { message: "Clarification answers submitted" },
2035
2039
  command: {
@@ -2040,6 +2044,7 @@ async function replyInboxTask(request, reply) {
2040
2044
  }
2041
2045
  }
2042
2046
  });
2047
+ await agent.startQueueProcessorIfNeeded();
2043
2048
  } catch (error) {
2044
2049
  return reply.status(400).send({
2045
2050
  success: false,