Skip to content

Fix slash commands discarding pending attachments#124

Merged
shellicar merged 3 commits intomainfrom
fix/slash-command-attachments
Mar 27, 2026
Merged

Fix slash commands discarding pending attachments#124
shellicar merged 3 commits intomainfrom
fix/slash-command-attachments

Conversation

@shellicar
Copy link
Copy Markdown
Owner

Summary

  • Move takeAttachments() after the slash command check in submit()
  • Slash commands now return early before consuming attachments
  • Attachment state is preserved when the user runs /model, /session, etc.

Related Issues

Closes #89

Co-Authored-By: Claude noreply@anthropic.com

@shellicar shellicar added this to the 1.0 milestone Mar 26, 2026
@shellicar shellicar added the bug Something isn't working label Mar 26, 2026
@shellicar shellicar self-assigned this Mar 26, 2026
@shellicar shellicar enabled auto-merge (squash) March 26, 2026 20:43
@shellicar shellicar requested a review from bananabot9000 March 27, 2026 04:54
Copy link
Copy Markdown
Collaborator

@bananabot9000 bananabot9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Clean fix -- moving takeAttachments() after handleCommand() early return means slash commands don't consume attachments. Log message placement also correct.

@shellicar shellicar merged commit 6b51769 into main Mar 27, 2026
3 checks passed
@shellicar shellicar deleted the fix/slash-command-attachments branch March 27, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slash commands consume pending attachments

2 participants