Skip to content

refactor(LaunchButtons): replace Pippin shell button with copy path to clipboard#17

Merged
malaporte merged 1 commit into
mainfrom
copy-path
Apr 13, 2026
Merged

refactor(LaunchButtons): replace Pippin shell button with copy path to clipboard#17
malaporte merged 1 commit into
mainfrom
copy-path

Conversation

@malaporte
Copy link
Copy Markdown
Owner

Summary

Removes the conditional Pippin shell action button from the worktree card launch buttons and replaces it with an always-visible button that copies the worktree path to the clipboard.

Changes

  • Removed pippinPath state and the useEffect that fetched it via system:pippinPath RPC
  • Removed handlePippinShell handler and launch:pippinShell RPC call
  • Replaced IconPrison import with IconCopy from @tabler/icons-react
  • Added handleCopyPath using navigator.clipboard.writeText(worktreePath)
  • New button is always visible (no conditional rendering) with a "Copy path" tooltip

Testing

Typechecked with bun run typecheck — no errors. The clipboard write is a pure renderer-side browser API call with no backend dependency.

Reviewer Notes

The Pippin-related RPC handlers (system:pippinPath, launch:pippinShell) remain in the backend — this PR only removes the UI surface. Those can be cleaned up in a follow-up if Pippin support is being dropped entirely.

@malaporte malaporte marked this pull request as ready for review April 13, 2026 06:44
@malaporte malaporte merged commit a1a1b33 into main Apr 13, 2026
0 of 2 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant