Commit 69f37a7
test: fix agent instruction to demonstrate full on_stop hook cycle
Updated the example to:
- Allow agent to fix errors when hook denies (instead of preventing fixes)
- Increased max_runs from 5 to 10 to give agent time to fix issues
The example now demonstrates the complete cycle:
1. Agent creates broken file
2. Stop hook denies with feedback
3. Agent fixes the issue
4. Agent finishes successfully
Co-authored-by: openhands <openhands@all-hands.dev>1 parent 071702b commit 69f37a7
File tree
1 file changed
+3
-3
lines changed- examples/02_remote_agent_server
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments