Skip to content

Conversation

@michaelcummings12
Copy link

@michaelcummings12 michaelcummings12 commented Jan 29, 2026

Background

Add support for passing execution status ('in_progress' | 'completed' | 'incomplete') from shell tool outputs to the OpenAI API responses.

Based on latest OpenAI API specification (L66124-66128)

Summary

  • OpenAI Responses API: Added status property to the OpenAIResponsesShellCallOutput interface and Zod schema in packages/openai/src/responses/openai-responses-api.ts.
  • Shell Tool: Updated shellOutputSchema and the factory interface in packages/openai/src/tool/shell.ts to include an optional status field.
  • Conversion Logic: Updated packages/openai/src/responses/convert-to-openai-responses-input.ts to map the status field from the tool output to the API input.

Manual Verification

  • ran pnpm build --filter @ai-sdk/openai to verify build success and type safety.
  • ran pnpm test in packages/openai to verify no regressions.
  • Validated that packages/openai/src/responses/openai-responses-api.test.ts and packages/openai/src/responses/convert-to-openai-responses-input.test.ts pass successfully.

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)
@michaelcummings12 michaelcummings12 changed the title feat(openai): add status support to shell tool Jan 29, 2026
@michaelcummings12 michaelcummings12 changed the title patch(openai): add status support to shell tool Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant