codeburn/tests/providers
Resham Joshi 354492e500
Some checks are pending
CI / semgrep (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 (macos-latest) (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
Copilot: count every agent round and bill exact credits in VS Code chat sessions (#1752)
* Copilot: count every agent round and exact credits in VS Code chat sessions

Copilot Chat 0.69 keeps only the last model call of an agent request in result.metadata. Read the request's modelTotals (input, cache reads, output over every call) first, then root completionTokens, then metadata. Carry copilotCredits as nanoAiu so plan credits are exact. Bump the copilot parse tag so cached chat sessions re-parse.

modelKeyMatches no longer lets claude-sonnet-4 capture claude-sonnet-4-6.

* Copilot: bill chat-session credits exactly and skip agent-host twins

A chat-session request that records copilotCredits now costs credits x $0.01 through costFromBilling; requests without it stay priced from tokens. A chat session whose id matches a session-state dir is left to the agent-host path so it is counted once.

* Copilot: drop agent-host twins at serve time, rate chat requests one by one, re-derive past days

A chat-session journal request is left out when the same session has billed agent-host usage (session-state calls with tokens or nanoAiu, or session-store rows). Plan credits rate chat-session requests individually, so older requests in a mixed session keep their estimate. DAILY_CACHE_VERSION 75 with copilot pending re-derive so settled days pick up the new counts.
2026-10-13 01:02:04 +02:00
..
amp.test.ts feat: Amp support - read the local thread mirror (#1572) (#1578) 2026-10-02 10:36:05 +02:00
antigravity.test.ts fix(antigravity): fall back to the chat model and map Gemini 3.8 Flash placeholders (#1712) 2026-10-10 11:34:13 +02:00
claude-config-dirs.test.ts fix(claude): discover macOS Claude-3p Cowork sessions (#1579) 2026-10-07 20:30:50 +02:00
claude-cowork-ledger-readonly.test.ts fix(claude): discover macOS Claude-3p Cowork sessions (#1579) 2026-10-07 20:30:50 +02:00
claude-cowork-ledger.test.ts fix(claude): discover macOS Claude-3p Cowork sessions (#1579) 2026-10-07 20:30:50 +02:00
cline-cli.test.ts fix(cline-cli): stop billing cache tokens twice (#1675) 2026-10-07 23:51:10 +02:00
cline.test.ts fix(cline): scan all VS Code variants for task storage 2026-08-04 00:01:57 +03:00
codebuff.test.ts Merge origin/main into feat/codebuff-provider and scope sessionId by channel 2026-05-01 00:14:18 +05:30
codewhale.test.ts perf(cache): shard the session cache per provider 2026-08-16 19:03:12 -07:00
codex-resume.test.ts Price Codex Fast (priority tier) turns at priority rates (#1628) 2026-10-05 12:15:30 +02:00
codex.test.ts fix(codex): mask fork replay records against the parent rollout (#1678) 2026-10-08 00:27:52 +02:00
command-code.test.ts feat(providers): add Command Code (#1658) 2026-10-07 00:18:50 +02:00
copilot-skills.test.ts copilot: extract skill invocations so Skills & Agents populates (#654) (#697) 2026-07-16 12:02:34 -07:00
copilot.test.ts Copilot: count every agent round and bill exact credits in VS Code chat sessions (#1752) 2026-10-13 01:02:04 +02:00
crush.test.ts fix(crush): keep the recorded session cost through the session cache (#1618) 2026-10-04 20:31:42 +02:00
cursor-agent.test.ts fix(cursor-agent): leave Cursor IDE chat transcripts to the cursor provider (#1717) 2026-10-10 07:05:35 +02:00
cursor-bubble-dedup.test.ts Menubar and CLI hardening from multi-agent audit (#257) 2026-05-06 22:15:11 -07:00
cursor-large-db-cap.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
cursor-real-tokens.test.ts fix(cursor): use Cursor's real context tokens for input (#574) (#575) 2026-07-02 04:53:07 +02:00
cursor-workspace-breakdown.test.ts Cursor: per-project breakdown by workspace (closes per-project half of #196) (#296) 2026-05-10 15:35:57 -07:00
cursor.test.ts fix(cache-lock): coalesce heartbeat ticks; make time-sensitive tests deterministic (#1559) 2026-09-25 05:06:43 +02:00
devin-sessions-db.test.ts fix(devin): price SWE-2 at Cognition's list rate (#1674) 2026-10-07 23:33:39 +02:00
devin.test.ts fix(devin): price SWE-2 at Cognition's list rate (#1674) 2026-10-07 23:33:39 +02:00
droid.test.ts Add Droid CLI provider 2026-04-28 20:16:45 +02:00
dsh.test.ts Read DSH session format v4 written by dsh 0.2.0-rc.2 (#1612) 2026-10-05 11:54:55 +02:00
forge.test.ts feat(providers): add forge provider support (#401) 2026-05-26 03:36:57 -07:00
gemini.test.ts Track agent calls across providers (#340) 2026-05-18 05:51:01 -07:00
goose-sync-privacy.test.ts fix(sync): address project privacy review 2026-08-24 20:09:27 +05:30
grok.test.ts fix(grok): read per-request usage from logs/unified.jsonl (#1677) 2026-10-08 00:14:53 +02:00
grokbot.test.ts Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
hermes-ledger.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
hermes.test.ts Find Hermes sessions in Windows local app data (#1617) 2026-10-04 21:01:04 +02:00
ibm-bob.test.ts Add IBM Bob provider with workspace extraction (#316) 2026-05-11 20:54:13 -07:00
kilo-code.test.ts chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
kimi.test.ts fix(models): price kimi-for-coding by the model it served on the call date (#1676) 2026-10-08 00:02:38 +02:00
kimicode.test.ts fix(optimize): stop flagging delivered and editing sessions as low-worth (#1719) 2026-10-10 07:05:47 +02:00
kiro.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
lingtai-tui.test.ts fix(lingtai): harden manifest parsing against wrong-typed fields 2026-07-09 23:48:46 +02:00
mistral-vibe-unified.test.ts Restore usage from Mistral Vibe Unified Harness sessions (#1599) 2026-10-06 21:15:06 +02:00
mistral-vibe.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
mux.test.ts feat(providers): add coder/mux as a datasource (#438) 2026-06-06 03:04:24 +02:00
omp.test.ts Count OMP model_usage side calls (find, judge, cache warming) (#1575) 2026-09-28 18:47:35 +02:00
open-design.test.ts test: isolate the real home on Windows and make the CLI suite pass there 2026-09-02 13:43:57 -07:00
openclaude.test.ts feat(openclaude): OpenClaude CLI provider (#213) 2026-08-04 04:05:25 +03:00
openclaw.test.ts fix(openclaw): read the per-agent sqlite transcript store the 2026-09-01 migration writes (#1526) 2026-09-28 19:17:20 +02:00
opencode-file.test.ts feat(cli): filter usage by billing route and mode (#1486) 2026-09-19 11:32:06 -07:00
opencode.test.ts fix(opencode): Vertex sessions no longer show $0 (#1552) 2026-09-25 00:01:02 +02:00
pi.test.ts fix(models): name dot-form Claude minors and future GPT ids consistently (#1531) 2026-09-28 18:48:21 +02:00
probe-roots-899-census.test.ts test(doctor): pin the OpenClaw empty-root probe, drop the review-note comment 2026-09-07 11:38:24 -07:00
quickdesk.test.ts feat(quickdesk): Amazon Quick Desktop provider, parse ~/.quickwork sessions and metrics (#707) 2026-07-18 00:02:01 +03:00
session-message.test.ts fix: four cost accuracy bugs in export and pricing (#1544) 2026-09-24 15:55:23 +02:00
vercel-gateway.test.ts perf: store the session cache in day pieces (#1550) 2026-09-24 20:45:35 +02:00
vscode-cline-parser.test.ts fix(providers): guard two malformed-input crashes in the parse path 2026-08-04 06:28:41 +03:00
warp.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
zcode.test.ts fix(zcode): attribute PR-linked spend by reading user prompts from the transcript tables (#1581) 2026-10-02 12:13:37 +02:00
zed.test.ts fix(zed): top threads up to the cumulative counter 2026-07-02 05:53:40 +02:00
zerostack.test.ts Add zerostack provider (#519) 2026-06-19 14:44:45 +02:00