usage

usage 0.30.2

Tools and page contents
On this page

New 6

01

Codex status lines install cleanly on dotted and subtable configs

Codex status lines now install and remove reliably even when config.toml lacks a bare [tui] header. Configurations declaring tui solely through [tui.*] subtables or top-level dotted keys previously caused setup and removal routines to write nothing while falsely claiming success. Helper functions _insert_table_line(), _remove_table_line(), and _replace_table_line() now support both config structures, parse and validate every proposed edit with tomllib.loads, and raise a clear failure when no change can be made safely. ⟦It is like an electrician inspecting a breaker box: wiring connections correctly whether the label sits on the main switch or individual branch circuits, testing voltages before power-up, and flagging faults instead of pretending everything is installed.⟧

Original changelog

**Codex status lines now install and remove correctly when config.toml has no bare [tui] header.** Configurations that declare tui only through [tui.*] subtables or top-level dotted keys previously made the setup and unsetup paths silently write nothing while reporting success. _insert_table_line(), _remove_table_line(), and _replace_table_line() now handle both forms, validate every candidate with tomllib.loads, and report failure when no change can be safely made.

02

Windows builds point hidden imports to current installer modules

Windows build scripts now direct their hidden import flags to the current installer module paths. The v0.29.37 update restored the missing wintray.app and tui.app entry points; after a separate code refactor, scripts/build_windows.ps1 still pointed to session_hooks and setup_hook as obsolete top-level modules. The packaged executable was never broken because main.py imports both statically, but the outdated flags were dead configuration of the exact kind that previously caused broken v0.29.34–36 builds. They now properly specify installer.session_hooks and installer.setup_hook, enabling PyInstaller to diagnose any future omissions. ⟦It is like updating warehouse addresses on a shipping checklist: keeping the registry accurate ensures the system catches a missing crate before trucks leave the dock.⟧

Original changelog

**Windows builds now point their hidden imports at the installer modules' current paths.** The v0.29.37 fix restored the missing wintray.app and tui.app entry points; after a separate refactor, scripts/build_windows.ps1 still named session_hooks and setup_hook as obsolete top-level modules. The bundle was never broken — main.py imports both statically — but the flags were dead configuration of exactly the kind that shipped the unusable v0.29.34–36 builds. They now name installer.session_hooks and installer.setup_hook, so PyInstaller can diagnose a future omission.

03

Claude cost totals add advisor iterations and one-hour cache writes

Claude cost totals now accurately capture advisor iterations and one-hour cache write expenses. Claude usage parsers now inspect usage.iterations and usage.cache_creation.ephemeral_1h_input_tokens, creating separate breakdown rows solely for advisor_message iterations to avoid double-counting regular turns. One-hour cache writes are priced at twice the base input token rate, and the history cache schema version has been bumped so past sessions are reparsed automatically. ⟦It is like an accounting firm updating its audit ledgers: billing special advisor consults and short-term secure storage at double rates, while auditing archived receipts to guarantee nothing is missed or duplicated.⟧

Original changelog

**Claude cost totals now include advisor iterations and one-hour cache writes.** The Claude parsers now read usage.iterations and usage.cache_creation.ephemeral_1h_input_tokens; only advisor_message iterations get separate entries, avoiding double-counting ordinary messages. One-hour cache writes are priced at twice the base input rate, and the history cache schema is bumped so existing entries are reparsed.

04

Contribution guides and localized docs move to dedicated folders

⟦Like a library tidying its lobby: filing reader policies into administrative offices and shelving multilingual guides in study rooms so the entrance stays clutter-free with clear signposts.⟧ The repository root has been cleaned up and reorganized. Public contribution guidelines and security policies have been relocated into .github/. Multilingual README documentation and changelog history files are now consolidated under docs/. This housekeeping cleans up the root directory and updates all internal navigation links across the project.

Original changelog

Moved public contribution and security guides to .github/ and localized README and changelog files to docs/, cleaning up the repository root and updating all links.

05

Simplified Chinese, Japanese, and Korean READMEs backfill Grok CLI

Readers consulting localized documentation will now find complete coverage for the Grok CLI card. The Simplified Chinese, Japanese, and Korean README files previously missed mentions of the Grok card in their feature lists, the Hide Sections toggle documentation, and the provider comparison tables. This update backfills all three missing entries across all three translations. ⟦It is like updating international product catalogs: reprinting feature summaries, accessory switches, and comparison charts for localized editions so every market receives identical documentation.⟧

Original changelog

Backfilled the Grok CLI card into the Simplified Chinese, Japanese and Korean READMEs, which had missed the feature list entry, the Hide Sections list and the comparison-table row.

06

Bump PyObjC to 12.2.2 and ruff to 0.16.4 across dependency updates

Project dependencies and linting toolchains have been upgraded to their latest releases. This update bumps the macOS system bridge PyObjC to 12.2.2 and the static analysis linter ruff to 0.16.4. By consolidating these version bumps into a single lockfile commit, the release cleanly resolves five separate dependency update requests at once. ⟦It is like factory maintenance consolidating five separate work orders into one shift, upgrading control circuits and calibrating measurement tools in a single scheduled pass without recurring downtime.⟧

Original changelog

Bumped PyObjC to 12.2.2 and ruff to 0.16.4, closing five separately raised dependency updates in a single lockfile change.

Fixed 3

07

Oversized panels scale down to fit screen instead of clipping

⟦Like a camera automatically zooming out to wide-angle when capturing a tall skyscraper, fitting the entire building proportionally into the viewfinder instead of slicing off the roof.⟧ When a popover grows too tall for the screen, it now scales down proportionally rather than getting clipped. Previously, clamp_content_height() capped height strictly to the visible screen frame, leaving any lower rows unreachable and invisible. The new panels/panel_scale.py module computes a fit scale that stays above MIN_PANEL_SCALE, and macOS's PopoverViewController.applyPanelScale() together with Windows's _WindowsTrayController._apply_panel_zoom() apply it across the entire panel using window.usageApplyPanelZoom().

Original changelog

**Panels that are too tall for the screen now scale down instead of clipping.** clamp_content_height() used the visible frame as its ceiling, leaving rows beyond that height unreachable. panels/panel_scale.py now calculates a fit scale, no lower than MIN_PANEL_SCALE, and macOS's PopoverViewController.applyPanelScale() and Windows's _WindowsTrayController._apply_panel_zoom() apply it to the whole panel through window.usageApplyPanelZoom().

08

Double-clicked macOS app toggles login items safely with UTF-8

⟦Like a customs inspector who once defaulted to English-only and rejected any foreign package, now equipped with a universal dictionary to replace unreadable symbols and keep shipments moving.⟧ Toggling login items on macOS no longer fails when the app is launched via double-click. Without the LANG environment variable, subprocess.run(..., text=True) defaulted to ASCII, causing a UnicodeDecodeError whenever launchctl or gh outputs contained non-ASCII characters. These process outputs are now explicitly parsed using UTF-8 encoding, safely substituting replacement characters for any invalid byte sequences.

Original changelog

**Toggling the macOS login item no longer fails when the app was opened by double-clicking.** Without LANG, subprocess.run(..., text=True) used ASCII and could raise UnicodeDecodeError while reading launchctl or gh output containing non-ASCII text. Those reads now explicitly use UTF-8 with replacement for invalid bytes.

09

Dragging Grok card on Windows moves panel consistently with others

Dragging the Grok card in the Windows tray now moves the entire panel smoothly, just like the other three provider cards. The tray's WebKit shim converts empty space on quota cards into native pywebview drag handles, but its element selector previously named only Claude, Codex, and Antigravity. As a result, dragging Grok fell through to the shared card-reordering logic, causing the fourth card to reorder itself rather than moving the window. The drag selector now includes all four providers, matching behavior already established in panel_core.js on macOS. ⟦It is like a control board with four grab handles: three shifted the entire deck while the fourth slipped because it missed a grip pad; outfitting all four ensures consistent handling everywhere.⟧

Original changelog

**Dragging the Grok card no longer moves the panel differently from the other three on Windows.** The tray's WebKit shim turns a quota card's empty area into a native pywebview drag region, but its selector listed only Claude, Codex and Antigravity. Grok fell through to the shared card-reorder handler instead, so the same gesture that moved the window from the first three cards did something else from the fourth. The selector now matches all four, as panel_core.js already did on macOS.