feat: add --rerun flag to rerun optimization from stored trace - #1919
Conversation
Adds --rerun <trace_id> CLI flag that passes rerun_trace_id through all AI service client methods, allowing endpoints to return stored LLM results instead of making new calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @mohammedahmed18's task in 3m 12s —— View job PR Review Summary
Prek Checks✅
Code ReviewClassification: SMALL — clean parameter threading, no complex logic. Findings: No bugs, no security issues, no breaking API changes. Observations:
Duplicate DetectionNo duplicates detected. The Test CoverageSkipped (SMALL PR). codeflash-ai[bot] Optimization PRsPRs #1895, #1891, and #1890 all have CI failures (unit-tests, JS optimization tests, tracer-replay, java-tracer-e2e). The same checks fail identically across all three PRs targeting different base commits, indicating pre-existing failures on Last updated: 2026-03-27T16:20Z |
Summary
--rerun <trace_id>CLI flag that passesrerun_trace_idthrough all AI service client methods (optimize_code,optimize_python_code_line_profiler,generate_regression_tests,optimize_code_refinement,code_repair)Test plan
codeflash --rerun <existing_trace_id> --file <path> --function <name> --server localagainst local aiservice with the companion PR deployed🤖 Generated with Claude Code