Skip to content

Copy project path from header badge#1967

Open
M-Habashi wants to merge 1 commit intopingdotgg:mainfrom
M-Habashi:codex/copy-project-path
Open

Copy project path from header badge#1967
M-Habashi wants to merge 1 commit intopingdotgg:mainfrom
M-Habashi:codex/copy-project-path

Conversation

@M-Habashi
Copy link
Copy Markdown

@M-Habashi M-Habashi commented Apr 12, 2026

Summary

  • make the project name badge in the chat header copy the active folder path to the clipboard
  • show the existing bottom toast notification with the copied path
  • keep the existing open-in picker behavior unchanged

Validation

  • bun fmt
  • bun lint
  • bun typecheck

Note

Low Risk
Low risk UI-only change that adds clipboard copying and toast feedback; main risk is minor UX/accessibility regressions if openInCwd is null or clipboard API is unavailable.

Overview
Makes the chat header’s project name badge interactive: clicking it now copies openInCwd to the clipboard.

Adds tooltip state (copy/coped/unavailable) and triggers success/error toasts via toastManager using the shared useCopyToClipboard hook, while leaving the existing OpenInPicker control unchanged.

Reviewed by Cursor Bugbot for commit c9ee7c8. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Copy project folder path to clipboard from chat header badge

Makes the project name badge in ChatHeader.tsx clickable, copying the project folder path (openInCwd) to the clipboard. A tooltip reflects the current state: unavailable, copied, or ready to copy. Success and error toasts are shown via toastManager on copy attempts. The button is disabled when no folder path is available.

Macroscope summarized c9ee7c8.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 456dabe6-1b6f-4a27-b5cd-9498d758863c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@github-actions github-actions bot added size:M 30-99 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Apr 12, 2026
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Apr 12, 2026

Approvability

Verdict: Approved

This PR adds a simple UI convenience feature - clicking the project path badge copies it to clipboard with toast feedback. The changes use existing hooks and components, are self-contained, and have no runtime behavior implications beyond the new click interaction.

You can customize Macroscope's approvability policy. Learn more.

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

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant