Skip to content

Port upstream CodexBar 0.46.0 - #244

Merged
Finesssee merged 15 commits into
mainfrom
port/046-upstream
Jul 30, 2026
Merged

Port upstream CodexBar 0.46.0#244
Finesssee merged 15 commits into
mainfrom
port/046-upstream

Conversation

@Finesssee

@Finesssee Finesssee commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Windows port of upstream CodexBar 0.45.2 → 0.46.0 (steipete/CodexBar v0.46.0).

Added

  • Providers: Qwen Cloud (Individual Token Plans with 5-hour and weekly rolling windows) and ZoomMate (credit status with host failover, cURL/cookie auth, bearer mint).
  • Alibaba Token Plan: Personal/Solo variants for mainland (Bailian) and international (Model Studio) accounts via alibaba_token_plan_region setting.
  • Claude: prepaid credit balance in cost surfaces from cached/manual web sessions.
  • Claude: setting to hide the Daily Routines row (claude_daily_routines_usage_visible, default on).
  • Menu: fractional session-quota estimates on the weekly row ("Estimated: N session quotas left") when session+weekly history qualifies; optional weekly_progress_work_days.
  • Codex: local Workspaces indexing foundation — per-project/session/model usage attribution with a local sidecar index; new codexbar workspaces CLI and desktop snapshot bridge.
  • CLI: config dump redacts stored credentials by default; --show-secrets restores raw output.

Changed

  • Codex local cost scans use the disk cache: unchanged files skipped by mtime/size, grown logs resumed mid-file, 256 KiB line bound — repeat scans are incremental.
  • Automatic tray metric surfaces the highest-used (exhausted) window across providers, preserving per-provider overrides.
  • CLI alias qwen now resolves to Qwen Cloud (use alibaba for the Coding Plan).

Fixed

  • Claude: model-scoped weekly rows above Daily Routines; automatic metric prefers account Weekly over exhausted model carve-outs; learned full-session estimate stays visible while the session window is idle.
  • Amp: subscription plans (e.g. Megawatt) parse into Other/Orb percentage windows instead of a misleading cookie error.
  • Grok: explicit cookie refresh with validated session caching for background reuse.
  • Chutes: quota counts render as detail text instead of being misread as reset schedules.
  • LLMProxy: skip already-elapsed reset times when picking the next reset.
  • Ollama: reuse validated browser sessions across refreshes.

Test evidence

  • Rust: 829 tests passed
  • Tauri: 325 tests passed
  • Frontend: 153 tests passed
  • cargo fmt --check clean
  • cargo clippy clean (rust + tauri crates)
  • Note: occasional PTY flake in local harness; not a regression from this port

Deferred

  • macOS-only shell items remain deferred: WidgetKit, Sparkle, AppKit menu layout, Homebrew, Safari cookie APIs

Commits

Atomic slices (shared files merged where hunks were entangled — settings, providers/mod, bridge, tray_bridge, core/mod):

  1. 9d0fe804 Add prepaid balance to CostSnapshot
  2. 647f7645 Add Qwen Cloud, ZoomMate, and Alibaba Token Plan regions (combined 2–4)
  3. e2f13e14 Parse Amp subscription windows; fix Chutes/LLMProxy/Grok/Ollama
  4. 07a12ac8 Add Claude prepaid balance, Daily Routines toggle, settings (settings fields co-located)
  5. 1fe70905 Redact config dump secrets by default
  6. 09f17884 Wire Codex cost scan disk cache and resume
  7. 837800f6 Add fractional session quota forecast
  8. c2df183f Add Codex Workspaces local indexing foundation (bridge balance/forecast/workspaces types)
  9. 175c45e7 Prioritize exhausted windows and keep idle session estimates
  10. b9deb10c Prepare Win-CodexBar 0.46.0

Reference

Ports steipete/CodexBar v0.46.0.


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

@Finesssee

Copy link
Copy Markdown
Collaborator Author

CUA + CLI proof (0.46.0)

Local verification on branch port/046-upstream (not committed).

Binary

  • target/debug/codexbar-desktop-tauri.exe (branch debug build)

CLI

  • config dump redaction: pass — secrets redacted by default
  • workspaces list: exit 0
  • providers: qwen-cloud and zoommate present in provider list

UI (CUA)

  • ZoomMate row visible in providers
  • Qwen Cloud row visible in providers
  • Claude Daily Routines toggle ON / OFF
  • Alibaba Token Plan region: 4 options
    • China Team
    • International Team
    • China Personal/Solo
    • International Personal/Solo

Proof artifacts (local only — not in repo)

  • Dir: C:/code/Win-CodexBar-release/proof-0.46.0/
  • Contents: report.json + 5 screenshots

Known follow-up

  • ZoomMate icon letter glitch (R instead of Z) — fix tracked separately if still open

@Finesssee

Copy link
Copy Markdown
Collaborator Author

Icon re-proof (post b365874 / 74daa0e)

Prior CUA providers-tab.png was stale (pre-fix binary still showed ZoomMate as red R fallback). Rebuilt debug desktop from HEAD 74daa0eadc3204cef8293b3c760d12f7ae7aa183 and re-shot Providers search only.

Result: PASS

Provider Expected Observed
ZoomMate letter Z, brand blue #0B5CFF-ish ✅ blue Z (not R)
Qwen Cloud letter Q, purple #615CED-ish ✅ branded Q

Local artifacts (not committed)

  • C:/code/Win-CodexBar-release/proof-0.46.0/providers-tab.png — md5 2d4ccbe13e48f883e33acf48490d0f05
  • C:/code/Win-CodexBar-release/proof-0.46.0/providers-qwen.png — md5 c9cb6f29e272381428fa9c058b1ff695
  • C:/code/Win-CodexBar-release/proof-0.46.0/report.jsonicon_reshoot section

Binary

  • path: target/debug/codexbar-desktop-tauri.exe
  • mtime: 2026-07-30T12:16:36 (post-rebuild)
  • HEAD: 74daa0ea (includes ZoomMate Z SVG b365874c + Qwen Cloud registry 74daa0ea)

Prior CLI / Claude routines toggle / Alibaba region checks remain pass in report.json.

@Finesssee
Finesssee merged commit e53abbe into main Jul 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant