Commit 357fe59
committed
Fix get_changed_files_prompt to return ALL staged files
The function was incorrectly subtracting the baseline files from the
current staged files, which meant modified files were never detected
(they appear in both sets and get subtracted out).
Now the function simply returns ALL files with staged changes, which
is what trigger/safety, set, and pair mode rules need to detect file
modifications during the agent response.
The baseline file is only used by get_created_files_prompt() to detect
truly NEW files for created: mode rules.
This completes the fix for the created mode rules bug - both issues
are now resolved:
1. Baseline captures ALL tracked files (not just changed)
2. Changed files detection returns ALL staged files (not just new)1 parent 5f96ca7 commit 357fe59
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
204 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
| |||
214 | 221 | | |
215 | 222 | | |
216 | 223 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
0 commit comments