You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: Tool Name Lost in Streaming Chat Completions After PR #6996 #7579
Invalid 'input[3].name': empty string. Expected a string with minimum length 1, but got an empty string instead.
Cause: PR #6996 introduced a regression in SSE streaming response parsing. When the Chat Completions API streams tool calls, the first delta contains the function name while subsequent deltas contain empty names at my case. The original code used get_or_insert_with() to preserve existing names, but the new code in codex-api/src/sse/chat.rs unconditionally overwrites with = Some(fname.to_string()), causing valid names to be replaced with empty strings.
Proposed Fix: Add !fname.is_empty() check before updating the tool name:
if let Some(fname) = func.get("name").and_then(|n| n.as_str()) {
if !fname.is_empty() {
call_state.name = Some(fname.to_string());
}
}
Activity
github-actions commentedon Dec 4, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
scotty2 commentedon Dec 5, 2025
Can confirm this bug has existed for me since 0.64.0
etraut-openai commentedon Dec 5, 2025
Thanks for the bug report.
The fix is in prerelease version 0.66.0-alpha.5 and will be included in 0.66.0 once it's published.