CodeTracked since May 21, 2026
Fix empty-ID OpenAI tool-call replays to prevent ghost calls
The PR fixes a replay-path correctness issue in Pi’s OpenAI-compatible provider layer by normalizing tool-call IDs during chat-completions/Responses replay: it merges argument-only streaming deltas into the active tool call, assigns deterministic non-empty IDs when ids are missing or pipe-prefixed, and drops orphan tool outputs without a matching emitted assistant tool call.
OpenAI-compatible providertool-call replaychat-completionsResponses