mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-06-22 19:45:15 +08:00
- Refactored content block start/stop logic into `startCodexTextBlock` and `stopCodexTextBlock` for better readability and reusability. - Updated logic to ensure proper handling of "output_text" block events to avoid ghost stop emissions. - Added `TestConvertCodexResponseToClaude_StreamTextBeforeToolCallsDoesNotEmitGhostStop` to validate content block start/stop behavior in streamed responses.