55Single-binary, cross-platform TUI for:
66
77- Local Codex usage stats (last 7/30 days, chart, top models) by scanning ` CODEX_HOME/sessions ` .
8+ - Local session-history browser grouped by project path, with session titles and prompt previews.
89- Live account limits/credits by spawning ` codex app-server ` and calling ` account/rateLimits/read ` .
910
1011See ` CHANGELOG.md ` for release history.
1112
1213<img width =" 1647 " height =" 861 " alt =" Dkh7CxLgx7 " src =" https://github.com/user-attachments/assets/edec765d-0924-493b-8c10-cb32bca867a9 " />
1314
14- ## Release 0.3.2
15+ ## Release 0.3.3
1516
17+ - Merged the session-history browser into the main ` comon ` TUI.
18+ - Added runtime screen switching between Usage and Session history with ` s ` / ` F2 ` .
19+ - Added ` --read ` to start on the Session history screen.
20+ - Added ` --sessions-dir ` and ` --print-sessions-dir ` for browsing alternate Codex session trees.
1621- Added incremental session parsing with persisted offsets and parser state in ` comon.db ` .
1722- Reduced restart regressions: unchanged files outside current scan plan now stay visible via cache.
1823- Fixed full backfill behavior: ` --full-scan --scan-time-budget-ms 0 ` now forces a full reparse and cache refresh.
19- - Fixed workspace startup behavior: non-repo launches show ** All workspaces** and do not reuse a stale last workspace filter.
24+ - Changed default workspace scope: ` comon ` without ` --project ` now always shows ** All workspaces** .
25+ - Fixed workspace startup behavior: no stale last workspace filter is restored when no explicit project is provided.
2026- Added ` --scan-time-budget-ms ` for bounded per-refresh parse time (` 0 ` disables budget).
2127- Added ` --max-jsonl-line-kib ` to cap parsed line size without hard-dropping large files.
2228- Added cache DB schema migration (` v1 -> v2 ` ) for offset/parser-state fields.
@@ -32,23 +38,23 @@ See `CHANGELOG.md` for release history.
3238
3339## Run
3440
35- When started inside a git repository , ` comon ` auto-detects the repo root and:
41+ By default , ` comon ` shows usage for ** All workspaces ** (regardless of current directory).
3642
37- - Filters usage stats to that project
38- - Uses it as the default working directory for ` codex app-server `
43+ Press ` s ` / ` F2 ` at runtime to switch between the Usage and Session history screens.
3944
40- If started outside a git repo, usage is shown as ** All workspaces ** .
45+ Use ` --project <path> ` (or ` --workspace <path> ` ) to filter usage stats to a specific git repo .
4146
42- If you start outside a git repo but pass ` --cwd ` (or ` --project ` ) pointing inside a git repo,
43- ` comon ` will auto-detect the git root from that path.
47+ If ` --project ` points to a non-git directory, ` comon ` falls back to ** All workspaces** .
4448
45- If ` --cwd ` (or ` --project ` ) points to a non-git directory, ` comon ` shows ** All workspaces**
46- even when launched from inside a git repo.
49+ ` --cwd ` controls where ` codex app-server ` is launched and does not change usage scope.
4750
4851``` bash
4952# If installed (recommended):
5053comon
5154
55+ # Start directly on the Session history screen:
56+ comon --read
57+
5258# Or run from the repo without installing:
5359cargo run --release
5460```
@@ -58,8 +64,11 @@ Common flags:
5864- ` --codex-home <path> ` : override CODEX_HOME (default: ` $CODEX_HOME ` or ` ~/.codex ` )
5965- ` --comon-home <path> ` : override COMON_HOME for comon state/cache files (default: ` $COMON_HOME ` or ` ~/.comon ` )
6066- ` --print-config-path ` : print effective comon config path and exit
67+ - ` -r ` / ` --read ` : start on the Session history screen
68+ - ` --sessions-dir <path> ` : override the Codex sessions directory used by the Session history screen
69+ - ` --print-sessions-dir ` : print effective sessions directory and exit
6170- ` --codex-bin <path> ` : override Codex CLI binary (default: ` codex ` )
62- - ` --cwd <path> ` : directory to launch ` codex app-server ` in (default: current directory)
71+ - ` --cwd <path> ` : directory to launch ` codex app-server ` in (default: current directory; does not change usage scope )
6372- ` --project <path> ` / ` --workspace <path> ` : filter usage stats to a specific project/workspace (also becomes default ` --cwd ` if ` --cwd ` not set)
6473- ` --usage-days <n> ` : days to scan for usage (clamped 1..=90; default from config)
6574- ` --refresh-usage-secs <n> ` : usage refresh interval in seconds (default from config)
@@ -119,10 +128,12 @@ comon --scan-time-budget-ms 1500 --max-jsonl-line-kib 512
119128- ` Tab ` Toggle data (Tokens/Time/Runs)
120129- ` w ` Toggle timeframe (Week/Month)
121130- ` f ` Toggle layout (Horz/Vert)
122- - ` r ` / ` F5 ` Refresh now (usage + limits)
131+ - ` s ` / ` F2 ` Switch between Usage and Session history
132+ - ` r ` / ` F5 ` Refresh current screen
123133- ` ? ` Help overlay
124134- ` Esc ` / ` q ` Quit
125135- ` Enter ` / ` y ` Continue past "no sessions found" warning (when shown)
136+ - Session history: ` Up ` / ` Down ` / mouse wheel navigate, ` Enter ` / ` Right ` open project sessions, ` Backspace ` / ` Left ` / ` Esc ` go back
126137
127138## Build from source
128139
0 commit comments