@opengeni/core 0.20.10 → 0.20.11

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.js CHANGED
@@ -4541,7 +4541,7 @@ async function postUserMessageTurn(input) {
4541
4541
  sessionId,
4542
4542
  workflowId: turn.temporalWorkflowId,
4543
4543
  wakeRevision: result.wakeRevision,
4544
- ...result.interruptionCount > 0 ? { interruptionRequested: true } : {}
4544
+ ...(input.delivery ?? "send") === "steer" || result.interruptionCount > 0 ? { interruptionRequested: true } : {}
4545
4545
  });
4546
4546
  } catch (error) {
4547
4547
  console.warn(
@@ -6608,7 +6608,7 @@ async function publishAndWakeAgentCommand(deps, input) {
6608
6608
  sessionId: input.sessionId,
6609
6609
  workflowId: input.workflowId,
6610
6610
  wakeRevision: input.wakeRevision,
6611
- ...input.interruptionCount > 0 ? { interruptionRequested: true } : {}
6611
+ ...input.controlRequested || input.interruptionCount > 0 ? { interruptionRequested: true } : {}
6612
6612
  });
6613
6613
  } catch (error) {
6614
6614
  console.warn(
@@ -6697,7 +6697,8 @@ async function steerAgentSession(deps, context, input) {
6697
6697
  workflowId: result.workflowId,
6698
6698
  wakeRevision: result.wakeRevision,
6699
6699
  shouldSignal: result.shouldSignal,
6700
- interruptionCount: result.interruptionCount
6700
+ interruptionCount: result.interruptionCount,
6701
+ controlRequested: true
6701
6702
  });
6702
6703
  await publishWorkspaceControlEvent(deps, context.workspaceId, result.workspaceControlEventId);
6703
6704
  return result;