Skip to content

OmniProxy v1.2.7

Choose a tag to compare

@github-actions github-actions released this 24 Jul 05:35
· 22 commits to master since this release

v1.2.7 - Codex authorization, accurate usage, and responsive desktop UX / Codex 授权、准确用量与响应式桌面体验

This stable release consolidates the v1.2.7 beta line. It automates Codex browser authorization, protects local configuration from expired credentials, corrects live usage and quota statistics, and improves dashboard responsiveness and update-page behavior.

本正式版整合 v1.2.7 beta 系列改动:自动完成 Codex 浏览器授权,避免过期凭据污染本地配置,修正实时用量与额度统计,并完善仪表盘响应式布局和更新发布页行为。

Features / 新特性

  • Automatic Codex authorization detection: OmniProxy detects the local OAuth callback, exchanges credentials, and imports the authorized account without requiring an extra confirmation action.
    • 自动识别 Codex 授权结果:OmniProxy 会检测本地 OAuth 回调,自动交换凭据并导入授权账号,无需再次手动确认。
  • Refreshable browser login session: The Codex login dialog can invalidate an old PKCE session and generate a fresh authorization link in place.
    • 可刷新的浏览器登录会话:Codex 登录弹窗可直接废弃旧 PKCE 会话并生成新的授权链接。
  • Clearer responsive dashboard: Account health uses an aligned three-column summary, while dashboard cards adapt cleanly across wide, medium, and narrow windows.
    • 更清晰的响应式仪表盘:账号健康状态采用对齐的三栏概览,仪表盘卡片可适配宽屏、中等宽度和窄窗口。

Bug Fixes / 问题修复

  • Expired Codex auth safeguards: One-click configuration refreshes expired credentials before import, skips credentials that cannot be refreshed, and selects the next usable account when available.
    • Codex 过期凭据保护:一键配置会在导入前刷新过期凭据,跳过无法刷新的凭据,并在可用时自动选择下一个正常账号。
  • Accurate WebSocket usage accounting: Long-lived Codex WebSocket sessions count connections and completed-response token usage at the correct lifecycle points and record the actual reported model.
    • 准确的 WebSocket 用量统计:Codex 长连接会在正确生命周期分别统计连接请求和完整响应 token,并记录消息报告的实际模型。
  • Exact and safer quota estimates: Decimal upstream quota percentages are preserved, and weekly cost estimates use conservative thresholds and supported pricing assumptions.
    • 精确且更稳妥的额度预估:保留上游小数额度百分比,周费用预估采用更保守的阈值和有依据的价格口径。
  • Release page action no longer downloads: “打开发布页” uses only the GitHub Release page URL, while installer downloads remain a separate action.
    • 打开发布页不再触发下载:“打开发布页”只使用 GitHub Release 页面地址,安装包下载保持为独立操作。
  • No fixed-width dashboard overflow: The application shell no longer enforces a 1240px minimum width, preventing clipped status information and horizontal overflow.
    • 修复固定宽度溢出:应用外壳不再强制 1240px 最小宽度,避免状态信息裁切和横向溢出。

Breaking Changes / 不兼容更新

  • None / 无

Upgrade Guidance / 升级说明

  • Existing configuration, account pools, request history, billing summaries, and theme state remain compatible with v1.2.6 and the v1.2.7 beta line.
    • 现有配置、账号池、请求历史、费用汇总和主题状态与 v1.2.6 及 v1.2.7 beta 系列保持兼容。
  • Beta users can upgrade directly to v1.2.7. The stable version compares newer than every v1.2.7 beta tag.
    • Beta 用户可直接升级到 v1.2.7;正式版版本顺序高于所有 v1.2.7 beta 标签。
  • The macOS universal DMG remains unsigned and not notarized. Quit OmniProxy before replacing the app in Applications.
    • macOS Universal DMG 仍未签名且未公证;替换 Applications 中的应用前请先退出 OmniProxy。

Refactor & Performance / 重构与优化

  • Consolidated light and dark theme tokens, removed obsolete cascade overrides, and separated dashboard component styles into focused files.
    • 收敛明暗主题变量,移除过时的层叠覆盖,并将仪表盘组件样式拆分为职责明确的文件。
  • Split request counting from token-consumption recording and added a non-blocking OAuth session status API for Wails and the local control API.
    • 拆分请求计数与 token 消耗记录,并为 Wails 和本地控制 API 增加非阻塞 OAuth 会话状态接口。
  • Added regression coverage for auth refresh, callback detection, WebSocket accounting, quota estimates, responsive update actions, and release-page URL selection.
    • 补充凭据刷新、回调检测、WebSocket 统计、额度预估、响应式更新操作和发布页地址选择的回归测试。

Validation / 验证

  • cd OmniProxyBackend && go test -count=1 ./...
  • cd OmniProxyBackend && go vet ./...
  • cd frontend && npm test (65 tests)
  • cd frontend && npm run build
  • cd OmniProxyBackend && wails build
  • node scripts/check-lines.mjs
  • scripts/verify-release-assets.ps1 against v1.2.7-beta.5
  • Windows and macOS universal beta CI
  • v1.2.7-beta.5 Windows install, upgrade, in-app update, and uninstall validation
  • v1.2.7-beta.5 macOS Apple Silicon launch and replacement-install validation
  • git diff --check

Full Changelog / 完整更新日志: v1.2.6...v1.2.7