@ai-sdk/openai 3.0.94 → 3.0.96

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.96
4
+
5
+ ### Patch Changes
6
+
7
+ - 64facff: Reconstruct provider-executed shell calls when continuing OpenAI Responses with storage disabled.
8
+
9
+ ## 3.0.95
10
+
11
+ ### Patch Changes
12
+
13
+ - bdb46fe: Avoid duplicate MCP approval request references when continuing stored OpenAI Responses.
14
+
3
15
  ## 3.0.94
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3189,7 +3189,9 @@ async function convertToOpenAIResponsesInput({
3189
3189
  if (store && id != null) {
3190
3190
  input.push({ type: "item_reference", id });
3191
3191
  }
3192
- break;
3192
+ if (store || !hasShellTool || resolvedToolName !== "shell") {
3193
+ break;
3194
+ }
3193
3195
  }
3194
3196
  const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || ((_m = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _m : false);
3195
3197
  if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
@@ -3418,7 +3420,7 @@ async function convertToOpenAIResponsesInput({
3418
3420
  continue;
3419
3421
  }
3420
3422
  processedApprovalIds.add(approvalResponse.approvalId);
3421
- if (store) {
3423
+ if (store && !hasConversation && !hasPreviousResponseId) {
3422
3424
  input.push({
3423
3425
  type: "item_reference",
3424
3426
  id: approvalResponse.approvalId
@@ -7355,7 +7357,7 @@ var OpenAITranscriptionModel = class {
7355
7357
  };
7356
7358
 
7357
7359
  // src/version.ts
7358
- var VERSION = true ? "3.0.94" : "0.0.0-test";
7360
+ var VERSION = true ? "3.0.96" : "0.0.0-test";
7359
7361
 
7360
7362
  // src/openai-provider.ts
7361
7363
  function createOpenAI(options = {}) {