fix(backends): strip empty HTML comment markers from Codex reasoning summaries#124
Conversation
…summaries Codex app-server and OpenAI Codex backends now pass reasoning summary text deltas through codexreasoning.StripEmptyHTMLCommentMarkers before emitting them as client-visible reasoning events. Add the shared codexreasoning package with unit tests for the sanitizer. Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
📜 Recent review details⏰ Context from checks skipped due to timeout. (1)
🧰 Additional context used📓 Path-based instructions (5)**/*📄 CodeRabbit inference engine (Custom checks)
Files:
**/go.mod⚙️ CodeRabbit configuration file
Files:
**/*.go📄 CodeRabbit inference engine (Custom checks)
Files:
⚙️ CodeRabbit configuration file
Files:
internal/**⚙️ CodeRabbit configuration file
Files:
**/*_test.go⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📚 Learning: 2026-07-01T22:57:42.953ZApplied to files:
🪛 markdownlint-cli2 (0.22.1)EchoesVault/daily/2026-07-09.md[warning] 1-1: First line in a file should be a top-level heading (MD041, first-line-heading, first-line-h1) 🔇 Additional comments (8)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a codexreasoning.StripEmptyHTMLCommentMarkers helper and integrates it into codexappserver and openaicodex stream mappers to strip or suppress empty HTML comment markers in reasoning summary text deltas. Includes new unit tests, a go.mod toolchain version bump, and a daily session log entry. ChangesReasoning Delta Sanitization
Estimated code review effort: 2 (Simple) | ~15 minutes 🚥 Pre-merge checks | ✅ 7 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (7 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: Cursor <cursoragent@cursor.com>
govulncheck failed on crypto/tls in go1.26.4; CI requires the patched standard library. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
codexreasoningsanitizer package with focused unit tests.Test plan
make test-unitpassesmake quality-checkspasses