Skip to content

fix(gpt-5.3-codex-spark): support tool call arguments in done event without deltas#2558

Merged
tusharmath merged 5 commits intomainfrom
fix-spark-model
Mar 14, 2026
Merged

fix(gpt-5.3-codex-spark): support tool call arguments in done event without deltas#2558
tusharmath merged 5 commits intomainfrom
fix-spark-model

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Mar 14, 2026
@amitksingh1490 amitksingh1490 changed the title fix(provider): support tool call arguments in done event without deltas fix(gpt-5.3-codex-spark): support tool call arguments in done event without deltas Mar 14, 2026
@@ -154,6 +154,12 @@ impl IntoDomain for oai::Response {
#[derive(Default)]
struct CodexStreamState {
output_index_to_tool_call: HashMap<u32, (ToolCallId, ToolName)>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
output_index_to_tool_call: HashMap<u32, (ToolCallId, ToolName)>,
output_index_to_tool_call: HashMap<ToolCallIndex, (ToolCallId, ToolName)>,

/// skipped to avoid duplication. When no deltas are received (e.g. the
/// Spark model sends arguments only in the `done` event), we must emit
/// them from the `done` handler.
output_indices_with_deltas: HashSet<u32>,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
output_indices_with_deltas: HashSet<u32>,
received_toolcall_deltas: HashSet<ToolCallIndex>,

@tusharmath tusharmath merged commit d0dd26e into main Mar 14, 2026
10 checks passed
@tusharmath tusharmath deleted the fix-spark-model branch March 14, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants