Commit Graph
121 Commits
Author SHA1 Message Date
Can Celik b024c273e3 Merge pull request #25 from othavioquiliao/fix/pane-click-focus-mouse-reporting
fix: click focus on panes running TUIs with mouse reporting
2026-04-09 22:41:15 +03:00
Othavio Quiliao 42fa2648ee fix: always open pane context menu on right-click
The Down(Right) handler forwarded the click to the inner pane runtime
when mouse reporting was active, then early-returned before creating the
context menu state. For panes running a TUI that enables mouse reporting
(e.g. Claude Code), right-clicking focused the pane but never opened the
herdr context menu, even though right-click on plain shells or Codex
still worked.

Stop forwarding Down(Right) to the pane runtime altogether. Right-click
on a pane now always focuses it and opens the herdr context menu,
matching how terminal emulators like Ghostty, Alacritty, Kitty and iTerm2
treat right-click. This means the previous context menu actions
(close pane, split, fullscreen, etc.) now also reach the intended pane
via focus_pane before the menu is displayed.

Remove Up(Right) and Drag(Right) from the middle/right forward branch so
the inner TUI never sees an Up or Drag without a matching Down. Middle
button forwarding is preserved because it is still used for paste in
many terminal protocols.

Tighten the existing right-click regression test with assertions that
Mode::ContextMenu is entered and context_menu is populated. Without
these extra checks the earlier version of the test only verified focus
and failed to catch this exact bug.
2026-04-09 16:06:27 -03:00
Othavio Quiliao 5e711fb7d3 fix: focus pane on left-click even when mouse reporting is active
The Down(Left) handler called forward_pane_mouse_button before focus_pane
and early-returned when the forward succeeded, which happens for any pane
running a TUI that has enabled mouse reporting (e.g. Claude Code). As a
result, clicking such a pane forwarded the click to the inner TUI but
never updated herdr's focus state, leaving the previous pane highlighted.

Reorder the handler to focus first and forward after, matching the
pattern already used by handle_terminal_wheel. Shells and TUIs without
mouse reporting (e.g. Codex) were unaffected because their forward
returned false and the focus update happened in the fallthrough branch.

Add a regression test that installs a pane runtime with mouse reporting
enabled via the '\x1b[?1002h' DECSET sequence and asserts that a
Down(Left) event retargets focus.
2026-04-09 16:04:06 -03:00
Ogulcan Celik 2c50690877 fix(status): keep background startup idle panes out of done 2026-04-09 21:59:18 +03:00
Ogulcan Celik c45a3b2dc1 feat(api): return root panes from workspace and tab creation 2026-04-09 21:59:18 +03:00
Ogulcan Celik 065926d9b7 fix: restore terminal colors on macos after droid exit 2026-04-09 19:05:42 +03:00
Ogulcan Celik a134563729 fix: restore host terminal colors after fullscreen tui exit 2026-04-09 18:44:53 +03:00
Ogulcan Celik 953ff58e9f fix: autoscroll and clear mouse text selections 2026-04-09 17:52:09 +03:00
Ogulcan Celik dacbfed01e docs: clarify automatic detection and socket integrations 2026-04-09 17:39:13 +03:00
Ogulcan Celik 227f02c58b fix: avoid blocking on claude slash menus 2026-04-09 17:28:02 +03:00
Ogulcan Celik 9495979573 fix: harden codex detection for narrow panes 2026-04-09 17:28:02 +03:00
Ogulcan Celik 1cbd312936 fix: detect agent state from terminal tail instead of viewport 2026-04-09 17:28:02 +03:00
Ogulcan Celik bb2c579df2 feat(cli): support labels when creating tabs and workspaces 2026-04-09 04:42:35 +03:00
Ogulcan Celik 5460a9601e fix(tabs): keep default numeric labels auto-generated 2026-04-09 04:32:45 +03:00
Ogulcan Celik b5b61c1484 merge: reload keybinds 2026-04-09 04:07:14 +03:00
Ogulcan Celik 74a6161bff feat: add manual reload keybinds action 2026-04-09 04:06:02 +03:00
Ogulcan Celik a3ecb4e3b4 feat(api): expose done as agent status 2026-04-09 03:31:37 +03:00
Ogulcan Celik 05a6d89e33 fix: render inline and fenced code in release notes 2026-04-09 03:06:29 +03:00
Ogulcan Celik 7245aa6c12 fix: only show cursor in focused pane 2026-04-09 02:20:49 +03:00
Ogulcan Celik c62599de00 feat: add debounced session autosave 2026-04-08 18:27:16 +03:00
Ogulcan Celik 3689515f6a test: strengthen session snapshot capture contract 2026-04-08 17:24:33 +03:00
Ogulcan Celik acf5bbad51 fix: harden unix socket api waits 2026-04-08 03:17:44 +03:00
Ogulcan Celik e4e14142b1 feat: add resizable sidebar sections 2026-04-08 01:51:50 +03:00
Can Celik d739880f43 Merge pull request #9 from Edmund-a7/master
fix: support IME input for Chinese and other UTF-8 characters
2026-04-08 01:23:23 +03:00
Ogulcan Celik 25974892c7 fix: make pane run use bracketed-paste-aware send input 2026-04-07 23:22:57 +03:00
Ogulcan Celik f279b4170e fix: tighten release manifest sync flow 2026-04-07 18:48:40 +03:00
acumen7 34bc876c66 fix: support IME input for Chinese and other UTF-8 characters
Phase 1: UTF-8 encoding support
- Modified encode_text_input() to handle characters without modifiers
- Added unit tests for Chinese character encoding

Phase 2: IME composition support
- Removed REPORT_ALL_KEYS_AS_ESCAPE_CODES keyboard flag
- Prevents keyboard protocol from interfering with IME
- Allows digit keys to be captured by input method for candidate selection

Fixes issue where IME input was not working properly.
Supports Chinese, Japanese, Korean, and other UTF-8 input methods.
Maintains compatibility with all existing features.

Tested:
- All 388 unit tests pass
- Chinese IME input with pinyin works correctly
- All navigate mode shortcuts work normally
- All terminal applications work normally
2026-04-07 20:52:24 +08:00
Ogulcan Celik ed0c051c55 fix: preserve lf in raw terminal input 2026-04-07 15:48:58 +03:00
Ogulcan Celik 0276da6f2a fix: make pane run submit commands atomically 2026-04-07 15:09:09 +03:00
Ogulcan Celik 78fc0721a3 fix: use website update manifest 2026-04-07 13:45:36 +03:00
Ogulcan Celik 2ff1718213 fix: persist ghostty key encoders per pane 2026-04-07 03:23:13 +03:00
Ogulcan Celik d8283881db fix: animate all-workspaces agent panel spinners 2026-04-07 02:51:11 +03:00
Ogulcan Celik 5e05460816 docs: clarify herdr pane split and wait output usage 2026-04-07 02:48:13 +03:00
Ogulcan Celik 06f01df93d fix: restore collapsed sidebar expand toggle 2026-04-07 02:18:59 +03:00
Ogulcan Celik 643860d5e3 fix: avoid spawning git for branch lookup 2026-04-07 02:14:39 +03:00
Ogulcan Celik a51902ede9 fix: use byte-based pane scrollback limit 2026-04-07 00:04:32 +03:00
Ogulcan Celik 6ccf156a3d refactor: use libghostty-native selection text reading 2026-04-06 22:56:01 +03:00
Ogulcan Celik 62b751b2b5 refactor: centralize structural session snapshot compatibility 2026-04-06 21:11:42 +03:00
Ogulcan Celik d859cf21f5 fix: keep sidebar width stable and persist user resize 2026-04-06 19:36:23 +03:00
Ogulcan Celik cbe5c150ba feat: add all-workspaces scope to agent panel 2026-04-06 19:24:33 +03:00
Ogulcan Celik 62b1f5e011 feat: add compact agent detail to collapsed sidebar 2026-04-06 18:25:30 +03:00
Ogulcan Celik 7ec046a464 fix: defer new tab creation until dialog confirm 2026-04-06 17:45:39 +03:00
Ogulcan Celik c1e100be8f fix(ui): make sidebar spaces list scrollable 2026-04-06 16:13:12 +03:00
Ogulcan Celik fdea0bbbf6 fix(ui): add sidebar section headers and align workspace drag slots 2026-04-06 16:00:34 +03:00
Ogulcan Celik aea908a7cf fix: respect synchronized terminal output batches 2026-04-05 21:03:17 +03:00
Can Celik b2e6929aa8 refactor: remove vt100 backend and make ghostty default 2026-04-05 16:38:50 +03:00
Can Celik 822c3b9e2d refactor: own pane mouse protocol enums outside vt100 2026-04-05 15:56:05 +03:00
Can Celik 46c6572503 fix: prevent ghostty pane redraw corruption on wide cells 2026-04-05 15:37:01 +03:00
Can Celik 8525503dba fix: match ghostty pane default colors to host terminal theme 2026-04-05 03:46:16 +03:00
Can Celik a08dfaef2f feat: forward ghostty pane focus events on focus changes 2026-04-05 02:32:00 +03:00