memorix icon indicating copy to clipboard operation
memorix copied to clipboard

fix request : stdout for opencode

Open jc01rho opened this issue 8 months ago • 2 comments

console.log('[memorix] hook fired:', payload.hook_event_name);

causes

Image

console.error also displaying.

so remove or some how fix.

jc01rho avatar Mar 11 '26 03:03 jc01rho

+1 The hook echo in OpenCode is annoying.

leike0813 avatar Mar 12 '26 12:03 leike0813

Fixed in the upcoming release. Two changes:

  1. Removed all console.log / console.error from the generated OpenCode plugin template. The unHook() function now runs fully silent errors are swallowed (hooks must never break the agent).

  2. If you already have the plugin installed, you'll need to either:

    • Re-run memorix installHooks opencode to regenerate the plugin file, or
    • Manually delete the 3 console.log lines from .opencode/plugins/memorix.js

The fix will be in the next npm release.

AVIDS2 avatar Mar 13 '26 15:03 AVIDS2