Skip to content

v0.2.0 — Codex CLI Support & Message Detail

Choose a tag to compare

@imneov imneov released this 10 Apr 03:38
· 33 commits to main since this release

What's New

🆕 Codex CLI Support

  • Reads session data from ~/.codex/sessions automatically
  • Calculates cost from OpenAI model pricing (gpt-4.1-codex, codex-mini, etc.)
  • [C] / [X] source badges in the Sessions list to distinguish Claude Code vs Codex CLI
  • --source all|claude|codex flag to filter which tool's data is shown
  • Per-source stats in the Overview tab when --source all (default)

🔍 Message Detail (on-demand)

  • Press Enter on any message in Session Detail to load full content from disk
  • Shows User Message, Tool Calls (with pretty-printed JSON input), Tool Results, Assistant Response, and Thinking blocks
  • Falls back to cached prompt when the session file isn't on this machine (e.g. data from another device)

🌐 Leaderboard Improvements

  • Claude Code and Codex CLI tracked on separate leaderboards at claude-top.a2d2.dev
  • Upload success now shows per-source rank: Claude Code 排名:#4/5 and Codex CLI 排名:#1/1
  • Upload confirmation dialog breaks down costs by source when both are present
  • API versioned: new clients use /api/v2/upload; old clients continue working on /api/upload

📊 Chart Improvements

  • X-axis now shows intermediate ticks (up to 6 evenly spaced), not just endpoints
  • Cross-midnight sessions automatically switch to MM-DD HH:MM label format to avoid ambiguity

⌨️ UX Fixes

  • o is now an alias for , to open Settings
  • Settings key moved from s to ,/o to avoid conflict with sort
  • Cursor row background no longer causes the Directory column to wrap to a new line

Bug Fixes

  • Fixed upload returning HTTP 500 due to D1 schema UNIQUE constraint mismatch after migration
  • Fixed message detail view showing session list instead of content after pressing Enter
  • Fixed dangling pointer bug in JSONL parser (byUUID map built after all appends)
  • Fixed Codex sessions showing only error without displaying the cached prompt
  • Fixed Codex JSONL parser to match actual Codex CLI session format
  • Fixed CWD extraction for Codex sessions

Breaking Changes

None. Old CLI versions continue uploading to /api/upload with full backward compatibility.

Upgrading

npx @a2d2/claude-top@latest
# or
npm install -g @a2d2/claude-top

Full Changelog: v0.1.5...v0.2.0