v2.0.1
Fix
Fixes a crash in the sidebar.content slot:
opencode-ai-usagebar.sidebar crashed in slot sidebar.content:
undefined is not an object (evaluating 'value.replace')
OpenCode V2 evaluates the children of <Show> eagerly. The error-state branch therefore ran truncate(state().message) while the plugin was still loading and message was undefined. truncate now returns an empty string for any non-string input, which also covers plan, metric and balance values.