Skip to content

v0.1.2

Choose a tag to compare

@kipyin kipyin released this 20 Jul 17:14
· 61 commits to main since this release

Fixed

  • Annotate tool results when Hypa rewrites a bash command. tool.execute.before mutates output.args.command silently, so OpenCode would hand the LLM a tool result whose title shows the rewritten command (hypa git log …) with no marker that a plugin changed it. The LLM then rationalized the prefix as its own typo — e.g. apologizing for an "accidentally prefixed" command that was actually injected by Hypa.

    This release registers a tool.execute.after hook that stashes rewrites keyed by callID and annotates the tool result with a one-line note:

    [hypa Rewritten] git log --oneline -10 => hypa git log --oneline -10
    

    The note is prepended to both output.title and output.output, and the full record is written to output.metadata.hypaRewrite. Non-rewritten outcomes (passthrough / skipped / error) leave the tool result untouched.

    Workaround for anomalyco/opencode#37963 (tool.execute.before arg mutation is invisible to the LLM).