proxy: preserve streaming response annotations #34

Merged
wmc merged 1 commit from codex/streaming-response-annotations into main 2026-06-23 08:16:38 +00:00
Owner

Summary

  • Preserve sanitized compatible annotations that arrive on streamed Chat text/refusal content in terminal Responses output_text snapshots.
  • Keep response.output_text.delta payloads unchanged and annotation-free while reusing the existing whitelist sanitizer.
  • Update README and TODO to record the streaming annotation decision and next backlog item.

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-streaming-annotations-red CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingPreservesSanitizedContentArrayAnnotationsInTerminalParts failed before implementation on empty annotations.
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-streaming-annotations-focused CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingPreservesSanitizedContentArrayAnnotationsInTerminalParts
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-streaming-annotations-proxy CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests
  • git diff --check -- CodexModelSwitcher/CompatibilityProxyServer.swift CodexModelSwitcherTests/CompatibilityProxyServerTests.swift README.md TODO.md
  • DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer scripts/verify.sh
  • Subagent review: no findings; reviewer also ran scripts/verify.sh successfully.
## Summary - Preserve sanitized compatible annotations that arrive on streamed Chat text/refusal content in terminal Responses `output_text` snapshots. - Keep `response.output_text.delta` payloads unchanged and annotation-free while reusing the existing whitelist sanitizer. - Update README and TODO to record the streaming annotation decision and next backlog item. ## 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-streaming-annotations-red CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingPreservesSanitizedContentArrayAnnotationsInTerminalParts` failed before implementation on empty annotations. - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-streaming-annotations-focused CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests/testProxyStreamingPreservesSanitizedContentArrayAnnotationsInTerminalParts` - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild test -project CodexModelSwitcher.xcodeproj -scheme CodexModelSwitcher -configuration Debug -destination platform=macOS -derivedDataPath /tmp/CodexModelSwitcher-DerivedData-streaming-annotations-proxy CODE_SIGNING_ALLOWED=NO -only-testing:CodexModelSwitcherTests/CompatibilityProxyServerTests` - `git diff --check -- CodexModelSwitcher/CompatibilityProxyServer.swift CodexModelSwitcherTests/CompatibilityProxyServerTests.swift README.md TODO.md` - `DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer scripts/verify.sh` - Subagent review: no findings; reviewer also ran `scripts/verify.sh` successfully.
wmc merged commit 10fbd32f96 into main 2026-06-23 08:16:38 +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!34
No description provided.