Add guardrail for repeated edit_file failures

t-224·WorkTask·
·
·
·Omni/Agent/Engine.hs
Created3 months ago·Updated3 months ago

Description

Edit

Track consecutive edit_file 'old_str not found' failures. After 3-5 failures on the same file, trigger a guardrail stop. This prevents the agent from burning tokens on impossible edits.

Timeline (2)

🔄[human]Open → InProgress3 months ago
🔄[human]InProgress → Done3 months ago