Skip to content

Generate stable message IDs for Chat Completions streams - #128

Open
jacobbabula wants to merge 1 commit into
openai:mainfrom
jacobbabula:fix/chat-completions-message-ids
Open

Generate stable message IDs for Chat Completions streams#128
jacobbabula wants to merge 1 commit into
openai:mainfrom
jacobbabula:fix/chat-completions-message-ids

Conversation

@jacobbabula

Copy link
Copy Markdown

Summary

  • replace the Agents SDK __fake_id__ placeholder with a generated ChatKit message ID
  • carry that ID through content-part, delta, annotation, and completion events
  • add a regression test covering two consecutive Chat Completions messages

Testing

  • focused synthetic-ID regression test
  • pytest -q (131 tests)
  • Ruff checks and formatting for changed files
  • Pyright (0 errors)

Fixes #36

@jacobbabula
jacobbabula marked this pull request as ready for review August 16, 2026 22:39
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.

Client thread couldn't render properly when using OpenAI chat completion API

1 participant