codeburn/tests/providers
AgentSeal ebf8dd34a5 fix(codex): attribute CLI-wrapped MCP calls (mcp-cli), and re-parse cached sessions (#478)
Users who run MCP tools through a CLI wrapper (e.g. philschmid/mcp-cli)
instead of registering servers natively don't produce Codex
mcp_tool_call_end events; Codex logs a plain exec_command. So their MCP
usage showed only as a shell command and was absent from the MCP
breakdown, even after #513 fixed the native path.

- Recognize `mcp-cli [options] call <server> <tool>` in the exec command
  and also attribute it as mcp__<server>__<tool>. The exec still counts as
  Bash since it genuinely is a shell exec. Flag-tolerant, quote/path/bash-lc
  tolerant, and scoped to the mcp-cli binary (not foo-mcp-cli); only the
  `call` subcommand (a real execution) matches, not info/grep/listing.
- Register `codex` in PROVIDER_PARSE_VERSIONS. session-cache.json serves
  unchanged session files without invoking the provider parser, so the
  codex-cache version bump alone would never re-attribute already-cached
  sessions. This also retroactively repairs #513's native-MCP fix for
  users whose files were cached before it shipped.
- Bump CODEX_CACHE_VERSION 4->5 for the provider-internal layer.

Tested: parse cases (bash -lc wrapper, flags-before-call, argv array,
plus info/grep/foo-mcp-cli negatives), and a mutation-verified cache
regression test that fails without the PROVIDER_PARSE_VERSIONS entry.
ReDoS-checked. Reviewed with a Fable 5 adversarial pass (Codex is down);
its two must-fixes (the cache gap and the flags-before-call miss that
would have missed the reporter's own sessions) are folded in.

Fixes #478
2026-07-10 12:11:59 +02:00
..
antigravity.test.ts fix(antigravity): read current agy antigravity-cli on-disk layout (#541) 2026-06-22 01:08:44 +02:00
claude-config-dirs.test.ts feat(menubar): Claude config selector, hardened (supersedes #635) 2026-07-10 01:44:51 +02:00
cline.test.ts Add Cline provider 2026-05-12 00:31:41 +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
codex.test.ts fix(codex): attribute CLI-wrapped MCP calls (mcp-cli), and re-parse cached sessions (#478) 2026-07-10 12:11:59 +02:00
copilot.test.ts fix(copilot): content-derived JetBrains dedup keys; isolate the new env var in tests 2026-07-05 15:36:49 +02:00
crush.test.ts fix: fix and improve test isolation and collision with environment (#530) 2026-06-20 13:42:10 +02:00
cursor-agent.test.ts fix(cursor-agent): ingest workspace-less CLI transcript layout (#542) 2026-06-22 00:55:01 +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(cursor): map composers to workspace via composer.composerHeaders 2026-07-02 17:51:23 +00:00
devin.test.ts fix(devin): report friendly GPT model names with effort tier (#585) 2026-07-01 16:01:49 +02:00
droid.test.ts Add Droid CLI provider 2026-04-28 20:16:45 +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
grok.test.ts feat(providers): add Grok Build provider (#521) 2026-06-19 17:21:41 +02:00
hermes.test.ts fix(hermes): use sessions.cwd, flag estimated cost, propagate SQLITE_BUSY 2026-06-21 23:50:10 +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 fix(test): kilo-code tests fail on machines with KiloCode installed 2026-06-03 01:03:39 +02:00
kimi.test.ts Add Kimi provider 2026-05-11 19:02:28 +03:00
kiro.test.ts feat(kiro): add CLI tool-name mappings and MCP passthrough 2026-07-06 10:14:44 -03:00
lingtai-tui.test.ts fix(lingtai): harden manifest parsing against wrong-typed fields 2026-07-09 23:48:46 +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 Merge main into feat/omp-support-model-aliases 2026-04-21 03:16:28 -07:00
open-design.test.ts feat(providers): add open-design provider for per-model usage tracking (#559) 2026-06-28 19:17:23 +02:00
openclaw.test.ts Add OpenClaw, Roo Code, and KiloCode providers (#175) 2026-04-28 09:24:14 -07:00
opencode-file.test.ts Populate OpenCode skills and subagents breakdowns (#557) 2026-06-28 19:46:09 +02:00
opencode.test.ts Fix OpenCode provider yielding zero usage for newer schema variants (#394) 2026-05-24 10:39:46 -07:00
pi.test.ts fix(pi): classify native skill loads as Skill, not Read (#588) (#590) 2026-07-01 15:57:31 +02:00
roo-code.test.ts Add OpenClaw, Roo Code, and KiloCode providers (#175) 2026-04-28 09:24:14 -07:00
vercel-gateway.test.ts fix(vercel-gateway): route network sources through aggregation 2026-06-10 00:09:31 +02:00
vscode-cline-parser.test.ts Add VSCodium storage discovery for VS Code-family providers (#233) 2026-05-24 02:32:32 -07:00
warp.test.ts feat: add Warp provider adapter (#350) 2026-05-21 00:19:53 -07:00
zcode.test.ts feat(providers): add ZCode (z.ai GLM-5.2) usage provider (#537) 2026-06-20 21:37:32 +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