Repository navigation
Releases
Releases · StayPirate/opencode-total-session-cost
1.4.0
What's Changed
Features
- Show cost breakdown toast when clicking or selecting a session in the week view dialog (
/sessions_cost), keeping the dialog open for continued browsing instead of navigating to the session. - Add session cache fallback for accurate cost attribution of past sessions from the week view list.
- Highlight the clicked row immediately upon mouse interaction.
Full Changelog: v1.3.2...v1.4.0
1.3.2
Fixed
- The per-model breakdown now reads every message page instead of only the newest one, so a session past the page size no longer loses its earliest messages and reassigns that spend to the currently selected model.
- Durable events are used only when they cover the whole session cost, so a legacy session resumed on a v2 client falls back to the more complete message history.
- Cost that no step or message can explain is now reported as
unknown/unknowninstead of being guessed onto the currently selected model.
1.3.1
Fixed
- Per-model cost breakdown is now rebuilt from Opencode's durable session event log, so switching model mid-session no longer attributes earlier spend (e.g. Plan mode) to the currently selected model.
- Compaction and revert no longer hide spend from the breakdown, and the model rows always sum to the real session total.
1.3.0
What's Changed
Features
- Add
/sessions_cost(alias/session_costs): a centered, read-only dialog listing the sessions of the last 7 days grouped by day, with the recursive total (session + sub-agents) on each session row and the daily total on each day header. Navigate with the up/down arrows,enterto open a session,escto close. - Right-clicking the cost bar in the prompt header now opens the session costs list, while left-clicking still shows the detailed breakdown toast.
Improvements
- Extract the session day-grouping logic into the pure
costmodule and cover it with tests. - Register the TUI commands through
api.keymap.registerLayerinstead of the deprecatedapi.commandAPI. - Bound the session list request with the
startquery parameter.
Full Changelog: v1.2.1...v1.3.0
v1.1.2
v1.1.1
Release v1.1.1 with provider/model cost breakdown, clickable cost bar, and fixed Task cost classification
v1.0.1
Release version 1.0.1: Added ultra-minimalist gray theme and secured publishing with OIDC.