proxy: drop provider reasoning content #32

Merged
wmc merged 1 commit from codex/reasoning-content-policy into main 2026-06-23 07:46:07 +00:00
Owner

Summary

  • Treat provider reasoning_content as non-visible reasoning data instead of converting it to Responses output_text.
  • Preserve visible Chat content/refusal in non-streaming and streaming conversions, including streamed refusal deltas.
  • Add direct, proxy, and streaming regression coverage, and update README/TODO with the policy.

Verification

  • RED: DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-refusal-red CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingKeepsRefusalDeltasAndDropsReasoningDeltas failed before the streaming refusal fix.
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-refusal-green CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingKeepsRefusalDeltasAndDropsReasoningDeltas
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-focused CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testResponsesBodyDropsReasoningOnlyProviderContent -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyDropsReasoningOnlyProviderContentFromNonStreamingConversion -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingDropsReasoningOnlyProviderDeltas -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingKeepsRefusalDeltasAndDropsReasoningDeltas
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-proxy CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests
  • git diff --check
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer scripts/verify.sh
  • Subagent re-review: no findings.
## Summary - Treat provider `reasoning_content` as non-visible reasoning data instead of converting it to Responses `output_text`. - Preserve visible Chat `content`/`refusal` in non-streaming and streaming conversions, including streamed refusal deltas. - Add direct, proxy, and streaming regression coverage, and update README/TODO with the policy. ## Verification - RED: `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-refusal-red CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingKeepsRefusalDeltasAndDropsReasoningDeltas` failed before the streaming refusal fix. - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-refusal-green CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingKeepsRefusalDeltasAndDropsReasoningDeltas` - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-focused CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testResponsesBodyDropsReasoningOnlyProviderContent -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyDropsReasoningOnlyProviderContentFromNonStreamingConversion -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingDropsReasoningOnlyProviderDeltas -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingKeepsRefusalDeltasAndDropsReasoningDeltas` - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-reasoning-proxy CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests` - `git diff --check` - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer scripts/verify.sh` - Subagent re-review: no findings.
wmc merged commit feb73adff7 into main 2026-06-23 07:46:07 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
wmc/CodexModelSwitcher!32
No description provided.