[PR #6525] fix: pass image parts to custom commands #11954

Closed
opened 2026-02-16 18:16:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6525

State: closed
Merged: Yes


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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6525 **State:** closed **Merged:** Yes --- 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
yindo added the pull-request label 2026-02-16 18:16:53 -05:00
yindo closed this issue 2026-02-16 18:16:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11954