qwen-code/packages
chinesepowered 3836e7e38c
fix(cli): report a genuine $0.00 cost instead of N/A (#7784)
calculateCost ended with 'total > 0 ? total : null', and callers read
null as "no cost to report" - the stats table prints N/A and hides the
Cost section entirely when no model yields a number.

Testing the total conflated a zero cost with an unknown one. A model the
user deliberately priced at 0 (a free OpenRouter variant, a local Ollama
or LM Studio model) was reported as N/A, and the Cost section vanished
when it was the only model in the session.

Decide on the pricing and the usage before the arithmetic, then return
the total unconditionally. The no-usage case still returns null, which
statsCommand.test.ts documents as deliberate.
2026-07-28 05:34:36 +00:00
..
acp-bridge fix(webui): fall back to history_truncated marker recordId for transcript pagination anchor (#7829) 2026-07-28 04:32:17 +00:00
audio-capture chore(release): v0.21.0 (#7675) 2026-07-24 13:47:34 +00:00
channels fix(release): publish all channel packages, not just channel-base (#7845) 2026-07-27 17:55:08 +00:00
chrome-extension chore(release): v0.21.0 (#7675) 2026-07-24 13:47:34 +00:00
cli fix(cli): report a genuine $0.00 cost instead of N/A (#7784) 2026-07-28 05:34:36 +00:00
core feat: Gate session writer lease behind opt-in (#7894) 2026-07-28 04:37:02 +00:00
cua-driver fix(mcp): add opt-in model payload filtering (#7413) 2026-07-21 09:49:04 +00:00
desktop fix(desktop): scale formatBytes past GB so terabyte sizes don't render as "undefined" (#7623) 2026-07-25 09:21:15 +00:00
mobile-mcp chore(release): v0.20.1 (#7461) 2026-07-22 02:00:22 +00:00
sdk-java fix(sdk-java): Harden daemon transport reliability (#7603) 2026-07-24 04:22:05 +00:00
sdk-python fix(sdk-python): validate max_tool_calls and max_subagent_depth as integers (#7548) 2026-07-23 08:45:13 +00:00
sdk-typescript fix(webui): fall back to history_truncated marker recordId for transcript pagination anchor (#7829) 2026-07-28 04:32:17 +00:00
vscode-ide-companion feat: Gate session writer lease behind opt-in (#7894) 2026-07-28 04:37:02 +00:00
web-shell fix(web-shell): isolate history and session drafts (#7810) 2026-07-28 01:45:52 +00:00
web-templates fix(cli): measure insight days and hours in local time everywhere (#7670) 2026-07-24 15:41:13 +00:00
webui fix(webui): fall back to history_truncated marker recordId for transcript pagination anchor (#7829) 2026-07-28 04:32:17 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00