Repository navigation
Fix native chat history across transcript formats - #13393
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCodex transcript decoding now supports unwrapped records and completed turn items. It converts supported user and assistant content into native text and image blocks. It recognizes custom tool calls and custom tool-call outputs. History-mode tests cover paginated and legacy histories, response-copy deduplication, transcript tails, image content, and freeform tools. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 8b37f5f5-81b6-45c2-8a10-81dfbac40c1f
📒 Files selected for processing (2)
src/main/native-chat/transcript-line-decoders-codex.tssrc/main/native-chat/transcript-reader-codex-history-mode.test.ts
* fix(native-chat): restore transcript history across formats * fix(native-chat): preserve safe Codex history metadata (cherry picked from commit 1d3decd)
* fix(native-chat): restore transcript history across formats * fix(native-chat): preserve safe Codex history metadata





Summary
Compatibility
Covers all three persisted transcript eras: unwrapped response records, wrapped legacy events, and canonical paginated turn items. The full desktop reader and mobile tail reader share the same decoder. Existing message roles and block shapes are reused, so this does not change the remote wire contract.
Validation
pnpm exec vitest run --config config/vitest.config.ts src/main/native-chat(161/161)pnpm run typecheck:nodeoxlintpnpm run check:max-lines-ratchetgit diff --check