@ai-sdk/openai 4.0.39 → 4.0.41

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.
@@ -3708,7 +3708,9 @@ async function convertToOpenAIResponsesInput({
3708
3708
  if (store && id != null) {
3709
3709
  input.push({ type: "item_reference", id });
3710
3710
  }
3711
- break;
3711
+ if (store || !hasShellTool || resolvedToolName !== "shell") {
3712
+ break;
3713
+ }
3712
3714
  }
3713
3715
  const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || hasComputerTool && resolvedToolName === "computer" || ((_o = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _o : false);
3714
3716
  if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
@@ -4028,7 +4030,7 @@ async function convertToOpenAIResponsesInput({
4028
4030
  continue;
4029
4031
  }
4030
4032
  processedApprovalIds.add(approvalResponse.approvalId);
4031
- if (store) {
4033
+ if (store && !hasConversation && !hasPreviousResponseId) {
4032
4034
  input.push({
4033
4035
  type: "item_reference",
4034
4036
  id: approvalResponse.approvalId