@tangle-network/agent-app 0.46.50 → 0.46.52

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.
@@ -100,7 +100,7 @@ import {
100
100
  createBufferedTurnTap,
101
101
  replayTurnEvents,
102
102
  stampReplaySeq
103
- } from "../chunk-SDEADFHZ.js";
103
+ } from "../chunk-B5KMUXRM.js";
104
104
  import {
105
105
  ModelFailoverExhaustedError,
106
106
  buildModelChain,
@@ -561,6 +561,10 @@ function createChatTurnRoutes(options) {
561
561
  produceArgs = { ...produceArgs, userMessageId };
562
562
  if (options.contextGate) {
563
563
  const gate = await options.contextGate(produceArgs);
564
+ if (gate.proceed === "handoff") {
565
+ await releaseLock();
566
+ return gate.response;
567
+ }
564
568
  if (!gate.proceed) {
565
569
  await releaseLock();
566
570
  gatedTurn = true;