opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: pass image parts to custom commands

Open melihmucuk opened this issue 1 week ago • 0 comments

Summary

Custom commands were not receiving image attachments, causing images to be ignored when running slash commands with attached files.

Changes

  • Updated args regex to handle [Image N] tokens in command templates
  • Added parts parameter to command API to pass file attachments
  • App and TUI now forward image parts when executing custom commands

melihmucuk avatar Dec 31 '25 13:12 melihmucuk