Repository navigation
Description
What happened?
In the annotation UI's update-available notification, the Copy command button copies contextbridge update to the clipboard correctly, but there is no visual indication that the copy succeeded. The button label and styling do not change on click, so the user has no in-UI confirmation that anything happened.
Reported via community Slack:
The copy works, but there isn't any visual indication that it works. Just a small nit :)
Overall, I've been using this a lot, and it has changed a lot of my eng workflow this week.
Note
Related to #74 ("Change update button to run update automatically"). If that lands first and the "Copy command" affordance is replaced with an automatic-update action, this bug may become moot. Worth checking before doing any work here.
contextbridge version
The reporter is running v0.3.0 and was being notified that v0.7.0 is available (visible in the attached screenshot). Bug is independent of CLI version — it reproduces on any release where the update-notice card is shown.
Operating system
macOS
The reporter was on macOS, but this is a browser-UI bug in @contextbridge/annotation; OS is not a meaningful axis.
Steps to reproduce
- Run any
contextbridgesubcommand that opens the annotation UI (e.g.contextbridge plan) while a newer release is available, so the update-notice card renders in the bottom-right corner. - Click the Copy command button inside the notice.
- Observe the button's appearance.
What did you expect to happen?
The button should give an immediate, visible confirmation that the copy succeeded — for example, swap the label to "Copied!" (or similar) for a short interval before reverting, matching the utilitarian design language used elsewhere in the review UI.
What actually happened?
The clipboard write succeeds, but the button's label, color, and icon remain unchanged. The user has no way to tell from the UI alone whether the click registered.
Anything else
Source: packages/annotation/src/UpdateNoticeCard.tsx — the current handleCopy writes to the clipboard and fires analytics but does not update any UI state:
const handleCopy = () => {
analytics.capture('update_command_copied', { latest_version: notice.latestVersion });
void navigator.clipboard.writeText(UPDATE_COMMAND).catch(() => {});
};<Button
size="sm"
className="h-6 px-2 text-xs"
onClick={handleCopy}
data-testid={updateNoticeCardTestIds.copyButton}
>
Copy command
</Button>Any fix should stay inside the plan-review design language (.claude/rules/plan-review-design.md) — no celebratory color swap or oversized confirmation, just a brief label/icon change so the click registers visually. Title Case applies to the confirmation label too.
Activity