basic_streaming.ts sample does not handle web_search, mcp_tool_call, and error item types
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- documentation
Research direction
Open sdk/typescript/samples/basic_streaming.ts and inspect handleItemCompleted, then compare it with the item definitions in items.ts. Add visible handling for web_search, mcp_tool_call, and error items using their documented fields, and verify that the sample no longer silently drops any defined item type.
Written by the indexing model from the issue text.
Description
What is the type of issue?
Documentation is missing
What is the issue?
The basic_streaming.ts sample handles agent_message, reasoning,
command_execution, file_change, and todo_list — but skips three
item types that are defined in items.ts:
- web_search (query field)
- mcp_tool_call (server + tool + status fields)
- error (message field)
A developer copying this sample as a starting point would silently
drop these events. Suggested fix: add these cases to handleItemCompleted.
I'm happy to submit a PR if invited.
Where did you find it?
https://github.com/openai/codex/blob/main/sdk/typescript/samples/basic_streaming.ts
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·