Files
oh-my-opencode/src/hooks
kilhyeonjun e0d611aefc revert: remove incorrect claudeCodeHooks override in createHooks, add pre-tool-use tests
Revert the create-hooks.ts change — claudeCodeHooks is already created
in createTransformHooks() with proper config and contextCollector.
The previous commit overwrote it with a degraded instance (empty config,
no contextCollector).

Add 8 unit tests for executePreToolUseHooks covering:
- null/empty config handling
- exit code 2 (deny) and 1 (ask) behavior
- multiple merged hooks: allow continues to next hook (the actual bug)
- deny short-circuits remaining hooks
- modifiedInput propagation between hooks

TDD verified: tests fail with original code, pass with fix.
2026-04-10 10:23:05 +09:00
..