Skip to content

fix: harden custom tool SSE edge cases - #169

Merged
maralbahari merged 1 commit into
mainfrom
codex/pr-158-fix
Aug 11, 2026
Merged

maralbahari merged 1 commit into
mainfrom
codex/pr-158-fix

Conversation

@franciscojavierarceo

Copy link
Copy Markdown
Collaborator

Follow-up to #158 by @maralbahari, which added OpenAI-compatible custom tool SSE lifecycle translation.

Summary

  • Keep parallel unnamed function calls distinct by tracking unresolved calls with their output index.
  • Preserve output-index ordering when deferred stream frames are released.
  • Accept explicit unconstrained {"type":"text"} custom tool formats while continuing to reject grammar constraints that normalization cannot preserve.
  • Keep streamed custom tool deltas consistent with the authoritative input.done value.
  • Decode only newly arrived custom input and bound custom-call and deferred-stream buffering.

Test Plan

  • cargo fmt --all -- --check
  • cargo clippy --offline --all-targets -- -D warnings
  • cargo test --offline

Signed-off-by: Francisco Javier Arceo <[email protected]>
@maralbahari
maralbahari merged commit 5681860 into main Aug 11, 2026
6 checks passed
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.

2 participants