summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-10 00:14:24 -0600
committerAiden Cline <[email protected]>2025-12-10 00:14:24 -0600
commit070ced0b3fb0f69e9b385d22220d2be2e2d238b0 (patch)
tree5448b7700dc57d2856b0272d9f1530d5b3c96ae0 /packages
parentcc3b699823172215c5d2e5ba62076d7585606940 (diff)
downloadopencode-070ced0b3fb0f69e9b385d22220d2be2e2d238b0.tar.gz
opencode-070ced0b3fb0f69e9b385d22220d2be2e2d238b0.zip
fix: revert hook try/catch that surpressed errors
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/plugin/index.ts12
1 files changed, 4 insertions, 8 deletions
diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts
index b45ea912d..b492c7179 100644
--- a/packages/opencode/src/plugin/index.ts
+++ b/packages/opencode/src/plugin/index.ts
@@ -61,14 +61,10 @@ export namespace Plugin {
for (const hook of await state().then((x) => x.hooks)) {
const fn = hook[name]
if (!fn) continue
- try {
- // @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
- // give up.
- // try-counter: 2
- await fn(input, output)
- } catch (e) {
- log.error("failed to trigger hook", { name, error: e })
- }
+ // @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
+ // give up.
+ // try-counter: 2
+ await fn(input, output)
}
return output
}