litellm/tests/claude_code
Cursor Agent d982aebe68 fix(cli_driver): place extra_args before prompt positional
Bugbot flagged that `run_claude` placed the prompt as cmd[7] and then
appended extra_args after it. `claude --print` takes the prompt as the
final positional argument; flags appearing after it (e.g.
`--allowed-tools Bash`, `--image <path>`) are swallowed by the prompt
parser, which silently breaks the tool_use and vision cells.

Build the flag list first, then append the prompt last. Add a unit
test that pins the ordering.

Co-authored-by: Mateo Wang <mateo-berri@users.noreply.github.com>
2026-05-06 23:27:14 +00:00
..
_builder_unit_tests RALPH: fix compat matrix - Azure now hosts Claude via Microsoft Foundry 2026-05-06 23:27:14 +00:00
_driver_unit_tests fix(cli_driver): place extra_args before prompt positional 2026-05-06 23:27:14 +00:00
_pr_gate_unit_tests RALPH: compat matrix slice 3 - wire PR gate in CircleCI (#26479, PRD #26476) 2026-05-06 23:27:05 +00:00
basic_messaging_non_streaming compat-matrix: pass Vertex AI + Azure Foundry creds to PR-gate proxy and stop logging api_key 2026-05-06 23:27:14 +00:00
basic_messaging_streaming style: reformat test files 2026-05-06 23:27:14 +00:00
cron_vm fix: clear compat collector per session and set LITELLM_MASTER_KEY for cron proxy 2026-05-06 23:27:14 +00:00
extended_thinking style: reformat test files 2026-05-06 23:27:14 +00:00
prompt_caching_5m style: reformat test files 2026-05-06 23:27:14 +00:00
tool_use style: reformat test files 2026-05-06 23:27:14 +00:00
vision style: reformat test files 2026-05-06 23:27:14 +00:00
__init__.py RALPH: tracer-bullet for Claude Code compatibility matrix (#26477, PRD #26476) 2026-05-06 23:27:05 +00:00
cli_driver.py fix(cli_driver): place extra_args before prompt positional 2026-05-06 23:27:14 +00:00
conftest.py fix(compat): skip writing compat-results.json when no compat tests ran 2026-05-06 23:27:14 +00:00
manifest.yaml RALPH: compat matrix slice 5 - add remaining 5 v0 features (full 6x5 grid) (#26481, PRD #26476) 2026-05-06 23:27:14 +00:00
matrix_builder.py RALPH: tracer-bullet for Claude Code compatibility matrix (#26477, PRD #26476) 2026-05-06 23:27:05 +00:00
pr_gate_version_resolver.py RALPH: compat matrix slice 3 - wire PR gate in CircleCI (#26479, PRD #26476) 2026-05-06 23:27:05 +00:00
sample_compatibility-matrix.json RALPH: fix compat matrix - Azure now hosts Claude via Microsoft Foundry 2026-05-06 23:27:14 +00:00
test_config.yaml style: reformat test files 2026-05-06 23:27:14 +00:00