Commit f664385
authored
🤖 refactor: make file edit tool warnings more prominent (#502)
## Problem
Agents assume file edits succeed and proceed with dependent operations
(commits, pushes, builds) before tool results return. During streaming,
the agent generates optimistic text like "Now I'll push..." before edit
results arrive. When asked later, the agent knows about the failure
(it's in context), but the damage is done.
## Solution
Move the critical warning to the **first line** of all file edit tool
descriptions with a 1 parent 4ab5406 commit f664385
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments