aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2026-08-14fix: reject prompts to blocked agents (#2790)akbash
* fix: reject prompts to blocked agents refs #2788 * docs: clarify agent prompt timing refs #2788 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
2026-08-14fix: wait for new pane shell readiness (#2774)akbash
* fix: wait for new pane shell readiness refs #2773 * refactor: share agent startup bounds refs #2773 * fix: reconcile agent names after startup timeout refs #2773 * fix: cover agent cleanup scheduling skew refs #2773 * fix: bound pane shell readiness retries refs #2773 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-08-11fix: wait for agent prompt readiness (#2537)JJ Liebig
* fix: wait for agent prompt readiness refs #2410 * fix: return pane updates after tab bar command refs #2410 --------- Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-08-11feat: keep the outer terminal window title in sync with the session (#2627)David Heinemeier Hansson
* feat: keep the outer terminal window title in sync with the session Herdr emulates the terminals in its panes, so an OSC 0/OSC 2 title written inside a pane stops at Herdr and never reaches the terminal Herdr itself runs in. That outer title is what window managers read for title bars, tab bars, and group bars, so it kept showing whatever the shell or ssh happened to leave behind. Add `ui.window_title`, rendered from {hostname}, {workspace}, {tab}, {pane}, and {terminal_title}, and push it to the foreground client whenever it changes. It renders on the server, so {hostname} names the machine the panes actually run on rather than the machine a thin remote client runs on, and it is gated on a pending render so an idle loop never pays for it. A title is only remembered as delivered once a foreground client takes it, so the first client to attach is written to rather than skipped. `client.window_title.set` still wins over the configured title, and clearing it now hands the title back to `ui.window_title` instead of only "herdr". * fix: deliver the outer window title to a newly attached client ClientConnected assigns the foreground client directly rather than going through promote_client_to_foreground, so clearing the sent-title cache there missed the case that matters most: attaching a second terminal to a running session. The title was usually unchanged, so the sync returned early and the new terminal kept whatever its shell or ssh had left. Key the cache on the client that received the title instead of relying on every foreground assignment to invalidate it. * perf: keep hidden pane output off the window title path Output from a hidden or background pane sets needs_render without setting needs_full_render, and the retained render plan then skips presentation for it entirely. Syncing the title on needs_render meant every coalesced hidden-output tick still formatted, sanitized, and allocated a title that could not have changed, against the hidden-source early exit AGENTS.md requires. Every input to the title is app state, which always requests a full render, so gate on that instead. The one exception is the focused pane's own terminal title, which arrives through PTY parsing, so ask for a full render when that changes and the configured title uses it. * fix: only cache a window title a client writer received * fix: carry an api set window title across a live handoff * fix: make outer window title updates event-driven --------- Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-08-09fix(client): avoid abort on terminal hangup (#2427)akbash
* fix(client): avoid abort on terminal hangup refs #2424 * test(client): gate PTY integration on unix refs #2424 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-08-08fix: forward pane terminal bells (#2498)akbash
refs #2453 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
2026-08-07fix(config): report unknown theme names (#2488)Can Celik
refs #2452
2026-08-07fix(input): preserve shift in kitty alternate reports (#2479)Can Celik
refs #2435
2026-08-06fix(cli): accept --flag=value and reordered options in pane read/wait-output ↵Kyle Corbeille
(#2183) * fix(cli): accept --flag=value and reordered options in pane read/wait-output * test(cli): trim redundant pane parser coverage --------- Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-08-04fix(ui): preserve sidebar scroll across clients (#2280)akbash
refs #2255 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
2026-08-03fix(pi): restrict state reporting to tui sessions (#2159)Rhys
Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-08-01fix: report a clear cli error when no herdr server is running (#1963)Season Saw
* fix: report a clear cli error when no herdr server is running socket cli commands surfaced a raw io::Error debug string (`Error: Os { code: 2, ... }`) when nothing was listening on the api socket, which read like a bad --cwd path. map dead-socket connect failures to a `server_not_running` json error carrying the resolved socket path, printed once at the edge that surfaces the error; recovering callers (plugin offline registry fallback, agent start polling) recognize the marker and keep their existing behavior. refs #1941 * fix: map dead-socket errors on the unchecked cli request path refs #1941 * fix: make server-not-running guidance session-aware refs #1941
2026-08-01fix(input): preserve native key lifecycle across routing (#2142)Can Celik
refs #2077 Co-authored-by: Jonathan Liebig <jonathan.liebig@gmail.com>
2026-07-31fix(client): restore terminal on sighup and sigtermMatt Coles
Enable termination-signal handling so SIGHUP and SIGTERM follow the graceful quit path and restore terminal state. Log handler registration failures and add PTY coverage for direct SIGHUP and server EOF restoration Co-authored-by: Matt Coles <macols@amazon.com>
2026-07-29fix: count ptmx master fds under devpts layouts (#1984)Andrew Krasnoff
live_server_holds_one_pty_master_fd_per_pane counted only /proc/<pid>/fd links resolving to exactly /dev/ptmx. On devpts setups such as WSL2 and many containers, a PTY master fd resolves to /dev/pts/ptmx instead, so the test found zero masters and failed with "had 0 ptmx master fds; expected 1" even though the server held the pane's master fd. Match both ptmx node paths; pty slaves still resolve to /dev/pts/<N> and stay uncounted, so the one-master-per-pane invariant is unchanged.
2026-07-28perf: replace agent spinners with static status marksOgulcan Celik
2026-07-28fix: ignore nested codex session reports (#1927)JJ Liebig
* fix: ignore nested codex session reports refs #1789 * test: cover matching codex thread id --------- Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-07-27fix: delay agent prompt submissionOgulcan Celik
refs #1878
2026-07-24fix: make known-agent exit process-ownedOgulcan Celik
refs #1792 refs #1648
2026-07-23fix: preserve kitty printable key releasesOgulcan Celik
refs #1746
2026-07-22refactor: centralize new terminal cwd selectionOgulcan Celik
replaces contributions from Pitchfork-and-Torch
2026-07-21fix: link plugins without a running serverOgulcan Celik
refs #1670
2026-07-20fix: make plugin state global across sessionsOgulcan Celik
refs #1174
2026-07-20fix: bound stalled agent prompt waitsOgulcan Celik
2026-07-19feat: make agent automation a first-class cli primitiveOgulcan Celik
2026-07-18fix: support javascript integrations on windowsOgulcan Celik
refs #1531
2026-07-18fix: report unknown config keys (#1575)akbash
* fix: report unknown config keys refs #1573 * fix: preserve mixed config warning context refs #1573 --------- Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
2026-07-17feat: harden named agent cli workflowsOgulcan Celik
refs #1525
2026-07-16fix: follow foreground process group leader cwdOgulcan Celik
refs #1472
2026-07-16fix: preserve plugins during live handoffOgulcan Celik
refs #893
2026-07-15fix: guard cli requests against protocol mismatches (#1453)akbash
refs #1435 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-07-15test: wait for multi-client resize propagationOgulcan Celik
2026-07-14fix(linux): scope foreground process discovery to panesOgulcan Celik
refs #1399
2026-07-13feat: add configurable sidebar metadata tokensOgulcan Celik
2026-07-12fix: clarify config fallback diagnosticsOgulcan Celik
2026-07-10fix: improve config diagnostic deliveryOgulcan Celik
2026-07-10fix: follow foreground cwd for new terminalsPitchfork-and-Torch
refs #1245
2026-07-09fix: preserve explicit session sockets during live handoffOgulcan Celik
refs #1180 reported-by: dvic based-on: https://github.com/dvic/herdr/pull/3
2026-07-09fix: reanchor pi status after session replacement (#1189)Dillon Mulroy
* fix: reanchor pi status after session replacement refs #943 * fix: guard active pi sessions from nested startup refs #943 * fix: serialize pi session replacement reports refs #943
2026-07-06test: synchronize multi-client resize assertionOgulcan Celik
2026-07-05fix: switch prefix ASCII input source on the foreground client (#1016)ppggff
* fix: switch prefix ASCII input source on the foreground client The macOS prefix ASCII-switch ran in the headless server, whose TISCopyCurrentKeyboardInputSource read is a stale per-process cache (refreshed only via a main-run-loop notification the server never pumps), so prefix could leave the terminal on the wrong input source. Forward it to the foreground client, like clipboard: sync_prefix_input_source emits AppEvent::PrefixInputSource as an intent; the server forwards it to the foreground client and the monolithic app applies it in-process via RealPrefixInputSource, which pumps its main run loop before the stale TIS read. Key it on Mode::wants_ascii_input so multi-level prefix commands keep ASCII until returning to the terminal, and restore the IME for rename text entry. Adds ServerMessage::PrefixInputSource to the already-unreleased protocol 15. refs #774 * fix: keep prefix input-source switch out of the headless server process An App-internal drain (the exhaustive drain at the top of handle_api_request, reachable from prefix-key runtime mutations) can consume a queued PrefixInputSource intent before the server's forwarding drain sees it, applying the TIS switch in the headless server process and stranding the restore state. Gate the in-process switch on App.local_input_source_switch, disabled by the headless server alongside the other local side effects, so a swallowed intent degrades to a skipped switch. Widen the forwarding-bypass maintenance test to the handle_internal_event_with_prefix_sync wrapper. refs #774 * docs: clarify prefix input-source comments and flag docs refs #774 * fix: bump protocol for prefix input source refs #774 --------- Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
2026-07-05test: wait for client frame before crash assertionOgulcan Celik
2026-07-05fix: wait for server stop socket cleanupOgulcan Celik
2026-07-04feat: expose session snapshot through cliOgulcan Celik
2026-07-03fix: keep windows wait connections openOgulcan Celik
refs #963
2026-06-30feat: add shell completionsOgulcan Celik
refs #435
2026-06-29feat: expose api schema from cliOgulcan Celik
2026-06-29feat: emit placement mutation eventsOgulcan Celik
2026-06-25fix: avoid pi release on internal session reloads (#800)Dillon Mulroy
* fix: avoid pi release on internal session reloads * fix: align omp session shutdown release with pi --------- Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-06-21fix: protect root agent restore sessionsOgulcan Celik
refs #712