Commit Graph
121 Commits
Author SHA1 Message Date
Ogulcan Celik 55cdf2e8f8 fix: stabilize integration agent state reports 2026-05-11 16:13:17 +03:00
Ogulcan Celik 9f210e9738 chore: enable clippy linting 2026-05-09 23:16:24 +03:00
Ogulcan Celik 3a9888cd56 feat: add ansi pane read format 2026-05-09 22:07:52 +03:00
Ogulcan Celik 819a71ea7a fix: refresh git status off the main loop
fixes #85
2026-05-09 21:57:26 +03:00
YoungTaek 78904186dd Show focus on active agent in agents panel like spaces panel does (#84)
* feat: show focus on active agent in agents panel like spaces panel does

* refactor: improve to calculation and binding style
2026-05-09 17:21:03 +03:00
Ogulcan Celik bb0dad86f8 fix: split panes in target tab without stealing focus
fixes #75
2026-05-08 15:37:01 +03:00
Ogulcan Celik ac32c1a19b fix: clear agent toast after focus 2026-05-08 14:56:14 +03:00
Ogulcan Celik c08e51e666 feat: make agent toasts focus panes 2026-05-08 14:53:45 +03:00
Ogulcan Celik 34df89ae65 fix: persist agent panel scope in config 2026-05-06 22:53:56 +03:00
Shoubhit Dash 446eecb4a1 feat: add vesper theme (#71) 2026-05-06 21:08:20 +03:00
Ogulcan Celik f7b0ee2f75 feat: add mobile terminal layout 2026-05-05 18:32:42 +03:00
Ogulcan Celik 45005f1f73 fix: mark visible done panes seen on terminal focus 2026-05-02 01:23:10 +03:00
Ogulcan Celik c950670dca fix: run integration commands without server 2026-04-29 23:24:36 +03:00
Ogulcan Celik eec56a56a9 fix: restore double prefix passthrough in client mode 2026-04-29 23:14:38 +03:00
Yifeng He 22d7bef568 fix: resize w claude code no flicker (#61)
* fix: mouse resize panel failed with claude-code no flicker

* test: run pane mouse reporting drag tests inside tokio runtime

Switch the new horizontal/vertical drag tests to `#[tokio::test]` so
`PaneRuntime::test_with_screen_bytes` has a reactor when it calls
`tokio::spawn`. CI was panicking with "there is no reactor running".

* test: refresh git state in workspace drop slot test

Workspace::test_new caches the parent repo's git branch at construction
time. On master CI the herdr checkout has ref: refs/heads/master in HEAD,
so the cache is populated and workspace_row_height returns 2. On PR CI
actions/checkout uses a detached merge ref, git_branch returns None, row
height becomes 1, and the drop-slot tie-break flips workspace_drop_index_at_row(2)
from Some(0) to Some(1). Refresh git state after pointing identity_cwd at
the per-test temp repo so the cache reflects the temp repo's HEAD.
2026-04-28 13:13:53 +03:00
Ogulcan Celik b6308ef3be feat: notify active panes when terminal is unfocused 2026-04-28 01:05:33 +03:00
Ogulcan Celik e9547a8e0d feat: refine live config lifecycle 2026-04-26 17:06:00 +03:00
Ogulcan Celik 3d1ef155bf feat: add live config reload 2026-04-26 02:07:33 +03:00
Ogulcan Celik 4075041804 feat(logging): add robust rotating support logs 2026-04-23 00:48:22 +03:00
Ogulcan Celik 4b482f37a1 feat: add terminal-delivered client notifications 2026-04-22 17:01:25 +03:00
Ogulcan Celik 5063cdf6d1 chore: remove unused test imports 2026-04-22 01:24:34 +03:00
Ogulcan Celik baf5208f8e fix: make startup preview-release test version-independent 2026-04-21 20:39:18 +03:00
Ogulcan Celik bc410c4261 perf: reduce headless server render overhead 2026-04-21 18:00:59 +03:00
Ogulcan Celik b1c9833b82 fix: stop headless idle spin and skip unnecessary macos probes 2026-04-21 17:37:41 +03:00
Ogulcan Celik f99d51e42e fix: close global menu before detach 2026-04-21 16:56:43 +03:00
Can Celik 3397e1ce29 feat: add persistent server-client sessions
Make herdr persistent by default.

   Launching herdr now starts or reattaches to a background session
   server. Clients can detach and reattach while panes and agent
   processes keep running. Session mode now supports multi-client attach,
   auto-detect startup, and a thin-client/headless-server split.

   This also refactors the large app, ui, input, pane, config,
   workspace, and persistence modules into smaller focused submodules,
   while preserving behavior and colocating tests with the code they
   exercise.

   Upgrade notes:
   - persistence mode is now the default
   - in-app quit detaches the current client instead of stopping the server
   - use `herdr server stop` to stop the background session
   - use `--no-session` for the old single-process behavior
   - default socket paths now live under the config directory
2026-04-21 16:30:04 +03:00
Ogulcan Celik 0b831c8627 feat: allow hook-reported custom agent labels 2026-04-16 22:17:09 +03:00
Ogulcan Celik fc99070a22 fix: only preview newer saved release notes 2026-04-16 21:47:09 +03:00
Ogulcan Celik ef1c6b1497 fix: switch updates to manual preview flow 2026-04-16 01:09:25 +03:00
Ogulcan Celik 8cac2c0df4 feat support double prefix passthrough 2026-04-14 02:17:56 +03:00
Ogulcan Celik edaa3a1a09 fix unify app key normalization for enhanced keyboard reporting 2026-04-14 01:04:51 +03:00
Ogulcan Celik b24abba471 refactor extract app api and runtime command modules 2026-04-13 23:45:46 +03:00
Ogulcan Celik 1535a7117a feat add custom shell and pane keybind commands 2026-04-13 18:49:37 +03:00
Ogulcan Celik dab18d4b17 fix: tighten tab bar scrolling behavior 2026-04-13 03:38:04 +03:00
Ogulcan Celik 27f4b7482b fix: reserve q for navigate quit only 2026-04-13 02:54:22 +03:00
Ogulcan Celik 08eccb89d2 fix: preserve workspace when closing the last pane in a tab 2026-04-10 15:00:34 +03:00
Ogulcan Celik 4a3b8f2fcf fix: forward pane osc 52 clipboard writes 2026-04-10 14:32:07 +03:00
Othavio Quiliao 6c62dba44e fix: forward OSC 52 clipboard writes from pane children
herdr embeds `libghostty-vt` as a headless terminal emulator per pane,
and its readonly stream handler silently drops `.clipboard_contents`
actions. As a result, any child process that writes OSC 52 to copy to
the system clipboard (for example Amp, which enables mouse reporting
and handles selection internally) has its sequence swallowed before it
can reach the host terminal — the user sees the child's "copied" toast
but the system clipboard is never updated.

This change adds an `Osc52Forwarder` that observes raw PTY bytes in
`process_pty_bytes`, reconstructs completed `ESC ] 52 ; (c|) ; <base64>
(BEL|ST)` sequences (write/clear only — queries are dropped since herdr
has no path to reply to the child), and returns them through the
existing `ProcessBytesResult`. The reader task forwards the bytes to
the main loop via a new `AppEvent::ClipboardWrite`, which is written
to stdout from `handle_internal_event`. Routing through the main loop
keeps stdout writes serialized with `terminal.draw` and the other
existing host-terminal emitters, so the new forwarder does not race
with rendering.

Existing herdr-native selection (mouse drag in panes without mouse
reporting) is unchanged and still writes through `selection::write_osc52`.
2026-04-10 14:32:07 +03:00
Ogulcan Celik 831bb66c0c feat(tabs): add overflow scrolling and drag reorder 2026-04-10 14:16:25 +03:00
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 953ff58e9f fix: autoscroll and clear mouse text selections 2026-04-09 17:52:09 +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