Pasted text in commands do not get expanded in $ARGUMENTS #1544

Closed
opened 2026-02-16 17:31:27 -05:00 by yindo · 2 comments
Owner

Originally created by @Cluster444 on GitHub (Aug 30, 2025).

If you have text copied and try to paste it into a /command, the literal placeholder gets forwarded into the prompt and the model ends up seeing the placeholder, not the expansion.

Originally created by @Cluster444 on GitHub (Aug 30, 2025). If you have text copied and try to paste it into a /command, the literal placeholder gets forwarded into the prompt and the model ends up seeing the placeholder, not the expansion.
yindo closed this issue 2026-02-16 17:31:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 30, 2025):

This issue might be a duplicate of existing issues. Please check:

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 30, 2025): This issue might be a duplicate of existing issues. Please check: - #2325: [Commands receive [pasted lines] instead of real arguments](https://github.com/sst/opencode/issues/2325) - describes the exact same issue where pasted content is replaced with placeholders like in commands instead of the actual content - #1265: [Text pasted in previous sessions is replaced by [pasted ... lines] placeholders](https://github.com/sst/opencode/issues/1265) - related issue about pasted text being replaced by placeholders in sessions Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 30, 2025):

duplicate of #2325

@rekram1-node commented on GitHub (Aug 30, 2025): duplicate of #2325
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1544