Skip to content

fix: slash commands in replies - #612

Open
Enadabuzaid wants to merge 1 commit into
dev-null-sh:productionfrom
Enadabuzaid:fix/slash-commands-in-replies
Open

Enadabuzaid wants to merge 1 commit into
dev-null-sh:productionfrom
Enadabuzaid:fix/slash-commands-in-replies

Conversation

@Enadabuzaid

Copy link
Copy Markdown

Fixes #580

Typing /bug or /feature in a reply did nothing, because only the commit composer used the issue command. Now the reply composer works the same way: a slash opens the command menu, /bug or /feature turns the reply into an issue draft, and Open issue (or Cmd/Ctrl+Enter) opens it through the same issue endpoint. It never posts a reply.

What changed

  • ReplyComposer uses useIssueCommand and shows the existing IssueCommandBadge, IssueCommandHint and IssueCommandSuggestions, wired like commit-composer.tsx.
  • While it's an issue draft, the Reply button becomes Open issue, the image, preview and link card buttons are hidden, and submitting the form doesn't send a reply. Commands only start when the reply has no images, as in the commit composer.
  • Escape with the command menu open closes the menu instead of cancelling the reply.
  • Once the issue is opened, the reply draft is cleared.
  • Updated the bug reports section of KNOWLEDGE_BASE.md.

Tests

  • New tests/Unit/ReplyIssueCommand.test.tsx, added to test:unit and the tests tsconfig: the command menu and Escape, turning a reply into an issue that goes to /issues and not to the reply endpoint, and a reply with images keeping /bug as text.
  • composer test:lint, composer test:types, composer test:type-coverage, bun run test:unit and pest --parallel --ci all pass.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 14:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

slash commands do not work on replies, not sure if intentional or not.

2 participants