Add /feedback slash command with confirmation flow#3381
Open
lezama wants to merge 8 commits into
Open
Conversation
…ontroller boilerplate
# Conflicts: # apps/cli/ai/slash-commands.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
/feedback.How AI was used in this PR
Claude (Opus 4.7) drafted the code, tests, and this description. I drove the design (matching Claude Code's two-step "describe → confirm" flow shown in the screenshots that motivated the PR) and reviewed the diff.
Proposed Changes
Bring Studio AI's bug-report flow up to par with Claude Code's
/feedback. Type/feedbackin the chat and:summaryandlogsalready filled in — you finish and submit on github.com.No telemetry, no hidden submission — the user always reviews on GitHub before sending.
Files
apps/cli/ai/slash-commands.ts— newrunFeedbackSlashCommand, environment collector, URL builder, confirmation picker, and registration.apps/cli/ai/tests/slash-commands.test.ts— 4 new tests covering registration, the happy path (Submit), explicit Cancel, empty description, and Esc-aborts.apps/cli/vitest.config.ts— defines__STUDIO_CLI_VERSION__for tests so the env block can read it under Vitest (mirrors how__IS_PACKAGED_FOR_NPM__is handled today).Testing Instructions
npm run cli:build && node apps/cli/dist/cli/main.mjs ai/feedbackand walk the flow:summaryandlogspre-filled.npm test -- apps/cli/ai/tests/slash-commands.test.ts— 33/33 green locally.Pre-merge Checklist