codex - 💡(How to fix) Fix Clarify thread/read vs thread/resume semantics in integration docs [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17900Fetched 2026-04-16 06:46:44
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Root Cause

Because this distinction is not prominent in the docs, integrators may build reconnect flows that appear to lose turn/started, item/completed, or turn/completed notifications.

RAW_BUFFERClick to expand / collapse

What is the type of issue?

Documentation is missing

What is the issue?

The integration-facing docs do not clearly explain the semantic difference between thread/read and thread/resume.

This makes it easy to assume that thread/read can be used to reattach a connection to an existing thread and continue receiving live turn events. In practice, that is not the case.

Observed behavior:

  • thread/read returns thread state / persisted history
  • thread/read does not attach a live listener for future thread events
  • thread/resume is the operation that resumes an existing thread and subscribes the connection for subsequent updates

Because this distinction is not prominent in the docs, integrators may build reconnect flows that appear to lose turn/started, item/completed, or turn/completed notifications.

Suggested documentation change:

  • explicitly state that thread/read is for state/history inspection only
  • explicitly state that thread/read is not a subscription primitive
  • explicitly state that reconnecting to an existing thread's live event stream requires thread/resume

Where did you find it?

  • codex-rs/docs/codex_mcp_interface.md

    • codex-rs/app-server-client/README.md
    • codex-rs/app-server-protocol/src/protocol/v2.rs

    Relevant source comments that clarify the behavior today:

    • codex-rs/app-server/src/thread_state.rs
    • codex-rs/tui/src/app.rs

extent analysis

TL;DR

Update the documentation to clearly distinguish between thread/read for state/history inspection and thread/resume for resuming an existing thread and subscribing to live updates.

Guidance

  • Review the suggested documentation changes to ensure they accurately reflect the semantic difference between thread/read and thread/resume.
  • Verify that the updated documentation explicitly states the purpose of each operation, including that thread/read is not a subscription primitive.
  • Check the relevant source comments in codex-rs/app-server/src/thread_state.rs and codex-rs/tui/src/app.rs to ensure consistency with the updated documentation.
  • Consider adding examples or use cases to the documentation to illustrate the correct usage of thread/read and thread/resume.

Example

No code snippet is provided as the issue is related to documentation and not a specific code implementation.

Notes

The suggested documentation changes aim to prevent integrators from building reconnect flows that lose important notifications. However, it is essential to review the updated documentation carefully to ensure it accurately reflects the intended behavior.

Recommendation

Apply the suggested documentation changes to clearly distinguish between thread/read and thread/resume, as this will help prevent misunderstandings and incorrect usage of these operations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Clarify thread/read vs thread/resume semantics in integration docs [1 comments, 2 participants]