Skip to content

fix(bug-report): clicking bug icon while dock open prompts to start new report (#476) - #585

Merged
aarontrowbridge merged 1 commit into
mainfrom
476-bug-clicking-the-bug-icon-while-the-bug-report-dock-is-already-open-does-nothing
Aug 27, 2026
Merged

aarontrowbridge merged 1 commit into
mainfrom
476-bug-clicking-the-bug-icon-while-the-bug-report-dock-is-already-open-does-nothing

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

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.

  • App (report-bug.ts): remove early-return swallow; always reveal dock and post amicode.reportBug so extension can prompt. Update test expectations.
  • Extension (bug_report.ts): when a session is alive, show Start new report / Show current report prompt; Start new aborts+deletes old session, posts close-bug-report, then creates fresh session. Dismiss/Show just reveals existing.
  • Manifest hashes updated, typecheck green.

Tests

  • packages/extension/test/bug_report_476.test.ts (2 new regression cases, RED→GREEN)
  • report-bug.test.ts updated

Verification

  • pnpm typecheck green
  • 1588/1590 tests green — 2 failures pre-existing on main (terminal OPENCODE_DB)

Implements branch 476-bug-... from hygiene sweep 2026-08-27.

…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.
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a9330d0e-f45e-4b42-862f-ad6197672855


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aarontrowbridge
aarontrowbridge marked this pull request as ready for review August 27, 2026 11:58
@aarontrowbridge
aarontrowbridge merged commit 97d5d00 into main Aug 27, 2026
7 of 8 checks passed
@aarontrowbridge
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
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.

BUG: clicking the bug icon while the bug-report dock is already open does nothing

1 participant