fix(ai): filter target-dependent optional costs - #7110
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthrough
ChangesDeferred Target Validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/engine/src/ai_support/context.rs`:
- Around line 371-494: Move the regression test
decision_contract_filters_optional_cost_that_leaves_no_legal_targets from
context.rs into the appropriate crates/engine/tests/integration/ test module,
preserving both reach-guard assertions and its existing production cast/contract
behavior. Register the new integration test module through
tests/integration/main.rs as required.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4b51ab31-9b08-4557-a295-d94928e12540
📒 Files selected for processing (1)
crates/engine/src/ai_support/context.rs
|
Generated for head Parse changes introduced by this PR✓ No card-parse changes detected. |
Summary by CodeRabbit