v2.6.85

BenedictKing/ccxv2.6.85May 12, 2026by github-actions[bot]

AI Summary

Enhances debugging capabilities, Codex CLI support, and logging to preserve full request/response history.

Key Highlights

  • X-Channel header support for single-channel debugging
  • Enhanced Codex CLI tool structure support
  • Expanded model priority sorting and error logging

New Features

  • Single-channel debugging header
  • Codex CLI compatibility improvements
  • Enhanced error logging and tool history preservation

Full Release Notes

### ✨ 新功能

- **支持 X-Channel 指定渠道** - 可通过请求头直接定位目标渠道,便于单渠道调试和验证
- **增强 Codex CLI 工具兼容** - Responses 渠道支持新版 Codex 工具结构,并可在不兼容上游中自动转换为可用的工具调用
- **扩充模型优先级排序** - 前端渠道配置覆盖更多 2026-05 主流模型,并保持新模型和高阶模型优先
- **增强上游错误日志** - 错误摘要更完整,便于排查协议和工具结构兼容问题

### 🐛 修复

- **允许工具协议错误跨渠道重试** - 避免第三方上游因工具结构兼容问题阻断后续渠道
- **修正模型映射匹配方向** - 避免短别名误匹配导致模型映射错配
- **修复日志截断乱码** - 多字节字符截断时不再产生乱码
- **保留 Responses 工具历史** - 修复配对工具调用历史、无 session 重放式工具历史丢失的问题
- **修复文件日志缺失全量记录** - 确保日志文件保留完整请求和响应记录

### 🔧 改进

- **统一 Codex 工具兼容开关** - 合并旧配置为 `codexToolCompat`,并自动兼容历史配置
- **优化日志输出方式** - 控制台输出精简可读内容,日志文件保留原始完整 JSON
- **扩展 Responses 工具类型支持** - 保留字符串简写和更多工具类型,减少协议转换丢失信息的情况

---

**Full Changelog**: https://github.com/BenedictKing/ccx/compare/v2.6.83...v2.6.85