feat(hooks): add edit-error-recovery hook for handling Edit tool errors (opencode#4718)

- Detects Edit tool errors (oldString/newString mismatches)
- Injects system reminder forcing AI to read file, verify state, apologize
- Includes comprehensive test suite (8 tests)
- Integrates with hook system and configuration schema

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-01-02 21:08:45 +09:00
parent 8d570af3dd
commit e3ad790185
5 changed files with 191 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ export const HookNameSchema = z.enum([
"compaction-context-injector",
"claude-code-hooks",
"auto-slash-command",
"edit-error-recovery",
])
export const BuiltinCommandNameSchema = z.enum([