Repository navigation
Commit 27b790e
committed
fix(web/shell): #107 review — a Stop during the agent's review says that what it applied is in Keep/Undo
The bug: an agent run stopped (Stop, or agent.js's commandTimeout) while levelcode-ai's review of its
file changes is going on is settled at once, and the review keeps what it had applied before the Stop.
The note the model and the agent's tab got said "it may still apply some of them, and how many it applied
is not known", but not where those changes are, so the model could not tell the user what to look at,
and the prompt (fixed in the commit before) had told it nothing changes.
The fix: the note ends "Any it applied are in the Keep/Undo review." It is said only in the review phase,
which only an agent run (one with `commit`) has; the check and the writing phases are unchanged. The
mutation table's anchor for this note follows it (the mutation is still caught by shell-runtime-commit).
Tests: shell-runtime-commit.test.js "Stop while the agent's review is going on ends the run AT ONCE" and
"the same for an agent that is killed while its review is going on, and for a worker that died after
done on top of it" now require the sentence. Both fail on the unfixed note and pass now.1 parent e37ec59 commit 27b790e
3 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
| 864 | + | |
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | | - | |
| 1321 | + | |
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
| |||
0 commit comments