codeburn/scripts
Resham Joshi f846b63097
Some checks failed
CI / semgrep (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
Tests / vscode (push) Waiting to run
macOS Menubar CI / test (push) Has been cancelled
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
fix(copilot): stop billing cached tokens twice on OTel spans (#1830)
* fix(copilot): stop billing cached tokens twice on OTel spans

VS Code Copilot Chat writes gen_ai.usage.input_tokens on agent-traces.db
spans as the full prompt, cache reads and writes included. The OTel parser
passed it to calculateCost as uncached input, so every cached token was
billed at the input rate on top of its cache rate. The parser now subtracts
the cache counts the way the chatSessions path does, and keeps an input
below them as written.

Bumps the copilot parse version so cached OTel calls re-parse. Calls whose
spans the extension already pruned keep the old input.

* test(upgrade-path): expect the copilot OTel cache subtraction across the bump

The parse-version bump re-parses the surviving agent-traces.db spans with
the cache counts taken out of input, so input and cost drop by design while
the pruned calls keep the 0.9.20 figure. Calls, output and cache reads stay
exact; input must drop by exactly the cache counts of the surviving
cache-inclusive spans, and cost must drop.
2026-11-02 20:26:36 +01:00
..
perf Rename the compare-periods demo fixture generator 2026-09-12 13:43:24 -07:00
release-acceptance test: add repeatable release acceptance ledger (#1164) 2026-08-28 15:02:07 -07:00
upgrade-path fix(copilot): stop billing cached tokens twice on OTel spans (#1830) 2026-11-02 20:26:36 +01:00
bundle-litellm.mjs fix(pricing): price Mistral Large 4 at its preview rate until LiteLLM lists it (#1656) 2026-10-06 21:00:51 +02:00
sign-plugin.mjs fix(plugins): codepoint-ordered signature canonicalization; sign fails loudly on unreadable files 2026-08-28 05:52:36 -07:00
slowest-tests.mjs 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
smoke-plugin-socket.mjs feat(plugins): ed25519 release-key verification and plugin add/remove (9b) 2026-08-28 00:30:43 -07:00