Hi,
I’m having an issue with text selection, copying, and scrolling inside the Hermes TUI.
Summary of the issue:
When Hermes TUI is open, native terminal text selection does not work properly unless I disable mouse tracking with /mouse. If I disable mouse tracking, I can select text and copy it with Cmd+C, but then I can only select the text currently visible on the screen. I cannot drag the selection upward past the top of the window to autoscroll and select previous lines.
When /mouse is enabled, I can scroll normally inside the TUI using the mouse wheel, but native terminal text selection/copying does not work properly. I also cannot select a long response and drag upward to include earlier lines in the selection.
Behavior:
- With /mouse disabled:
- Native terminal text selection and Cmd+C copying work.
- However, when selecting text, I cannot drag upward beyond the visible TUI viewport.
- Autoscroll either does not happen or is very limited.
- As a result, I can only copy the portion currently visible on screen.
- With /mouse enabled:
- Mouse wheel scrolling inside the TUI works.
- Native terminal text selection does not work properly.
- I cannot select text and drag upward to copy a longer section.
- Copying is effectively not usable for long TUI responses.
Expected behavior:
When selecting text with the mouse and dragging the cursor toward the top edge of the window, the TUI or terminal should scroll upward and allow earlier lines outside the visible viewport to be included in the selection. This would make it possible to copy long Hermes responses or log output in one piece.
Environment:
- macOS
- Hermes TUI
- Cmd+C works for copying when text can be selected
- The issue mainly happens when trying to copy long TUI responses by selecting text and dragging upward
Could this be related to Hermes TUI mouse handling, alternate screen buffer behavior, or terminal scrollback integration? Is there a recommended setting, shortcut, or workaround for copying long responses directly from the TUI?
Thanks.