Skip to content

fix(app): add open folder button to V2 desktop session header#29888

Open
ComradeSwarog wants to merge 2 commits into
anomalyco:devfrom
ComradeSwarog:fix/v2-open-folder-button
Open

fix(app): add open folder button to V2 desktop session header#29888
ComradeSwarog wants to merge 2 commits into
anomalyco:devfrom
ComradeSwarog:fix/v2-open-folder-button

Conversation

@ComradeSwarog
Copy link
Copy Markdown

@ComradeSwarog ComradeSwarog commented May 29, 2026

Issue for this PR

Closes #29875

Type of change

  • Bug fix

What does this PR do?

The session header in the V2 desktop layout (SessionHeaderV2Actions) was missing the "Open folder in file system" button and dropdown. The SessionHeaderV2Actions component only rendered StatusPopoverV2 + Review toggle, while the legacy fallback had the full Open-in button.

The fix extends SessionHeaderV2ActionsState with open-folder related fields (project directory, current app, options, menu state, callbacks) and renders the "Open in..." button with app icon and chevron dropdown inside SessionHeaderV2Actions using existing V2 components (MenuV2, IconButtonV2, IconV2, AppIcon).

Changes:

  • packages/app/src/components/session/session-header.tsx — added Open-in button to V2 header
  • packages/ui/src/v2/components/icon.tsx — added copy icon for the "Copy path" menu item

How did you verify your code works?

Verified by reviewing the diff for correctness: the new V2 branch mirrors the existing legacy fallback structure, reusing the same state (selectApp, openDir, copyPath, canOpen, etc.) already proven in production since the legacy path uses them. All components used (MenuV2, IconButtonV2, IconV2, AppIcon) are existing V2 primitives already in use elsewhere in the codebase.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@ComradeSwarog
Copy link
Copy Markdown
Author

The task has been manually tested.

Menu:

image

Open File Explorer:
image

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]: Desktop file explorer no longer shows “Open folder in file system” button on Windows

1 participant