Skip to content

Show the Paste Bar when Pesty is reopened - #68

Merged
momenbasel merged 1 commit into
mainfrom
maintainer/pr-38-reopen
Aug 12, 2026
Merged

Show the Paste Bar when Pesty is reopened#68
momenbasel merged 1 commit into
mainfrom
maintainer/pr-38-reopen

Conversation

@momenbasel

Copy link
Copy Markdown
Owner

Lands the reopen half of #38, folded into the existing reopen handler as the Aug 11 review requested:

  • Normal reopen (Finder / Spotlight / Dock) shows the Paste Bar when it is not already presented, gated on barController.isPresented (the Don`t open clipboard #64 state machine) rather than NSWindow.isVisible.
  • The hidden-menu-bar escape hatch keeps restoring the icon and showing Settings — that path is recovery, not a bar request.
  • The launch-time auto-show and the onboarding removal from Show the Paste Bar on launch and reopen #38 are deliberately not included (rejected in review: login-item focus stealing, and Settings is the only surface that requests Accessibility).

Paste-target staleness on the reopen path is already covered by pasteTarget from #66.

Credit to @alvst — extracted and reworked from #38.

— automated maintainer pass on behalf of @momenbasel

Made with Cursor

A normal reopen from Finder, Spotlight, or the Dock now surfaces the
primary interface instead of Settings. The hidden-menu-bar escape hatch
keeps its old behavior: restore the icon and show Settings, since that
reopen is a recovery path rather than a request for the bar.

Presentation is gated on the explicit BarWindowController.isPresented
state rather than NSWindow.isVisible, per the #64 machinery, and
duplicate reopen events coalesce because the phase flips as soon as the
first show begins.

Reopen half of #38; the launch-time auto-show was dropped per review.

Co-authored-by: Alvie Stoddard <alviestoddard@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 12, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown

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.

@momenbasel
momenbasel merged commit a51c62b into main Aug 12, 2026
1 check passed
@momenbasel
momenbasel deleted the maintainer/pr-38-reopen branch August 12, 2026 05:47
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.

2 participants