diff --git a/.pi/docs/CHANGELOG.md b/.pi/docs/CHANGELOG.md new file mode 100644 index 00000000..f47a5ff4 --- /dev/null +++ b/.pi/docs/CHANGELOG.md @@ -0,0 +1,432 @@ +# Changelog + +## Unreleased + +### Changed +- Moved next-release changelog work into `.pi/docs/CHANGELOG.md` and replaced the end-of-cycle draft prompt with a pre-release audit flow that verifies changelog and documentation coverage before release. + +## [0.5.9] - 2026-05-15 + +### Added +- Added experimental Kitty graphics rendering for local panes and attached clients behind `experimental.kitty_graphics`, including support for larger graphics frames. +- Added `ui.toast.delivery = "system"` for OS-level background notifications, using `notify-send` on Linux and `terminal-notifier` or `osascript` on macOS. +- Added light variants for Catppuccin, Tokyo Night, Gruvbox, One, Solarized, Kanagawa, and Rosé Pine themes. +- Added `ui.mouse_capture = false` for tmux-style mouse behavior, letting the terminal handle normal clicks while still forwarding mouse input to pane apps that request it. + +### Changed +- Moved experimental settings into `[experimental]`. + +### Fixed +- PageUp and PageDown now scroll Herdr pane scrollback for normal panes while still forwarding keys to full-screen or mouse-reporting apps. +- Enhanced tilde key sequences now parse correctly, improving compatibility with terminals that emit them. +- `herdr integration install codex` now enables the current Codex `[features] hooks = true` flag and migrates the deprecated top-level `codex_hooks` flag. + +### Breaking Changes +- `advanced.allow_nested` has moved to `experimental.allow_nested`; update configs that allow nested Herdr launches. +- The client/server protocol is now version 5. Stop and restart any running v0.5.8 server before attaching with this release. + +## [0.5.8] - 2026-05-12 + +### Added +- Added manual pane labels through `herdr pane rename`, the `pane.rename` socket API, an optional `keys.rename_pane` binding, and the right-click pane menu. +- Added `ui.show_agent_labels_on_pane_borders`, which can show detected or reported agent names in split pane borders when no manual pane label is set. +- Added `herdr integration status [--outdated-only]` so installed agent integrations can be checked for legacy or outdated versions. +- Added an optional `keys.open_notification_target` binding for jumping to the pane behind the current notification. +- Added optional `keys.previous_agent` and `keys.next_agent` bindings for cycling through sidebar agent entries. + +### Changed +- Scrolling over the tab bar now switches tabs directly, including overflowing tab bars. + +### Fixed +- Indexed terminal palette colors now render correctly for 256-color terminal apps. +- Hook-based agent integrations now reject stale out-of-order reports and base notifications on effective agent state, reducing duplicate or stuck state changes. +- Background tabs now resize when the outer terminal size changes, preventing stale pane dimensions when switching back to them. +- Client shutdown now drains queued control messages more reliably. +- Pane cursors are now hidden while scrolled back, and omitted while the mobile switcher is open. +- Mobile agent switcher entries now include tab context, making agents easier to identify on narrow terminals. +- macOS foreground job detection now uses process groups, improving agent state tracking for foreground commands. +- Remote SSH no longer fails before connecting when macOS temporary bridge socket paths exceed Unix socket length limits. (#103, thanks @moonsphere) +- Nix-wrapped agent commands are now detected by their underlying agent entrypoint. +- Pane renames made through the socket API now rerender immediately. + +## [0.5.7] - 2026-05-10 + +### Added +- Added ANSI-formatted pane reads to the CLI and socket API with `herdr pane read --format ansi` / `--ansi`, preserving colors and styles for visible and recent pane output. + +### Changed +- The agents panel now highlights the currently focused agent entry, matching the active workspace styling. (#84, thanks @soomtong) + +### Fixed +- Git branch and ahead/behind refreshes now run off the main loop, preventing slow Git status checks from freezing the UI. +- Update and startup flows now detect incompatible running servers earlier and give clear stop/restart guidance instead of trying to attach with a mismatched client/server protocol. +- `herdr update` now downloads and prepares the new binary before stopping a running server, reducing the chance of interrupting an active session when download or install preparation fails. + +## [0.5.6] - 2026-05-09 + +### Added +- Added the `vesper` built-in theme. (#71, thanks @nexxeln) +- Added `herdr --remote `, so you can use Herdr as a thin client for remote servers without SSHing in first. Herdr connects over SSH, bootstraps a matching remote `herdr` binary when needed, starts the remote server automatically, and streams an efficient terminal view back to your local terminal. + +### Changed +- Updated the bundled `libghostty-vt` engine and removed the custom Linux C++ runtime link workaround from static builds. +- CLI workspace, tab, and pane creation now preserve the current focus by default; pass `--focus` to switch to the newly created item. + +### Fixed +- OSC 8 hyperlinks emitted inside panes now remain clickable after Herdr renders them, including titled markdown-style links. +- Agent panel scope now defaults to `all` and is saved to config when changed, so choosing `current` or `all` survives session resets and upgrades. +- Native agent hook state now clears when the detected native agent exits, preventing stale hook-reported status from sticking to a pane. +- Clicking an in-app agent toast now jumps to the relevant pane and clears the toast after focus. + +## [0.5.5] - 2026-05-06 + +### Added +- Added a mobile layout for narrow terminals, making it practical to SSH into your machine and run herdr from your phone. + +### Fixed +- Non-ASCII terminal input is no longer dropped when UTF-8 characters arrive split across multiple reads. +- Native agent detection now clears agents after their foreground process exits and control returns to the shell, preventing stale agent status in the sidebar. +- Pane contents no longer shift horizontally when scrollback appears, keeping the scrollbar gutter stable. + +## [0.5.4] - 2026-05-03 + +### Fixed +- Visible active-tab panes that finish while the outer terminal is unfocused are now marked as seen when you return to herdr, preventing stale done/attention indicators. +- IME candidate windows and mobile SSH cursor tracking now stay anchored to the focused pane during client redraws, including apps that hide the cursor, instead of drifting to sidebar or repaint positions. + +## [0.5.3] - 2026-04-30 + +### Added +- Added named persistent sessions, so you can keep separate herdr environments for different projects or contexts while sharing the same global config. See the docs for the full session CLI. (#57, thanks @fbettag) +- Added `herdr status`, `herdr status server`, and `herdr status client` to inspect the local client, running server, protocol compatibility, socket path, and whether a restart is needed. + +### Changed +- Focused panes can now still alert you through terminal notifications when the herdr terminal window is unfocused, so active work does not go quiet just because you switched to another app. + +### Fixed +- Dragging pane split borders now works when the app inside the pane has mouse reporting enabled, including Claude Code no-flicker mode. (#61, thanks @EYH0602) +- Pressing the prefix key twice now forwards a literal prefix key into the focused pane in client mode again. +- `herdr integration install` and `herdr integration uninstall` now work without requiring a running herdr server. +- Pane PTYs now keep their last attached size while detached, preventing detached output from being resized or rewrapped to fallback dimensions. + +## [0.5.2] - 2026-04-27 + +### Added +- Config can now be reloaded in the running app/server from the global menu or with `herdr server reload-config`, applying safe live settings without restarting the persistent server. + +### Fixed +- Persistent server startup now surfaces config diagnostics in attached clients instead of silently hiding parse or validation errors. +- Pane backgrounds now stay transparent when the host terminal background color is unknown, while explicit terminal cell backgrounds still render correctly. +- Persistent-session toast and sound notifications now target the foreground attached client instead of firing across every connected client. +- Claude Code subagent hook events no longer make the parent Claude pane look idle or released when a subagent finishes, and permissioned tool-call completion keeps the pane in the correct working state. + +## [0.5.1] - 2026-04-25 + +### Added +- Toast notifications can now be delivered through the outer terminal as desktop notifications. Configure this with `ui.toast.delivery = "terminal"`; see `CONFIGURATION.md` for details. +- Herdr now writes separate capped support logs for app, client, and server modes, making persistent-session issue reports easier to diagnose without unbounded log growth. +- The bundled opencode plugin now reports question prompts as blocked while waiting for user input, then returns to working or idle when answered or dismissed. Question prompts are also detected by the default terminal-screen heuristics. (#51, thanks @mspiegel31) + +### Changed +- Routine API request traces now log at debug level by default, making normal support logs smaller and easier to read while preserving detailed traces when debug logging is enabled. + +### Fixed +- Pasted text and other reverse-video terminal content now stays readable when pane backgrounds are transparent. (#45, thanks @EYH0602) +- Panes now advertise a stable `TERM=xterm-256color` and `COLORTERM=truecolor` by default, improving redraw and cursor behavior in shells and remote sessions. +- Pane scrollbars once again reserve their own rightmost column instead of overlaying terminal content in persistent session mode. +- Terminal-delivered toast notifications now use the server-approved delivery decision in persistent session mode, so attaching clients do not incorrectly suppress them. +- In-app toast delivery now stays inside herdr instead of also forwarding a terminal/desktop notification. + +## [0.5.0] - 2026-04-21 + +### Breaking Changes Please Read +- herdr now defaults to a persistent server/client session model. running `herdr` starts or reattaches to a background session server instead of launching the old single-process UI. +- quitting the UI in default mode now detaches the current client and leaves the shared session running. use `herdr server stop` to stop the background server explicitly. +- the old monolithic behavior is still available as an escape hatch with `herdr --no-session`. + +### Added +- Persistent sessions are now the default product behavior. You can detach and reattach without stopping pane processes. +- Added the thin client and headless server as first-class product components, including auto-detect launch, explicit `herdr client`, and `herdr server stop`. +- Sessions now restore cleanly after full restart, preserving workspaces, tabs, panes, and running process state. +- Multi-client attach is now supported. Multiple clients can connect to the same shared session. + +### Changed +- In persistence mode, in-app quit actions now detach the current client by default instead of shutting down the whole background server. +- The current persistence model is a shared session view across attached clients. It is not yet full tmux-style per-client independent navigation. +- Restored sessions now land in terminal mode, while fresh sessions still start in navigate mode. + +## [0.4.11] - 2026-04-16 + +### Breaking Changes Please Read +- The update flow changes in `0.4.11`. Herdr no longer installs updates silently in the background. Starting with this release, herdr only checks for updates and shows them in the UI. To install a new release, quit herdr and then run `herdr update` manually in your shell. +- This prepares the upcoming `0.5.0` persistence release. Herdr is moving from the old single-binary update model toward a persistent server/client session model, so your workspace can keep running while clients attach, detach, and reconnect. +- The reason for this change is upgrade safety. Herdr needs to stop the old running process cleanly before the new client/server model takes over, so manual update avoids mixed-version states during the transition. + +### Added +- Hook-reported agent state can now use custom agent labels, so integrations are no longer limited to herdr’s built-in agent names. Custom labels now flow through pane/workspace UI and the socket API anywhere agent names are shown. + +## [0.4.10] - 2026-04-14 + +### Added +- Prefix mode now supports custom command keybindings via `[[keys.command]]`, so you can launch detached shell helpers or open temporary overlay panes from inside herdr using the active workspace, tab, pane, and cwd context. +- Pressing the prefix key twice now forwards a literal prefix keystroke into the focused pane, which makes nested tools and terminal apps that use the same prefix easier to control. + +### Fixed +- App-level key handling now normalizes enhanced keyboard reporting consistently, so shifted bindings and text like `?` and uppercase characters work correctly in navigate mode and text-entry UI. +- Ctrl+letter input is now encoded correctly when pane apps enable kitty keyboard mode, improving compatibility with terminal programs that expect CSI-u style key reporting. +- The collapsed sidebar now keeps the active workspace visibly highlighted even while you stay in terminal mode. +- Droid Mission Control screens are now treated as idle instead of active work, reducing false busy-state detection. + +## [0.4.9] - 2026-04-13 + +### Fixed +- Droid's primary-screen redraws no longer erase pane scrollback inside herdr, while normal scrollback-clear behavior is preserved elsewhere. +- `q` is now dedicated to quitting in navigate mode instead of also acting as a generic cancel key in modals and overlays, reducing accidental quits. +- Tab bar scrolling is tighter: the scroll-right button and new-tab button now sit directly adjacent to the last visible tab without a gap, and manual scroll no longer overscrolls past the last tab. + +## [0.4.8] - 2026-04-12 + +### Added +- Themes can now set `panel_bg = "reset"` to let herdr’s panel chrome inherit the host terminal background instead of painting an opaque panel fill. This also accepts the aliases `default`, `none`, and `transparent`. +- Ghostty-backed panes now preserve the host terminal’s default background when it matches the outer terminal theme, so terminal window transparency can show through pane content instead of being repainted as an opaque color. + +### Fixed +- Clipboard writes now prefer native platform clipboard tools (`pbcopy`, `wl-copy`, `xclip`, or `xsel`) before falling back to OSC 52, which makes copy operations from panes more reliable across terminal setups. + +## [0.4.7] - 2026-04-10 + +### Added +- The tab bar now handles large tab sets better: you can scroll overflowing tabs with the mouse controls or wheel, and reorder tabs by dragging them. +- `workspace create` and `tab create` now return the created root pane in their JSON response, so automation can act on the new pane immediately without an extra lookup. + +### Fixed +- Background panes that start idle no longer show up as `done` or trigger finished-state attention until they have actually transitioned from working or blocked to idle. +- Left-click now focuses panes and right-click now opens the pane context menu even when the inner TUI has mouse reporting enabled, fixing apps like Claude Code. (#25, thanks @othavioquiliao) +- OSC 52 clipboard writes from apps running inside panes now reach the host clipboard correctly, including copy requests emitted by child processes inside the pane. +- `pane close` now removes only the targeted tab when other tabs still exist in the workspace, instead of closing the whole workspace. +- Amp approval prompts are now detected more reliably as blocked, including tool-call, command, and file edit/create approval screens. + +### Breaking Changes +- Socket API clients that match `result.type` exactly need to handle `workspace_created` and `tab_created` for `workspace.create` and `tab.create`; these calls no longer return `workspace_info` and `tab_info`. + +## [0.4.6] - 2026-04-09 + +### Fixed +- Agent state detection is now more reliable when panes are scrolled back, when Codex is running in narrow panes, and when Claude opens slash-command or settings menus, reducing false blocked or idle states. +- Mouse-driven terminal text selection now autoscrolls into pane scrollback and clears cleanly after copy, so selecting beyond the visible viewport works as expected. +- Pane terminal colors now return to the outer terminal theme after fullscreen TUIs exit, fixing cases like Droid leaving stale background colors behind. This restore path now also works correctly on macOS. + +## [0.4.5] - 2026-04-09 + +### Added +- `herdr workspace create` and `herdr tab create` now support `--label`, so scripts and agents can name new workspaces and tabs immediately instead of creating them first and renaming them afterward. +- The global menu now includes a manual **reload keybinds** action, so you can apply `config.toml` keybinding changes without restarting herdr. +- The socket API and CLI now expose a `done` agent status, including `herdr wait agent-status --status done`, so automation can distinguish finished agent runs from panes that are merely idle. + +### Changed +- Session state is now saved automatically with a debounce while you work, so recent workspace, tab, pane, and sidebar changes are preserved more reliably even if herdr exits unexpectedly. + +### Fixed +- Only the focused pane now owns the terminal cursor, which removes stray cursor blocks from unfocused panes. +- In-app **What's New** / release notes now render inline code spans and fenced code blocks correctly. +- Default numbered tabs now stay auto-named when you keep or rename them back to their numeric label, so generated tab numbering stays compact and predictable. + +## [0.4.4] - 2026-04-08 + +### Changed +- The expanded sidebar can now be split into resizable workspace and agent sections with a draggable divider, and that section sizing is preserved across restarts. + +### Fixed +- IME input now works properly for Chinese and other UTF-8 input methods in pane terminals, so candidate selection no longer falls back to typing raw digit keys. (#9, thanks @Edmund-a7) +- `herdr pane run ...` now uses the bracketed-paste-aware input path, improving compatibility with shells and terminal apps that expect pasted command text to arrive atomically. +- The local socket API is more robust and secure: its Unix socket is now restricted to the current user, and long-running output waits and subscriptions stop cleanly on disconnect or shutdown instead of hanging indefinitely. + +## [0.4.3] - 2026-04-07 + +### Fixed +- Update checks and in-app **What's New** release notes no longer depend on GitHub’s release API, which avoids the transient 403 failures from the previous update path. +- `herdr pane run ...` now submits the full command atomically in one request, fixing cases where scripted commands did not reliably execute because the final Enter was sent separately. +- Bare line-feed input is now preserved in raw terminal input instead of being normalized to Enter, fixing Linux terminal cases where inputs like Shift+Enter or Ctrl+J could be interpreted incorrectly. + +## [0.4.2] - 2026-04-07 + +### Added +- The expanded sidebar agent panel can now switch between the current workspace and all workspaces, so you can scan and jump to agents across the whole session. +- The collapsed sidebar now shows compact per-pane agent indicators, so you can keep an eye on agent activity without reopening the full sidebar. + +### Changed +- The sidebar now handles larger workspace sets more cleanly: the workspace section has headers, its own scrolling, better-aligned drag/drop slots, and manual width changes persist across restarts. Double-clicking the divider resets it to the configured default width. +- Pane scrollback is now configured with `advanced.scrollback_limit_bytes`, matching Ghostty's byte-based scrollback limit. Set it to `0` to disable pane scrollback entirely. The old `advanced.scrollback_lines` key is still accepted as an alias, but it now uses the same byte-based value. +- Linux release binaries now ship with libghostty SIMD enabled again without reintroducing the musl startup issue, restoring the optimized Linux build path. + +### Fixed +- Typing in pane terminals on macOS is responsive again after the Ghostty migration, by keeping a persistent per-pane Ghostty key encoder instead of rebuilding it on every keypress. +- The collapsed sidebar expand toggle works again. +- Creating a new tab now waits until you confirm the dialog, so cancelling the new-tab flow no longer leaves behind an unwanted tab. +- Copying selected pane text now uses Ghostty's native selection extraction, which preserves wrapped text and wide characters more accurately. +- Session restore is more tolerant of older and current snapshot formats, including pre-tab session files. + +## [0.4.1] - 2026-04-06 + +### Fixed +- Fixed Linux release binaries crashing on startup. + +## [0.4.0] - 2026-04-05 + +### Major Changes +- Herdr now uses a Ghostty-backed terminal engine as its pane runtime. +- The legacy vt100 pane backend has been removed, making Ghostty the single terminal backend going forward. + +### UX and Interaction +- Workspaces can now be reordered by dragging them in the sidebar. +- Notification sounds now support custom mp3 file overrides, with either one shared file or separate files for finished vs needs-attention alerts. + +### API and Integration +- Workspace API ids are now stable, making socket and CLI automation more predictable across workspace changes and restores. + +### Packaging and Runtime +- macOS builds now statically link the vendored `libghostty-vt`, preserving the single-binary install and update flow. + +## [0.3.2] - 2026-04-03 + +### Changed +- The global launcher now surfaces update-related actions more clearly: when release notes are available you can open **What's New**, and when an update has been downloaded you can **quit to apply update** directly from the menu. +- Release notes are now retained as the latest available notes after you dismiss the startup modal, so you can reopen them later from the UI instead of only seeing them once. + +### Fixed +- Fixed held-key repeat in terminal panes on macOS terminals that send explicit repeat events through the enhanced keyboard protocol, restoring continuous backspace, character, and arrow-key repeat without letting modal close/confirm key repeats leak into the shell. + +## [0.3.1] - 2026-04-03 + +### Added +- New tabs now open directly into the rename flow, with the default tab name prefilled and replaced on first type so you can name tabs as you create them. + +### Changed +- Polished modal layout and spacing across onboarding, settings, keybind help, and release notes so overlays feel more consistent and their content/actions line up more cleanly. +- Debug builds now use separate runtime/config paths from normal releases, which avoids local development sessions colliding with your main herdr install. + +### Fixed +- Starting a second herdr instance against an active socket now fails fast with a clear error instead of clobbering the running session. +- Fixed pane and agent state updates being dropped under internal event queue pressure, which could leave a pane showing stale status after work finished. +- Fixed onboarding modal sizing and click targets, and corrected release-notes scroll calculations when a scrollbar is present. + +## [0.3.0] - 2026-04-03 + +### Major Changes +- Added tabs within workspaces, so a single workspace can now hold multiple terminal tab contexts with their own pane layouts. +- Added first-class tab support to the local socket API and CLI wrappers, including `herdr tab ...` commands and tab ids like `1:2` alongside workspace-scoped pane ids. +- Added built-in direct integrations for pi, claude code, codex, and opencode, plus authoritative hook-driven state reporting so supported agents can report semantic state directly instead of relying only on screen heuristics. +- Added a post-update release-notes screen so herdr can explain what changed after an update is installed. + +### UX and Controls +- Added optional direct pane-focus keybindings for terminal mode, so you can switch panes with modifier shortcuts like `alt+h` or `alt+right` without entering navigate mode first. +- Reworked keybind discoverability so the in-app keybind help now shows all supported actions, including optional bindings that are currently unset. +- Keybind help now uses a centered scrollable modal with mouse and keyboard scrolling, matching the release-notes interaction model more closely. +- Popups and action-button interactions now use more consistent modal geometry and button semantics across the UI. +- Polished the sidebar agent section so it focuses on detected agents only and uses clearer two-line agent cards with more breathing room. + +### Behavior Fixes +- Hook-driven agent state updates now stay correct in tabbed workspaces. +- Modifier-only keypresses no longer leak into panes as stray input. +- Multi-tab agent labels now include tab names when that extra context matters. +- Workspace identity now follows the first tab's root pane again instead of stale creation-time cwd. +- Background notification suppression is now tab-aware rather than workspace-wide, so background tabs in the current workspace can still alert correctly. + +### Documentation +- Updated the README, configuration guide, integrations guide, skill, and socket API docs to reflect tabs, direct integrations, unset optional keybindings, direct terminal-mode navigation examples, workspace-scoped pane ids, and the current workspace identity/sidebar model. + +## [0.2.4] - 2026-04-01 + +### Fixed +- Fixed a macOS-only startup misdetection where pi could briefly appear as codex in the sidebar because process environment entries were being parsed as command-line arguments. + +## [0.2.3] - 2026-03-31 + +### Changed +- Mouse wheel handling now follows the tmux/Ghostty model more closely: fullscreen apps receive wheel input when they own scrolling, while herdr keeps host scrollback for panes that are behaving like a normal terminal transcript. +- Pane scrollbars now only appear when herdr has real host scrollback for that pane, instead of implying a host-managed scroll position for app-owned scrolling. + +### Fixed +- Fixed Codex and pi panes becoming unscrollable in herdr by preserving recoverable host history for top-anchored normal-screen output, without relying on alternate-screen scrollback retention. +- Fixed pane wheel routing so apps using mouse reporting or alternate-scroll behavior can receive scroll input directly instead of having herdr always intercept it. + +## [0.2.2] - 2026-03-31 + +### Fixed +- Fixed pane scrollbars so they reserve their own lane instead of drawing over terminal content, which makes scrolling and scrollbar dragging behave more cleanly in narrow panes. +- Fixed alternate-screen scrollback handling so full-screen terminal apps can preserve recoverable history inside herdr panes instead of losing rows that scroll off. +- Fixed Codex in herdr panes losing transcript/history while running in alternate screen, so past output remains scrollable instead of disappearing as the session grows. +- Hid the rendered terminal cursor while a pane is scrolled back, avoiding stray cursor blocks appearing in the wrong place during history navigation. + +## [0.2.1] - 2026-03-31 + +### Added +- Herdr now checks for updates at startup and periodically while it stays open, so long-running sessions can still discover new releases without a restart cycle. +- Added a lightweight bottom-right toast when an update has been downloaded and is ready, with a simple restart-to-use-it flow. + +### Changed +- Rendering is now driven more directly by app events instead of relying as much on polling, which makes the UI feel snappier and cuts unnecessary redraw work. + +### Fixed +- Restored smooth fast spinner animation for working agents. +- Closing a pane or workspace now reliably terminates the processes running inside that pane session instead of leaving shells or child processes behind. +- Fixed bracketed paste handling so incomplete paste sequences are preserved across read timeouts instead of being dropped or misread. + +## [0.2.0] - 2026-03-30 + +### Added +- Added a local Unix socket API for controlling running herdr sessions, including workspace and pane management, pane reads, text/key input, pane splitting, and output waits. +- Added event subscriptions over the socket API for workspace and pane lifecycle events, pane output matches, and agent state changes. +- Added CLI wrappers on top of the socket API with `herdr workspace ...`, `herdr pane ...`, and `herdr wait ...`, using compact public ids like `1` and `1-2` for scripting and agent orchestration. +- Added a settings popup with mouse support for changing themes, sound alerts, and toast notifications from inside herdr. +- Added 9 built-in themes: catppuccin, tokyo night, dracula, nord, gruvbox, one dark, solarized, kanagawa, and rosé pine. +- Added interactive pane scrollbars, manual sidebar resizing, and upstream git ahead/behind indicators in the workspace sidebar. + +### Changed +- Redesigned the sidebar into a two-section layout that separates workspace-level triage from per-agent detail, making it easier to supervise multiple agents in parallel. +- Agent state names exposed in the UI and integration surfaces now use `working` and `blocked`. +- Herdr now blocks nested launches by default when started inside a herdr-managed pane; set `advanced.allow_nested = true` to opt back in. + +### Fixed +- Improved terminal keyboard protocol parsing and input forwarding across terminal variants, including better handling for shifted printable keys. +- Fixed Ghostty on macOS misparsing some arrow-key and modifier/enhanced key sequences. +- Refined sidebar rollups and pane ordering so workspace status and agent lists stay more stable and predictable. + +### Documentation +- Refreshed the README, socket API reference, and reusable agent skill docs to better explain herdr's agent multiplexer model and integration surface. + +## [0.1.2] - 2026-03-28 + +### Added +- Added first-run onboarding flow that lets you choose notification preferences (sound and toast) on startup. +- Added optional visual toast notifications in the top-right corner for background workspace events (completion and attention-needed alerts). +- Added configurable keybindings for all navigate mode actions: new workspace, rename workspace, close workspace, resize mode, and toggle sidebar. See `CONFIGURATION.md` for the full key reference. +- Added configuration validation with startup diagnostics. Invalid key combinations or duplicate bindings now fall back to safe defaults with a visible warning. + +### Changed +- **Breaking:** Default prefix key changed from `ctrl+s` to `ctrl+b` to avoid common terminal flow control conflicts. +- Workspaces now derive their identity from the repository or folder of their root pane, updating automatically as you navigate. Custom names act as overrides rather than static labels. +- Sidebar now shows workspace numbers again in expanded view. +- Refined sidebar presentation with consistent marker/name/state ordering and comma-separated agent summaries. +- Keybinding parser now accepts special keys (`enter`, `esc`, `tab`, `backspace`, `space`) and function keys (`f1`–`f12`). + +### Documentation +- Split configuration reference into a dedicated `CONFIGURATION.md` file with full keybinding documentation and config diagnostics explanation. + +## [0.1.1] - 2026-03-28 + +### Added +- Added optional sound notifications for agent state changes, including a completion chime when background work finishes and an alert when an agent needs input. +- Added per-agent sound overrides under `[ui.sound.agents]`, so you can mute or enable notifications by agent instead of using one global setting. Droid notifications are muted by default. + +### Changed +- Request alerts now play even when the agent is in the active workspace, while completion sounds remain limited to background workspaces. + +### Fixed +- Improved foreground job detection on Linux and macOS so herdr can recognize agents that run through wrapper processes or generic runtimes, including cases like Codex running under `node`. +- Made Claude Code state detection more stable by handling more spinner variants and smoothing short busy/idle flicker during screen updates. + +## [0.1.0] - 2026-03-27 + +### Added +- Initial release. diff --git a/.pi/prompts/draft-changelog.md b/.pi/prompts/pre-release-audit.md similarity index 50% rename from .pi/prompts/draft-changelog.md rename to .pi/prompts/pre-release-audit.md index de9f3c78..40ab4309 100644 --- a/.pi/prompts/draft-changelog.md +++ b/.pi/prompts/pre-release-audit.md @@ -1,7 +1,7 @@ --- -description: Draft changelog entry from commits and PRs since last tag +description: Audit next-release docs and changelog before release --- -Draft a changelog entry for this repo. +Audit release readiness for this repo. Optional starting ref override: `$1` Extra user intent/context: `${@:2}` @@ -10,7 +10,7 @@ Process: 1. Determine the base ref. - If `$1` is non-empty and looks like a ref/tag, use it. - - Otherwise use the latest release tag, preferring the repo's semver tag style (for example `v0.1.2`): + - Otherwise use the latest release tag, preferring the repo's semver tag style: ```bash git describe --tags --abbrev=0 ``` @@ -29,7 +29,7 @@ Process: - Look for first-parent subjects that indicate PR merges, including squash merges like `title (#123)`. - If GitHub CLI is available and the PR number is known, use it to fetch PR title/body for context. - Treat a merged PR as the primary release unit. - - Do **not** also list the individual commits that belong to that PR. + - Do **not** also list individual commits that belong to that PR. 4. Handle direct commits separately. - Any commit in the range not represented by a merged PR should be considered on its own. @@ -44,34 +44,36 @@ Process: - formatting-only changes - comment-only/doc-only changes unless they materially affect users -6. Audit public docs for release readiness. - - Treat `HEAD` as the release candidate that will be released after the changelog is drafted. +6. Audit `.pi/docs/CHANGELOG.md`. + - Treat root `CHANGELOG.md` as the latest released changelog. + - Treat `.pi/docs/CHANGELOG.md` as the next-release changelog. + - Compare meaningful user-facing changes in the commit range against `.pi/docs/CHANGELOG.md`. + - Flag missing entries for new features, bug fixes, removals, breaking changes, defaults, compatibility changes, user-visible command/config/API behavior, and security-relevant changes. + - Flag stale entries that do not appear to correspond to shipped changes in the range. + - Flag entries that are too implementation-focused or unclear for end users. + - Preserve the existing changelog style and sections: `Added`, `Changed`, `Fixed`, `Removed`, and `Breaking Changes` when applicable. + +7. Audit next-release public docs. - Treat root `README.md`, `CONFIGURATION.md`, `INTEGRATIONS.md`, and `SOCKET_API.md` as the latest released public docs. - - Treat `.pi/docs/README.md`, `.pi/docs/CONFIGURATION.md`, `.pi/docs/INTEGRATIONS.md`, and `.pi/docs/SOCKET_API.md` as the next-release versions of those public docs. - - Compare meaningful user-facing changes in the range against `.pi/docs/` first. Flag missing next-release docs for new or changed features, commands, config keys, protocol behavior, integrations, defaults, and compatibility notes that should be documented for this release. - - Compare `.pi/docs/` against the root docs. Flag each difference as either intended to ship in this release, stale, or needing user decision. + - Treat `.pi/docs/README.md`, `.pi/docs/CONFIGURATION.md`, `.pi/docs/INTEGRATIONS.md`, and `.pi/docs/SOCKET_API.md` as the next-release versions. + - Compare meaningful user-facing changes in the range against `.pi/docs/` first. + - Flag missing next-release docs for new or changed features, commands, config keys, protocol behavior, integrations, defaults, and compatibility notes. + - Compare `.pi/docs/` against the root docs. Flag each difference as intended to ship in this release, stale, or needing user decision. - Also audit `website/` and example config snippets for release readiness, but keep them aligned with the latest published release unless the user explicitly asks for prerelease docs. - - Do not edit docs unless the user explicitly asks; report the docs audit alongside the changelog draft. - - When the user asks to apply the release draft, update `CHANGELOG.md`, apply approved documentation changes to `.pi/docs/`, then copy the approved `.pi/docs/` files into the matching root public docs so `just release-docs-check` passes. -7. Draft the changelog entry. - - Group items under these sections when applicable: - - `### Added` - - `### Changed` - - `### Fixed` - - `### Removed` - - `### Breaking Changes` - - Write for end users, not for commit archaeology. - - Merge related low-level commits into one human-readable bullet when appropriate. - - Keep bullets concrete and outcome-focused. - - Prefer one bullet per meaningful shipped change. - - If there are both PRs and direct commits, include both, but exclude direct commits already covered by PRs. - - For merged PR items, append the PR reference and contributor thanks inline when appropriate, in the form `(#123, thanks @author)`. Do this for merged PRs, not for direct commits. +8. Verify finalization state. + - Before `just release`, approved `.pi/docs/*` files must be copied to their root counterparts. + - Run or recommend: + ```bash + just release-docs-check + ``` + - This check must include `README.md`, `CONFIGURATION.md`, `INTEGRATIONS.md`, `SOCKET_API.md`, and `CHANGELOG.md`. + - Do not run `just release` unless the working tree is clean and the docs check passes. -8. Respect repo reality. - - If `CHANGELOG.md` exists, read it before proposing edits and follow its existing style. - - If no changelog file exists, say so explicitly and produce a draft entry only. - - Do not edit files yet unless the user explicitly asks you to apply the draft. +9. Apply changes only when asked. + - Do not edit files during the audit unless the user explicitly asks you to apply fixes. + - When asked to apply audit fixes, update `.pi/docs/CHANGELOG.md` and any relevant `.pi/docs/` files first. + - When asked to finalize release docs, copy approved `.pi/docs/` files into the matching root files and run `just release-docs-check`. Output format: @@ -79,8 +81,11 @@ Output format: - `PRs included:` - `Direct commits included:` - `Excluded as housekeeping:` +- `Next-release changelog audit:` - `Next-release docs audit:` -- `Public docs finalization plan:` -- `Proposed changelog entry:` +- `Root finalization status:` +- `Required changes before release:` +- `Proposed changelog edits:` +- `Proposed docs edits:` If the range has no meaningful user-facing changes, say that plainly instead of forcing entries. diff --git a/AGENTS.md b/AGENTS.md index b73c77cf..3f025ac2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,10 +51,10 @@ Unit tests live next to the code (`#[cfg(test)] mod tests`). If you add behavior ## Conventions - Conventional commits, lowercase, no emojis. -- Do not edit `CHANGELOG.md` during normal feature or fix work. Changelog entries are drafted and applied immediately before release. -- Treat the root public docs as the latest released docs. Do not document unreleased behavior in root `README.md`, `CONFIGURATION.md`, `INTEGRATIONS.md`, or `SOCKET_API.md` during normal feature or fix work. -- Treat `.pi/docs/README.md`, `.pi/docs/CONFIGURATION.md`, `.pi/docs/INTEGRATIONS.md`, and `.pi/docs/SOCKET_API.md` as the next-release versions of those public docs. When unreleased work needs public documentation, update the matching file under `.pi/docs/` instead of the root file. -- Before release, copy the approved `.pi/docs/` versions into the root public docs. `just release` blocks until each root public doc is identical to its `.pi/docs/` counterpart. +- Do not edit root `CHANGELOG.md` during normal feature or fix work. For user-facing features, fixes, removals, breaking changes, and meaningful behavior changes, update `.pi/docs/CHANGELOG.md` in the same change when it makes sense. +- Treat the root public docs as the latest released docs. Do not document unreleased behavior in root `README.md`, `CONFIGURATION.md`, `INTEGRATIONS.md`, `SOCKET_API.md`, or `CHANGELOG.md` during normal feature or fix work. +- Treat `.pi/docs/README.md`, `.pi/docs/CONFIGURATION.md`, `.pi/docs/INTEGRATIONS.md`, `.pi/docs/SOCKET_API.md`, and `.pi/docs/CHANGELOG.md` as the next-release versions of those public docs. When unreleased work needs public documentation, update the matching file under `.pi/docs/` instead of the root file. +- Before release, copy the approved `.pi/docs/` versions into the root public docs. `just release` blocks until each root public doc and `CHANGELOG.md` are identical to their `.pi/docs/` counterparts. - Keep website copy and config examples aligned with the latest published release unless the user explicitly asks for prerelease docs. - Put local PRDs, planning notes, and exploratory specs under `.prd/`; that directory is ignored and locally controlled. - When a commit fully fixes a GitHub issue, include `fixes #` in the commit body so GitHub closes it on merge. @@ -64,7 +64,7 @@ Unit tests live next to the code (`#[cfg(test)] mod tests`). If you add behavior ## Releases -Before cutting a release, draft the upcoming notes under `## Unreleased` in `CHANGELOG.md`, review `.pi/docs/` against the root public docs, and copy the approved next-release docs into the root public docs. The release script promotes the changelog section into the versioned entry. +Before cutting a release, run `/pre-release-audit` to compare commits since the last tag against `.pi/docs/CHANGELOG.md` and `.pi/docs/`, then copy the approved next-release docs and changelog into the root public docs. The release script promotes the root changelog's `## Unreleased` section into the versioned entry and copies the prepared changelog back to `.pi/docs/CHANGELOG.md` so the next cycle starts clean. Default release flow: diff --git a/justfile b/justfile index e903860f..30fabe1b 100644 --- a/justfile +++ b/justfile @@ -32,9 +32,9 @@ build: build-libghostty-vt: scripts/build_vendored_libghostty_vt.sh -# Check that public docs have been finalized from .pi/docs before release +# Check that public docs and changelog have been finalized from .pi/docs before release release-docs-check: - @for file in README.md CONFIGURATION.md INTEGRATIONS.md SOCKET_API.md; do \ + @for file in README.md CONFIGURATION.md INTEGRATIONS.md SOCKET_API.md CHANGELOG.md; do \ if ! diff -u "$file" ".pi/docs/$file"; then \ echo "error: $file differs from .pi/docs/$file; finalize release docs before releasing"; \ exit 1; \ @@ -53,10 +53,11 @@ release version: fi just release-docs-check python3 scripts/changelog.py prepare --version {{version}} + cp CHANGELOG.md .pi/docs/CHANGELOG.md sed -i.bak 's/^version = ".*"/version = "{{version}}"/' Cargo.toml && rm -f Cargo.toml.bak cargo update -p herdr --offline just check - git add CHANGELOG.md Cargo.toml Cargo.lock + git add CHANGELOG.md .pi/docs/CHANGELOG.md Cargo.toml Cargo.lock git diff --cached --quiet || git commit -m "release: v{{version}}" git tag -a v{{version}} -m "v{{version}}" git push --follow-tags