Commit f0fef72
fix: include review context when custom fix instructions are provided (#395)
## Summary
- When a user provides custom instructions via Shift+F in the TUI fix
modal, the custom prompt was completely replacing the review context
instead of being appended to it
- The fix agent received only the user's short instructions with no
knowledge of what the review actually found, causing it to search
aimlessly and eventually give up
- Custom instructions are now combined with the review findings via
`buildFixPromptWithInstructions`, so the agent sees both the original
review output and the user's additional guidance
Closes #387
## Test plan
- [x] New test: `"custom prompt includes review context"` verifies
stored prompt contains both review output and custom instructions
- [x] All 3521 existing tests pass
- [ ] Manual: Shift+F on a review, enter custom instructions, verify
agent log shows review findings in the prompt
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7fa5c85 commit f0fef72
2 files changed
+62
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1901 | 1901 | | |
1902 | 1902 | | |
1903 | 1903 | | |
1904 | | - | |
1905 | | - | |
| 1904 | + | |
| 1905 | + | |
1906 | 1906 | | |
1907 | 1907 | | |
1908 | 1908 | | |
| |||
1943 | 1943 | | |
1944 | 1944 | | |
1945 | 1945 | | |
1946 | | - | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
1947 | 1951 | | |
1948 | 1952 | | |
1949 | 1953 | | |
| |||
2154 | 2158 | | |
2155 | 2159 | | |
2156 | 2160 | | |
2157 | | - | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
2158 | 2168 | | |
2159 | 2169 | | |
2160 | | - | |
2161 | | - | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
2162 | 2176 | | |
2163 | 2177 | | |
2164 | 2178 | | |
2165 | 2179 | | |
2166 | 2180 | | |
2167 | 2181 | | |
2168 | 2182 | | |
| 2183 | + | |
2169 | 2184 | | |
2170 | 2185 | | |
2171 | 2186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
508 | 549 | | |
509 | 550 | | |
510 | 551 | | |
| |||
0 commit comments