Skip to content

fix: add missing shell streaming event types#1771

Open
fuleinist wants to merge 1 commit intoopenai:masterfrom
fuleinist:fix/issue-1750-shell-streaming-events
Open

fix: add missing shell streaming event types#1771
fuleinist wants to merge 1 commit intoopenai:masterfrom
fuleinist:fix/issue-1750-shell-streaming-events

Conversation

@fuleinist
Copy link

Summary

Adds missing streaming event types for the hosted shell tool that are emitted by the API but not currently defined in the SDK.

Changes

  • Added ResponseShellCallCommandAddedEvent - fired when a new shell command starts streaming
  • Added ResponseShellCallCommandDeltaEvent - incremental text delta for a shell command being streamed
  • Added ResponseShellCallCommandDoneEvent - fired when a shell command has finished streaming
  • Added ResponseShellCallOutputContentDeltaEvent - incremental delta for shell execution stdout/stderr
  • Added ResponseShellCallOutputContentDoneEvent - fired when a shell command output is complete
  • Updated ResponseStreamEvent and ResponsesServerEvent union types to include these new events

Testing

Types are based on actual API responses as documented in issue #1750.

Note

I understand that this repository is auto-generated and this PR may not be merged as-is. Submitting to share the fix with the community.

  • I understand that this repository is auto-generated and my pull request may not be merged

Fixes #1750

Adds the following missing streaming event types for the hosted shell tool:
- ResponseShellCallCommandAddedEvent
- ResponseShellCallCommandDeltaEvent
- ResponseShellCallCommandDoneEvent
- ResponseShellCallOutputContentDeltaEvent
- ResponseShellCallOutputContentDoneEvent

Fixes openai#1750
@fuleinist fuleinist requested a review from a team as a code owner March 14, 2026 20:33
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a1d9f1caf

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

/**
* Opaque obfuscation token (unused).
*/
obfuscation: string;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make shell command obfuscation optional

ResponseShellCallCommandDeltaEvent currently requires obfuscation, but the same file documents stream_options.include_obfuscation as disabling obfuscation fields on streaming delta events. When callers set that flag to false, this event can arrive without obfuscation, so the required string type can mislead SDK users into dereferencing a missing field at runtime; this should be optional to match the wire format.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hosted shell types and streaming events missing

1 participant