aboutsummaryrefslogtreecommitdiff
path: root/src/pane.rs
AgeCommit message (Collapse)Author
2026-09-19feat: add configurable pane screen and scrollback clearing (#4383)Can Celik
2026-09-17fix(windows): prefer pwsh for the default pane shell (#4297)JJ Liebig
* fix(windows): prefer pwsh for the default pane shell Windows panes launched Windows PowerShell 5.1 (powershell.exe) whenever [terminal] default_shell was unset, ignoring PowerShell 7 even when pwsh.exe resolved on PATH. Resolve the unset default against PATH and prefer pwsh.exe, falling back to the inbox powershell.exe. An explicit default_shell still wins. * fix(windows): validate pwsh before using it as the default shell portable-pty resolves the configured shell with Path::exists and passes that path to CreateProcessW, which does not fall through to later PATH entries. Selecting an invalid pwsh.exe would therefore break new panes instead of falling back. Only prefer a pwsh.exe that starts with the PE MZ magic, and return its path so the validated binary is the one launched. * fix(windows): validate the full PE header before preferring pwsh Checking only the DOS MZ signature still accepted truncated images, DLLs, and foreign-architecture binaries. Because portable-pty passes the resolved path straight to CreateProcessW without trying later PATH entries, validate the PE signature, the COFF header (machine, executable-image bit, not a DLL, section count), and the optional header before preferring pwsh.exe. * fix(windows): accept native ARM64 pwsh and validate the section table Herdr ships an x64 Windows build that also runs on Windows ARM64 under x64 emulation, so cfg!(target_arch) cannot tell whether a native ARM64 pwsh.exe is launchable. Accept every executable machine type Windows supports instead of rejecting ARM64 on the x86_64 build. Also bound-check the section table (40 bytes per declared section) after the optional header so a truncated table falls back instead of being selected. * fix(windows): detect the native host machine for pwsh compatibility Machine compatibility was derived from cfg!(target_arch), which reports the emulated x64 process on Windows ARM64, and then briefly accepted ARM64 on every host. Read the native machine with IsWow64Process2 in the platform layer instead: ARM64 Windows accepts ARM64/x64/x86 images, x64 accepts x64/x86, and x86 accepts only x86.
2026-09-15fix(windows): normalize pane launch cwd casing (#4199)JJ Liebig
2026-09-13feat: add ctrl-hover highlighting and fix wrapped links (#4074)Can Celik
refs #1282
2026-09-13fix(windows): keep powershell cwd reporting in login mode (#4065)JJ Liebig
Windows login-mode PowerShell panes are now launched directly, but the PowerShell prompt-based cwd integration was still gated to non-login mode, leaving those panes without repository-owned cwd reporting after Set-Location. Enable the existing integration for login-mode PowerShell and build the integration args on the shared direct-shell path. Follow-up to #4060.
2026-09-13fix(windows): honor default_shell in login shell mode (#4060)JJ Liebig
* fix(windows): honor default_shell in login shell mode Login-mode panes used portable-pty's default-program builder, which resolves to %ComSpec% (cmd.exe) on Windows and ignores the SHELL env override, so [terminal].default_shell was silently ignored. Build the launch command from the configured shell instead and append the shell's own login flag for POSIX-style shells that support one. refs #1445 * fix(windows): add csh and tcsh to login shell flags refs #1445
2026-09-12fix: ignore nested OMP session reports (#3994)JJ Liebig
refs #2593
2026-09-11fix: lint all targets on windows (#3963)JJ Liebig
Native Windows lint and check only clippy-checked the herdr binary, while macOS and Linux run clippy across all targets. Enable --all-targets on Windows and gate the Unix-only test helpers that this exposed so Windows check matches the Unix one.
2026-09-11fix: keep terminal snapshots consistent while scrolling (#3928)Can Celik
refs #3900
2026-09-10chore: upgrade libghostty and preserve terminal behavior (#3906)Can Celik
2026-09-07fix: preserve sessions after interrupted pane exits (#3418)Can Celik
* fix: preserve sessions when pane shells are signaled refs #3415 * fix: preserve shutdown checkpoints across platforms refs #3415 --------- Co-authored-by: Jonathan Liebig <jonathan.liebig@gmail.com>
2026-09-06feat: manage multiple ssh machines from one client (#3670)Can Celik
2026-09-05fix: make Windows Codex prompt delay size-aware (#3552)JJ Liebig
refs #3187
2026-09-03fix(windows): preserve LF paste order (#3582)JJ Liebig
refs #3172
2026-09-03perf: compress idle terminal scrollback (#3556)Can Celik
2026-09-02fix: reliably submit delayed agent prompts (#3506)JJ Liebig
2026-09-01refactor: render the shell in the client (#3487)Can Celik
* feat: add opt-in client-rendered shell * feat: add client-owned shell mouse controls * feat: complete client-owned shell chrome * feat: add client-owned shell settings and notifications * feat: run client shell custom commands * feat: render popup terminals in client shell * feat: add client-owned scrollback and copy mode * fix: preserve client worktree trust defaults * feat: render startup diagnostics in client shell * feat: render onboarding in client shell * feat: render product announcements in client shell * feat: render release notes in client shell * feat: render mobile switcher in client shell * feat: render kitty graphics in client shell * fix: preserve client shell lifecycle coherence * refactor: route client shell commands through endpoint connections * refactor: make the client-rendered shell the default * refactor: remove monolithic launch mode * refactor: complete client-rendered shell cutover * perf: retain client pane surface updates * perf: scale retained pane surface updates * perf: remove remote pane input latency * test: make client shell checks platform-independent * fix: prevent client timer starvation * test: fix client shell platform gates * test: accept retained surfaces in cross-area checks * test: make client mode assertions platform-neutral * fix: badge only outdated integrations
2026-08-30fix: report the foreground group leader's cwd, not a descendant's (#3386)caner-akca
refs #3270
2026-08-28fix: keep OSC evidence through first agent acquisition (#3326)Alex
2026-08-22fix: clear Windows Terminal identity in panes (#3127)JJ Liebig
2026-08-19fix(perf): eliminate redundant terminal wake work (#2962)Can Celik
* fix(perf): eliminate redundant terminal wake work * fix(perf): harden release benchmark gate * test(perf): strengthen performance guardrails
2026-08-17fix: sync powershell process working directory (#2879)JJ Liebig
2026-08-14fix: speed up alternate-screen history reads (#2426)Can Celik
refs #2387
2026-08-13fix: preserve logical lines in scrollback editor (#2735)akbash
refs #2733 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com> Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-08-11fix(windows): reduce idle agent detection CPU (#2651)Can Celik
* fix(windows): reduce idle agent detection CPU refs #2642 * fix(windows): gate agent process discovery refs #2642 --------- Co-authored-by: Jonathan Liebig <jonathan.liebig@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-09test: guard pane-scaled render performanceOgulcan Celik
refs #2550
2026-08-09perf(ui): avoid full pane mode reads for scrollbars (#2554)akbash
2026-08-09feat(graphics): add direct pane frame streaming (#2523)Can Celik
* feat(graphics): add direct pane frame streaming * feat(graphics): expose pane visibility * test(graphics): preserve legacy terminal image output * fix(graphics): harden streaming lifecycle * fix(input): preserve mouse releases outside panes
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-03fix: propagate host color scheme to pane apps (#2214)Can Celik
refs #714
2026-08-03fix: avoid blocking on foreground cwd checks (#2213)Can Celik
refs #2206
2026-08-01fix(windows): detect agents across git bash exec boundaries (#2170)Can Celik
refs #2107
2026-07-31fix: read alternate-screen agent historyOgulcan Celik
2026-07-30fix: add opt-in child-group process detection (#2052)Can Celik
* fix: add opt-in child-group process detection refs #1982 * fix: preserve lifecycle probes without foreground groups refs #1982
2026-07-28perf: skip rendering hidden pty updatesOgulcan 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: report truncated pane readsOgulcan Celik
refs #1717
2026-07-24fix: make known-agent exit process-ownedOgulcan Celik
refs #1792 refs #1648
2026-07-24fix: answer XTWINOPS size queries in panesOgulcan Celik
refs #835
2026-07-20fix: avoid rechecking cached pane cwd (#1616)akbash
refs #1603 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
2026-07-16chore: update vendored libghostty-vtOgulcan Celik
refs #276
2026-07-16fix: follow foreground process group leader cwdOgulcan Celik
refs #1472
2026-07-15feat: add floating popup panesOgulcan Celik
refs #1125
2026-07-13feat: add configurable sidebar metadata tokensOgulcan Celik
2026-07-10feat: add copy mode search and tmux word motionsOgulcan Celik
refs #1230
2026-07-05fix: support custom command keybindings on windowsOgulcan Celik
refs #1041
2026-07-02feat: inject powershell prompt shell integration for cwd reporting on windowsOgulcan Celik
refs #919