fix(bug-report): clicking bug icon while dock open prompts to start new report (#476) - #585
Merged
aarontrowbridge merged 1 commit intoAug 27, 2026
Conversation
…ew report (#476) When the bug-report dock was already open, the bug icon click was swallowed — reportBug() in the app returned early after reveal() and never posted amicode.reportBug, and BugReportManager.reportBug() just re-posted open-bug-report for the same session. The UI appeared to do nothing when the dock was already expanded. App: reportBug() now always reveals the existing dock AND posts the command so the extension can handle the second click. The second click is not swallowed — it focuses the existing dock and drives the extension's prompt path. Extension: BugReportManager.reportBug() now prompts via showInformationMessage when a live bug session exists — 'Start new report' closes the current session (abort + delete, posts close-bug-report) and creates a fresh one; 'Show current report' or dismiss just reveals the existing session. Prompt is injected for testability; production wires vscode.window.showInformationMessage. Existing single-open tests without a prompt handler still reveal-only. Overlay manifest hashes updated for the two overlay files.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
aarontrowbridge
marked this pull request as ready for review
August 27, 2026 11:58
aarontrowbridge
deleted the
476-bug-clicking-the-bug-icon-while-the-bug-report-dock-is-already-open-does-nothing
branch
August 27, 2026 11:58
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.
Closes #476
When the bug-report dock is already open, clicking the bug icon was swallowed — now it focuses the dock and prompts the user.
report-bug.ts): remove early-return swallow; always reveal dock and postamicode.reportBugso extension can prompt. Update test expectations.bug_report.ts): when a session is alive, showStart new report / Show current reportprompt; Start new aborts+deletes old session, postsclose-bug-report, then creates fresh session. Dismiss/Show just reveals existing.Tests
packages/extension/test/bug_report_476.test.ts(2 new regression cases, RED→GREEN)report-bug.test.tsupdatedVerification
Implements branch 476-bug-... from hygiene sweep 2026-08-27.