Skip to content

Commit ee9352a

Browse files
committed
fix: use stdin session cost, remove JSONL calculation, harden hook bypass
1 parent 9a76cb5 commit ee9352a

2 files changed

Lines changed: 13 additions & 445 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ All notable changes to this project will be documented in this file.
55
## [1.15.2] - 2026-04-04
66

77
### Fixed
8-
- **$0.00 cost display**: Use `cost.total_cost_usd` from stdin JSON for real-time session cost; daily cost already uses JSONL self-calculation (no ccusage dependency)
8+
- **Session cost from stdin**: Replaced all daily cost self-calculation (JSONL scanning, background refresh, cost cache) with simple `cost.total_cost_usd` read from stdin JSON -- zero I/O, real-time session cost
99
- **Delegation hook subagent deadlock**: Expanded subagent bypass to check `CLAUDE_AGENT_ID` and `CLAUDE_SCRATCHPAD_DIR` in addition to `CLAUDE_PARENT_SESSION_ID`; added redundant safety net inside `main()`; normalized `CLAUDE_PROJECT_DIR` path resolution with `Path.resolve()`
1010

11+
### Removed
12+
- `_find_todays_session_files()`, `_sum_session_cost()`, `_cost_from_usage()`, `fetch_costs_raw()`, `spawn_background_refresh()`, `load_cost_cache()`, `save_cost_cache()`, `is_cache_valid()`, `_is_refresh_locked()` -- all replaced by stdin session cost
13+
- Cost cache constants (`COST_CACHE_FILE`, `COST_CACHE_TTL_SECONDS`, `COST_REFRESH_LOCK`) and lock file logic
14+
- `time` import (no longer needed)
15+
1116
## [1.15.1] - 2026-04-04
1217

1318
### Fixed

0 commit comments

Comments
 (0)