Skip to content

Conversation

@alexyaroshuk
Copy link
Contributor

@alexyaroshuk alexyaroshuk commented Feb 6, 2026

What does this PR do?

1. adds right-click context menu to the file tree:

feat-add-file-tree-context-menu.mp4

2. adds right-click context menu to the session tabs:

feat-add-session-tabs-context-menu.mp4

3. Adds following actions:

File tree:

  • Open (file only)
  • Mention in prompt

4. new keys in i18n for 'mention', 'close others'

Session tabs:

  • Close
  • Close others - closes other tabs
  • Mention in prompt

How did you verify your code works?

Manual testing, e2e tests, and unit tests.

Files changed

Files What Changed
packages/app/src/components/file-tree.tsx Added context menu with static import; added context menu to folders; fixed spacing/flashing bugs; full-width hover area
packages/app/src/components/session-sortable-tab.tsx Added context menu via static import
packages/app/src/components/session.tsx Added mentionFile(), closeOtherTabs(), mentionTab() functions
packages/app/src/components/session-side-panel.tsx Wired context menu callbacks to components
packages/app/src/components/file-tree.test.ts Added context menu mock for server-side tests
packages/app/src/i18n/*.ts Added translations for 'mention', 'closeTab', 'closeOthers'

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@alexyaroshuk alexyaroshuk force-pushed the feat/file-tree-context-menu-clean branch from 92b9a24 to 95d2d4d Compare February 6, 2026 23:12
@alexyaroshuk alexyaroshuk reopened this Feb 6, 2026
@alexyaroshuk alexyaroshuk marked this pull request as draft February 6, 2026 23:25
@alexyaroshuk alexyaroshuk force-pushed the feat/file-tree-context-menu-clean branch from a7d41c6 to 09a37a7 Compare February 7, 2026 18:41
…xt-menu-clean

# Conflicts:
#	packages/app/src/pages/session/session-side-panel.tsx
@alexyaroshuk alexyaroshuk marked this pull request as draft February 7, 2026 18:54
@alexyaroshuk alexyaroshuk marked this pull request as ready for review February 7, 2026 19:02
@alexyaroshuk
Copy link
Contributor Author

reworked to align with refactored session/session side panel, & merged the other pr in, please check @adamdotdevin , thanks.

@alexyaroshuk alexyaroshuk marked this pull request as draft February 9, 2026 00:44
@alexyaroshuk alexyaroshuk marked this pull request as ready for review February 9, 2026 21:44
@alexyaroshuk
Copy link
Contributor Author

@adamdotdevin i solved the test failure - could you this a look?

@cpkt9762
Copy link

@adamdotdevin i solved the test failure - could you this a look?
Dude, I agree with you, I want to make the same menu too.

@alexyaroshuk
Copy link
Contributor Author

update:

  1. Static import in file tree to avoid hydration flash on folder expand.
  2. test file (packages/app/src/components/file-tree.test.ts): ContextMenu is mocked in tests for SSR compatibility.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants