Skip to content

fix(terminal): support clipboard shortcuts, context menu, and cwd copy (#8) - #18

Merged
facyndev merged 2 commits into
developfrom
fix/terminal-clipboard
Oct 24, 2026
Merged

facyndev merged 2 commits into
developfrom
fix/terminal-clipboard

Conversation

@facyndev

Copy link
Copy Markdown
Owner

Summary

  • Extract a reusable PopoverMenu component in @opencollab/ui (�nchorMenuPosition, clampMenuPosition, portal rendering, and outside-click/Escape/
    esize dismissal) and unify CwdSwitcher, NewTerminalMenu, and the terminal context menu around it.
  • Add smart terminal clipboard handling (createTerminalKeyEventHandler): Ctrl+C / Cmd+C copies active selections and clears selection without sending SIGINT (\x03) to the PTY, while passing through SIGINT when no text is selected; Ctrl+Shift+C acts as an explicit copy shortcut; Ctrl+V / Ctrl+Shift+V pastes via erm.paste.
  • Add a right-click context menu on terminal panes (Copy, Paste, Select All, Clear Buffer).
  • Add a Copy Path icon button next to the CWD breadcrumb in CwdSwitcher (kept enabled even while an agent process is running) and a Copy path item inside the CWD dropdown with Copied! visual feedback.

Closes #8

Verification

  • pnpm --filter @opencollab/ui test (9 files, 66 passed)
  • pnpm --filter @opencollab/desktop test (3 files, 17 passed)
  • pnpm --filter @opencollab/ui build & pnpm --filter @opencollab/desktop build (0 errors)

@facyndev
facyndev merged commit 2d7d26c into develop Oct 24, 2026
3 of 4 checks passed
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.

1 participant