Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `agent --json` and `engineer --json` report `status: error` (`engine_failure`) when the run ends without writing its client, instead of `ok` with a `script_path` that does not exist.
- Playwright MCP prompt: `browser_run_code` is now `browser_run_code_unsafe`, and the nonexistent `browser_scroll` tool is no longer listed.
- The Claude SDK message buffer is raised to 32 MB, so a large screenshot no longer aborts a run.
- `list` and `show` report the cost of Claude, Copilot and Cursor runs. They used to read only `total_cost` or `cost`, while those engines record `estimated_cost_usd`, so the cost was always empty.

### Security
- Raise security minimums to aiohttp >=3.14.4, certifi >=2026.10.19, multidict >=6.9.1, OpenTelemetry API >=1.45.1, PyJWT >=2.15.0 and urllib3 >=2.8.0, and lock the patched versions. certifi drops the emSign root CAs whose intermediate keys were compromised.
Expand Down
5 changes: 3 additions & 2 deletions src/reverse_api/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,8 +2289,9 @@ def _get_run_details(run: dict) -> dict:
local_path = f"./scripts/{subdir.name}/"
break

usage = run.get("usage", {})
cost = usage.get("total_cost", usage.get("cost"))
# The engines record estimated_cost_usd; OpenCode runs and older entries carry cost or total_cost.
usage = run.get("usage") or {}
cost = next((usage[key] for key in ("estimated_cost_usd", "total_cost", "cost") if usage.get(key) is not None), None)

return {
"run_id": run_id,
Expand Down