Skip to content

feat: add configurable tab bar status - #2586

Merged
ogulcancelik merged 10 commits into
masterfrom
feat/tab-bar-status
Aug 9, 2026
Merged

ogulcancelik merged 10 commits into
masterfrom
feat/tab-bar-status

Conversation

@ogulcancelik

Copy link
Copy Markdown
Collaborator

Summary

  • add an ordered ui.tab_bar_right status area with zoom, hostname, datetime, literal text, and asynchronously refreshed command output
  • resolve machine values and commands on the server so remote sessions show remote state
  • keep tabs usable by yielding the complete status area on narrow rows, with configurable separators only between visible entries
  • bound command scheduling and output, prevent overlap, cancel stale work on reload, and preserve the existing per-tab zoom markers

Attribution

This generalizes the focused work from @dhh in #2560 and #2562. All four original commits are preserved in this branch with David's authorship.

Supersedes #2560 and #2562.

Testing

  • just check
  • live named-session smoke test covering ordered text, hostname, datetime, command output, separators, and narrow-window yielding

dhh and others added 5 commits August 9, 2026 22:21
Reserve the right edge of the tab row for a ZOOM pill while the
focused pane is zoomed, matching the accent style of the mode bars.
The per-tab Z suffix stays; the pill makes the zoomed state visible
at a glance like tmux's status-right flag.
Add ui.tab_bar_hostname to display the machine's hostname at the right
edge of the tab row, like tmux's #h in status-right. The value resolves
where the server renders, so remote sessions show the remote host. Off
by default.
@kangal-bot kangal-bot added the ai-review Trigger automated AI reviews for pull requests admitted by the PR gate label Aug 9, 2026
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Changes

Tab-bar status system

Layer / File(s) Summary
Status configuration and contracts
Cargo.toml, src/config/*, scripts/*, docs/next/*, src/main.rs
Adds configurable zoom, hostname, datetime, text, and command entries with defaults, validation, diagnostics, documentation, and parser support.
Status runtime and command execution
src/app/state.rs, src/app/tab_bar_status.rs, src/events.rs, src/platform/*
Adds platform data providers, scheduled refreshes, asynchronous commands, output limits, sanitization, timeouts, cancellation, and stale-result rejection.
Application lifecycle integration
src/app/mod.rs, src/app/runtime.rs, src/app/api.rs, src/app/actions.rs, src/app/input/navigate.rs, src/server/headless.rs
Initializes and reloads status definitions, schedules status tasks, handles completion events, and propagates state changes.
Right-side layout and rendering
src/ui.rs, src/ui/tabs.rs
Reserves space for visible status entries, renders separators and zoom indicators, prioritizes tab controls on narrow rows, and adds layout tests.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Config as UiConfig
  participant App
  participant Runtime as scheduled task loop
  participant Command as tab_bar_status command task
  participant Event as AppEvent
  participant UI as tab-bar renderer
  Config->>App: configure tab-bar status entries
  App->>Runtime: schedule refresh work
  Runtime->>Command: execute due command
  Command->>Event: send TabBarCommandFinished
  Event->>App: apply current generation result
  App->>UI: update TabBarStatusSegment state
  UI->>UI: reserve and render status area
Loading

Possibly related PRs

  • herdrdev/herdr#2560: Extends zoom indicator behavior in the same tab-bar layout and rendering code.
  • herdrdev/herdr#2562: Extends hostname tab-bar behavior into the configurable multi-entry status area.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 34.25% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: configurable tab-bar status entries.
Description check ✅ Passed The description directly explains the configurable status area, server-side resolution, narrow-row behavior, safeguards, and testing.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/tab-bar-status

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (6)
scripts/test_config_reference_check.py (1)

35-36: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Test the production Vec<TabBarRightEntryConfig> shape.

The sample uses a direct StatusConfig field. Production uses ui.tab_bar_right: Vec<TabBarRightEntryConfig>. This test does not verify that the reference parser preserves enum values for the configured array field. Change the sample and assertion to use tab_bar_right: Vec<TabBarRightEntryConfig>.

Also applies to: 68-80, 147-149

Cargo.toml (1)

41-42: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Document the time dependency rationale.

Add a short Cargo manifest comment stating that time parses and validates ui.tab_bar_right datetime formats. No direct chrono or jiff dependency provides this capability. Run just check before commit.

Source: Coding guidelines

src/app/tab_bar_status.rs (2)

133-153: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Compute the command environment only when a command is due.

handle_scheduled_tasks runs on every event-loop iteration. This code calls self.custom_command_env() on every pass whenever at least one command entry is configured, even when no runtime is due. custom_command_env calls std::env::current_exe() and pane_cwd.is_dir(), so each pass performs filesystem syscalls. Under PTY activity the loop iterates frequently.

Resolve the environment lazily on the first due runtime.

♻️ Proposed lazy environment resolution
         let generation = self.tab_bar_status_generation;
-        let (environment, cwd) = self.custom_command_env();
-        for runtime in &mut self.tab_bar_commands {
+        let due = self
+            .tab_bar_commands
+            .iter()
+            .any(|runtime| runtime.task.is_none() && now >= runtime.next_run_at);
+        if !due {
+            return changed;
+        }
+        let (environment, cwd) = self.custom_command_env();
+        for runtime in &mut self.tab_bar_commands {
             if runtime.task.is_some() || now < runtime.next_run_at {
                 continue;
             }

468-486: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consider adding a test for the datetime refresh path.

The tests cover command spawning, staleness, abort-on-reload, and deadline behavior. No test exercises the datetime branch of handle_tab_bar_status_tasks.

That branch owns two behaviors worth pinning: it writes the formatted value into the segment identified by segment_index, and it reports changed only when the value differs. A test can configure a Datetime entry, call handle_tab_bar_status_tasks with a now past the deadline, and assert that the segment holds a non-empty value and that a second immediate call reports no change.

src/app/input/navigate.rs (1)

861-861: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider relocating custom_command_env out of the input module.

The visibility widening is correct and minimal for the new caller in src/app/tab_bar_status.rs. The function builds a command environment; it contains no input handling. It now serves two unrelated consumers: key-bound custom commands and tab-bar status commands.

Moving it to a shared command-runtime module would keep the input/runtime separation in app/ intact. This is optional and can follow later.

As per coding guidelines: "Avoid god objects and preserve the existing separation of application state, actions, and input within app/."

Source: Coding guidelines

src/ui/tabs.rs (1)

466-494: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consider deriving the rendered layout and the reserved width from one helper.

tab_bar_status_width computes the total reserved width. This loop independently recomputes the same per-segment and per-separator widths to place each Rect. The two must agree exactly, otherwise the status text overflows the tab-bar row or leaves a gap.

The invariant currently holds. It is not enforced by the code. A single helper that returns the placed (Rect, text, accent) tuples, with the reserved width derived from the last rect, would make the agreement structural instead of conventional.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 389db0b8-5daf-4dd8-8e2b-9cba923f331c

📥 Commits

Reviewing files that changed from the base of the PR and between e2aa86a and 352592a.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (26)
  • Cargo.toml
  • docs/next/CHANGELOG.md
  • docs/next/website/src/content/docs/configuration.mdx
  • docs/next/website/src/data/config-reference.json
  • scripts/config_reference_check.py
  • scripts/test_config_reference_check.py
  • src/app/actions.rs
  • src/app/api.rs
  • src/app/input/navigate.rs
  • src/app/mod.rs
  • src/app/runtime.rs
  • src/app/state.rs
  • src/app/tab_bar_status.rs
  • src/config.rs
  • src/config/model.rs
  • src/config/tab_bar.rs
  • src/events.rs
  • src/main.rs
  • src/platform/fallback.rs
  • src/platform/linux.rs
  • src/platform/macos.rs
  • src/platform/unix_common.rs
  • src/platform/windows.rs
  • src/server/headless.rs
  • src/ui.rs
  • src/ui/tabs.rs

Comment thread src/app/tab_bar_status.rs Resolved
Comment thread src/platform/fallback.rs Resolved
@greptile-apps

greptile-apps Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds configurable server-resolved tab-bar status entries and asynchronous command refreshes, including process-tree cleanup on cancellation.

  • Adds ordered zoom, hostname, datetime, literal-text, and command entries.
  • Integrates status scheduling, reload cancellation, rendering, configuration validation, and documentation.
  • Adds Unix process-group and Windows job-object lifecycle management, while disabling commands on fallback targets.

Confidence Score: 4/5

The PR should not merge until Windows status commands can execute when Herdr is hosted inside a job that rejects assignment to the new lifecycle job.

Windows commands are created suspended and only resumed after unconditional assignment to a new job; an assignment failure aborts the operation, leaving the configured status entry permanently unable to execute.

Files Needing Attention: src/platform/windows.rs

Important Files Changed

Filename Overview
src/app/tab_bar_status.rs Implements status-entry scheduling, output sanitization, stale-result rejection, timeout handling, and cancellation.
src/platform/windows.rs Adds suspended launch and kill-on-close job management, but status commands fail when the host job rejects assignment to the new job.
src/platform/unix_common.rs Adds server hostname/time resolution and process-group cleanup for complete command trees.
src/platform/fallback.rs Explicitly disables status commands on unsupported targets while preserving the platform API surface.
src/config/tab_bar.rs Defines and validates the ordered tab-bar status configuration.
src/ui/tabs.rs Renders the right-aligned status area while yielding it when tabs require the available width.

Sequence Diagram

sequenceDiagram
  participant App
  participant Scheduler as Status scheduler
  participant OS as Platform process setup
  participant Command
  App->>Scheduler: Configure status entries
  Scheduler->>OS: Spawn command suspended/grouped
  OS->>OS: Install process-tree lifecycle guard
  OS->>Command: Start or resume command
  Command-->>Scheduler: Last output line
  Scheduler-->>App: TabBarCommandFinished
  App->>Scheduler: Reload or timeout
  Scheduler->>OS: Drop lifecycle guard
  OS->>Command: Terminate process tree
Loading

Reviews (5): Last reviewed commit: "fix: keep tab bar status opt-in by defau..." | Re-trigger Greptile

Comment thread src/app/tab_bar_status.rs Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
scripts/test_config_reference_check.py (1)

68-79: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Synchronize the sample enum with TabBarRightEntryConfig.

The production enum includes Zoom, Text, Datetime.format defaults, and Command.timeout_seconds. Add these variants and fields to SAMPLE_MODEL, and assert the complete ordered value list.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 35df4a77-5e75-4b68-85d6-a5fe1252e243

📥 Commits

Reviewing files that changed from the base of the PR and between 352592a and 53abfc2.

📒 Files selected for processing (3)
  • scripts/test_config_reference_check.py
  • src/app/tab_bar_status.rs
  • src/platform/fallback.rs
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/app/tab_bar_status.rs
  • src/platform/fallback.rs

@ogulcancelik

Copy link
Copy Markdown
Collaborator Author

@coderabbitai The reduced TabBarRightEntryConfig in SAMPLE_MODEL is intentional. This test exercises the reference parser’s Vec unwrapping plus unit/struct enum-variant discovery; enum field names/defaults are not parsed by that script, and the production config tests already cover the complete enum. Duplicating every production field here would add coupling without additional parser coverage.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

@ogulcancelik Thank you for the clarification. The reduced SAMPLE_MODEL covers the parser behavior under test without duplicating production configuration details. I withdraw this concern.

ʕᵔᴥᵔʔ


✏️ Learnings added
Learnt from: ogulcancelik
URL: https://github.com/herdrdev/herdr/pull/2586

Timestamp: 2026-08-09T20:11:29.358Z
Learning: In `scripts/test_config_reference_check.py`, `SAMPLE_MODEL` intentionally keeps `TabBarRightEntryConfig` reduced. The configuration-reference parser test covers `Vec` unwrapping and unit/struct enum-variant discovery only. It does not parse enum field names or defaults. Production configuration tests cover the complete enum, so adding every production field to `SAMPLE_MODEL` adds coupling without parser coverage.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 20fd5166-9bde-4b9c-a5c0-fdf29ff7c400

📥 Commits

Reviewing files that changed from the base of the PR and between 53abfc2 and 0a13417.

📒 Files selected for processing (6)
  • src/app/tab_bar_status.rs
  • src/platform/fallback.rs
  • src/platform/linux.rs
  • src/platform/macos.rs
  • src/platform/unix_common.rs
  • src/platform/windows.rs
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/platform/macos.rs
  • src/app/tab_bar_status.rs

Comment thread src/platform/fallback.rs Resolved
Comment thread src/platform/fallback.rs Resolved
Comment thread src/platform/windows.rs
Comment on lines +490 to +496
if unsafe { AssignProcessToJobObject(job, process.cast()) } == 0 {
let error = std::io::Error::last_os_error();
unsafe {
CloseHandle(job);
}
return Err(error);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Host job blocks status commands

If Herdr runs inside a Windows host job that rejects nested job assignment, AssignProcessToJobObject fails and StatusCommandGuard::new aborts before resuming the suspended child, causing every configured status command refresh to fail without executing.

Knowledge Base Used: Platform abstraction and Windows-specific behavior

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional fail-closed behavior, not a process leak. On supported Windows versions, nested jobs normally allow this assignment; the Windows CI command test also passes in its hosted environment. A host job with incompatible UI restrictions can still reject nesting, and in that case resuming the suspended child would reintroduce the descendant-cleanup bug this guard prevents. The opt-in status entry therefore fails like any other command spawn failure while Herdr remains functional. I do not think weakening lifecycle safety for that restrictive-host edge case is correct.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a sound justification. The fail-closed path is the correct tradeoff here — silently resuming a suspended child with no lifecycle guard would reintroduce the very leak the job object exists to prevent, and losing one opt-in status entry is a far better outcome than unbounded child processes on a restrictive host.

I withdraw the concern.

@ogulcancelik
ogulcancelik merged commit e48d830 into master Aug 9, 2026
8 checks passed
@kangal-bot kangal-bot removed the ai-review Trigger automated AI reviews for pull requests admitted by the PR gate label Aug 9, 2026
yjuyjuy added a commit to yjuyjuy/herdr that referenced this pull request Aug 13, 2026
* fix: preserve claude settings formatting (herdrdev#2089)

refs herdrdev#2066

Co-authored-by: Ogulcan Celik <[email protected]>

* fix(client): query host cell size when the ioctl reports no pixels (herdrdev#2160)

* fix(cli): report non-UTF-8 arguments instead of panicking (herdrdev#2207)

* fix(cli): report non-UTF-8 arguments instead of panicking

* fix(cli): avoid echoing malformed arguments

---------

Co-authored-by: Ogulcan Celik <[email protected]>

* fix: avoid blocking on foreground cwd checks (herdrdev#2213)

refs herdrdev#2206

* fix(docs): publish only released documentation

* fix(docs): support older git in snapshot checks

* fix(input): preserve hover during extended-button drags

* fix: propagate host color scheme to pane apps (herdrdev#2214)

refs herdrdev#714

* fix(pi): restrict state reporting to tui sessions (herdrdev#2159)

Co-authored-by: Can Celik <[email protected]>

* fix: page keys scroll pane scrollback at zsh and REPL prompts (herdrdev#2191)

* fix: page keys scroll pane scrollback at zsh and REPL prompts

PageUp/PageDown were forwarded to the pane whenever DECCKM (application
cursor) was on, assuming only primary-screen pagers enable it, but zsh's
line editor also enables DECCKM, as do REPLs such as python3. The result
was PageUp scrolling shell history instead of Herdr scrollback.

Bracketed paste discriminates the two: it means the app accepts typed or
pasted text at a prompt, so line editors enable it and pagers do not.

* test: update page key state fixture

---------

Co-authored-by: Can Celik <[email protected]>

* feat(website): rebuild marketing pages on new brand chassis

* docs: finalize 0.8.0 release documentation

* release: v0.8.0

* docs: update website manifest for v0.8.0

* docs: refine cpu optimization blog post

* fix(ui): keep collapsed workspace status visible (herdrdev#2239)

refs herdrdev#2216

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* docs: publish preview documentation

* feat(plugins): index marketplace manifests

* fix(docs): allow corrections to published versions

refs herdrdev#916

* fix(input): preserve shift-tab in pane automation (herdrdev#2259)

refs herdrdev#1561

* fix(ui): preserve sidebar scroll across clients (herdrdev#2280)

refs herdrdev#2255

Co-authored-by: akbash-bot <[email protected]>

* fix(website): copy heading links to clipboard

* fix: detect claude confirmation prompts

refs herdrdev#2268

* feat(ui): add distinct status indicators (herdrdev#2282)

refs herdrdev#2260

* fix(input): keep pending url clicks across host focus loss (herdrdev#2291)

Opening a URL raises the browser, which takes focus away from the host
terminal before the mouse release arrives. release_input_source(_headless)
cleared pending_url_click_sources on that focus loss, so the release was
forwarded to the pane and the agent opened the same URL again.

Clear the set in clear_input_source instead, whose only production caller
is remove_client.

refs herdrdev#2290

Co-authored-by: kataokatsuki <[email protected]>

* fix(cli): resolve pane query --current from caller (herdrdev#2298)

refs herdrdev#2297

Co-authored-by: akbash-bot <[email protected]>

* fix(input): parse default mouse reports (herdrdev#2312)

* fix(input): parse default mouse reports

refs herdrdev#2309

* fix(input): preserve split default mouse reports

refs herdrdev#2309

---------

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix(ui): search single-tab names in navigator (herdrdev#2320)

* fix(layout): return focus to the pane a split was opened from (herdrdev#2266)

Closing a focused pane handed focus to the next pane in tree order.
For a pane opened beside another one -- a plugin split, a file viewer,
any transient tool pane -- that is rarely where the user was: it lands
on some unrelated neighbour rather than the pane that opened it.

Track the pane focus came from in TileLayout and prefer it when the
focused pane closes, falling back to tree order when there is no
history, when it points at the pane being closed, or when it points at
a pane that has since gone away. The history lives in the layout, so it
can only ever name a pane in the same tab.

A one-slot history is only sound if internal focus excursions never
write it, so the tree edits that used to bounce focus around now go
through target-taking primitives instead. close_pane removes a
background pane directly, so detach_pane and take_pane_for_move stop
focus-close-refocusing. split_pane splits a target without moving
focus: the runtime split path only focuses the new pane once the spawn
succeeds, which makes a failed split a pure rollback, and the targeted
and unfocused workspace split paths stop fabricating history.
insert_pane_near now takes the focus intent, so an unfocused pane move
leaves the target tab's history alone. The layout-level focused-split
helpers become test-only; production splits all flow through the
target-taking path.

Co-authored-by: Can Celik <[email protected]>

* fix(terminal): render halfwidth katakana voiced marks (herdrdev#2257)

Co-authored-by: oyoguhito <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix(ci): make issue gate structural

* fix(input): preserve modifyOtherKeys key releases (herdrdev#2303)

refs herdrdev#2302

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix(config): accept retired agent panel scope (herdrdev#2295)

refs herdrdev#2292

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* feat(theme): add optional sidebar background

* docs: refresh readme and sponsors

* chore: remove project-local worktree extension

refs herdrdev#2325

* fix(website): update author X profile

* feat(windows): support remote attach to unix hosts (herdrdev#2329)

* feat(windows): support remote attach to unix hosts

* fix(remote): preserve unix bridge behavior

* fix(sidebar): highlight active agent in collapsed sidebar (herdrdev#2382)

The collapsed sidebar renders agent rows with an unconditional
Style::default().fg(p.overlay0), so the active agent is
indistinguishable from the others. The workspace list directly above
it, and render_agent_detail in the expanded sidebar, both mark the
active entry.

Reuse the existing active treatment: resolve the active entry with the
same is_active_pane call the expanded agent panel uses, then paint the
row background with surface_dim and the position number with text, the
same tokens the collapsed workspace rows already use.

Assisted-By: devx/717e5259-915f-4a7b-af07-6abe46da5b90

* ci: restore approved contributor gate

* chore: update canonical repository references

* fix(ci): repair contributor gate handling

* fix: avoid ctrl-tab escape sequences in legacy panes

refs herdrdev#2296

* fix: render OSC 4 palette overrides instead of forwarding the index (herdrdev#2162)

Co-authored-by: Can Celik <[email protected]>

* fix: keep plugin marketplace counts current

* fix(cli): accept --flag=value and reordered options in pane read/wait-output (herdrdev#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 <[email protected]>

* docs: document custom agent integrations

* fix(detect): recognize versioned Python agent wrappers (herdrdev#2188)

Co-authored-by: Can Celik <[email protected]>

* fix(terminal): restore keyboard reporting on detach (herdrdev#2395)

refs herdrdev#2393

Co-authored-by: akbash-bot <[email protected]>

* feat(copy-mode): add big-word motions (herdrdev#2270)

Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix: add positive idle detection for kiro-cli prompt (herdrdev#2301)

* fix: add positive idle detection for kiro-cli prompt

refs discussion herdrdev#982

* fix: remove manifest integration tests per reviewer request

---------

Co-authored-by: Can Celik <[email protected]>

* fix(detect): ignore Cursor Run Everything status (herdrdev#2220)

* fix(detect): ignore Cursor Run Everything status

refs herdrdev#1763

* fix(detect): constrain Cursor approval controls

refs herdrdev#1763

* test(detect): remove cursor manifest behavior fixture

---------

Co-authored-by: Ogulcan Celik <[email protected]>

* fix(theme): refresh host appearance on focus (herdrdev#2417)

* fix(theme): refresh host appearance on focus

refs herdrdev#2416

* fix(input): preserve split appearance replies

refs herdrdev#2416

* fix(input): retain fragmented appearance reports

refs herdrdev#2416

---------

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* feat(marketplace): track star history for trending and new plugin surfaces

* chore: update website

* fix: publish stable release checksums

* fix: verify stable release checksums

* feat(website): rebuild compare page in new design with runtime positioning

* fix(remote): restore blocking bridge streams (herdrdev#2485)

refs herdrdev#2478

Co-authored-by: akbash-bot <[email protected]>

* fix(input): preserve shift in kitty alternate reports (herdrdev#2479)

refs herdrdev#2435

* fix: avoid redundant Windows recent-history snapshots (herdrdev#2474)

refs herdrdev#962

Co-authored-by: Can Celik <[email protected]>

* fix(config): report unknown theme names (herdrdev#2488)

refs herdrdev#2452

* fix(windows): share Git Bash agent candidate scans (herdrdev#2494)

refs herdrdev#2459

* feat: support all agent integrations on windows (herdrdev#2496)

* fix: forward pane terminal bells (herdrdev#2498)

refs herdrdev#2453

Co-authored-by: akbash-bot <[email protected]>

* chore: approve dhh as contributor

* feat(input): add per-pane right-click routing (herdrdev#2504)

* fix: make windows installer swaps atomic (herdrdev#2530)

refs herdrdev#2356

* feat: make outer pane borders configurable (herdrdev#2535)

* feat(graphics): add direct pane frame streaming (herdrdev#2523)

* 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

* fix(ui): reclaim scrollbar gutter in alternate screen (herdrdev#2538)

* fix(website): improve plugins page readability on dark ground

* fix(input): preserve alt-prefixed control keys (herdrdev#2543)

refs herdrdev#2514

* perf(ui): avoid full pane mode reads for scrollbars (herdrdev#2554)

* fix(client): avoid abort on terminal hangup (herdrdev#2427)

* fix(client): avoid abort on terminal hangup

refs herdrdev#2424

* test(client): gate PTY integration on unix

refs herdrdev#2424

---------

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* feat: add direct pane resize keybindings (herdrdev#2558)

* test: guard pane-scaled render performance

refs herdrdev#2550

* feat: add configurable tab bar status (herdrdev#2586)

* feat: show a zoom indicator in the desktop tab bar

Reserve the right edge of the tab row for a ZOOM pill while the
focused pane is zoomed, matching the accent style of the mode bars.
The per-tab Z suffix stays; the pill makes the zoomed state visible
at a glance like tmux's status-right flag.

* feat: optionally show the hostname in the desktop tab bar

Add ui.tab_bar_hostname to display the machine's hostname at the right
edge of the tab row, like tmux's #h in status-right. The value resolves
where the server renders, so remote sessions show the remote host. Off
by default.

* fix: strip control characters from the tab bar hostname

* fix: hide the hostname when it would squeeze out the tab strip

* feat: add configurable tab bar status

* fix: harden tab bar status updates

* fix: terminate tab bar status process trees

* fix: disable status commands on unsupported platforms

* fix: skip unchanged status command renders

* fix: keep tab bar status opt-in by default

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>

* feat: add move tab keybind actions (herdrdev#2561)

* feat: add move tab keybind actions

Add optional keys.move_tab_previous/move_tab_next actions that reorder
the active tab one position, wrapping at either end. Reuses the
existing tab.move runtime path that mouse drag reordering already
drives.

* fix: exit navigate mode on single-tab move attempts

* fix: center tab labels for symmetric highlight padding (herdrdev#2570)

* fix: center tab labels for symmetric highlight padding

* docs: note centered tab labels in the changelog

* fix: center tab labels by display width, not char count

* fix(ui): anchor the host cursor to modal name inputs (herdrdev#2569)

* fix(ui): anchor the host cursor to modal name inputs

IMEs draw their composition preview at the host terminal cursor. The rename
and new-worktree dialogs drew a block glyph instead of setting one, so the
frame carried no cursor and the client kept the position the focused pane
last reported. Japanese composition appeared behind the dialog and only
reached the field on Enter.

Set the cursor to the caret column instead, counting wide characters as two
cells.

refs herdrdev#1755

* fix(ui): keep the clamped caret cell blank

A name that fills the field left the clamped caret sitting on the last
rendered glyph. A terminal inverts the cell under its cursor and an IME
composes there, so the glyph was hidden and composition overlapped it.

Render the text one column short of the field. The field is still cleared
in full, so the clamped caret always lands on a blank cell.

refs herdrdev#1755

---------

Co-authored-by: kataokatsuki <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix: track opencode tui session selection (herdrdev#2455)

refs herdrdev#2450

Co-authored-by: Ogulcan Celik <[email protected]>

* test(windows): serialize media player environment access (herdrdev#2619)

* fix(server): prioritize shutdown requests (herdrdev#2624)

refs herdrdev#2612

* fix(windows): strip elevated terminal title decoration (herdrdev#2632)

* ci: remove automatic issue gate

* fix(input): ignore modified j/k/up/down in session navigator (herdrdev#2377)

The Char('j')/Char('k')/Down/Up match arms in handle_navigator_key
had no modifier guard, unlike every sibling arm in the same match
block, so Ctrl+K, Alt+J, etc. also moved the navigator selection.

refs herdrdev#1981

Co-authored-by: Can Celik <[email protected]>

* refactor(website): clean up homepage

* feat: keep the outer terminal window title in sync with the session (herdrdev#2627)

* 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 <[email protected]>

* fix: wait for agent prompt readiness (herdrdev#2537)

* fix: wait for agent prompt readiness

refs herdrdev#2410

* fix: return pane updates after tab bar command

refs herdrdev#2410

---------

Co-authored-by: Can Celik <[email protected]>

* chore: refresh english documentation

* fix: derive repo name for embedded bare layouts (herdrdev#2660)

refs herdrdev#2657

Co-authored-by: akbash-bot <[email protected]>

* fix: make just build cross-platform (herdrdev#2647)

Co-authored-by: Can Celik <[email protected]>

* fix(windows): reduce idle agent detection CPU (herdrdev#2651)

* fix(windows): reduce idle agent detection CPU

refs herdrdev#2642

* fix(windows): gate agent process discovery

refs herdrdev#2642

---------

Co-authored-by: Jonathan Liebig <[email protected]>

* fix(render): compact large terminal redraws (herdrdev#2675)

refs herdrdev#2670

Co-authored-by: akbash-bot <[email protected]>

* fix: disambiguate shifted punctuation keybinds (herdrdev#2676)

refs herdrdev#2674

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix: detect claude 2.1.228 half-circle busy spinner

* fix: synchronously terminate cancelled status commands

* perf: avoid repeated Git config reads (herdrdev#2688)

refs herdrdev#2643

Co-authored-by: Can Celik <[email protected]>

* chore: update contributor list

* fix: preserve workspace labels for root repositories (herdrdev#2727)

refs herdrdev#2594

* fix: use the running binary in agent hooks (herdrdev#2722)

* fix: strip claude title spinner frames (herdrdev#2709)

* fix: source title activity glyphs from manifests

refs herdrdev#2707

* fix: simplify manifest-driven title stripping

refs herdrdev#2707

* fix: reconcile handoff title policies

refs herdrdev#2707

* fix: strip claude title spinner frames

refs herdrdev#2707

* fix: keep claude detection manifest unchanged

---------

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Ogulcan Celik <[email protected]>

* fix(agent): focus Copilot before prompting (herdrdev#2734)

* fix(agent): focus Copilot before prompting

refs herdrdev#1698

Co-authored-by: Copilot <[email protected]>

* test(agent): cover stale focus-reporting state

refs herdrdev#1698

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>

* feat: add qwen code detection and restore (herdrdev#2743)

refs herdrdev#2730

* fix: preserve logical lines in scrollback editor (herdrdev#2735)

refs herdrdev#2733

Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: Can Celik <[email protected]>

* fix(graphics): support high-dpi direct file frames (herdrdev#2680)

---------

Co-authored-by: akbash <[email protected]>
Co-authored-by: Ogulcan Celik <[email protected]>
Co-authored-by: WakaTaira <[email protected]>
Co-authored-by: Florian <[email protected]>
Co-authored-by: Rhys <[email protected]>
Co-authored-by: Michael Hackner <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: akbash-bot <[email protected]>
Co-authored-by: kangal-bot <[email protected]>
Co-authored-by: Kataoka Katsuki <[email protected]>
Co-authored-by: kataokatsuki <[email protected]>
Co-authored-by: Jon Kinney <[email protected]>
Co-authored-by: Kazunari Kamata <[email protected]>
Co-authored-by: oyoguhito <[email protected]>
Co-authored-by: Ian Ker-Seymer <[email protected]>
Co-authored-by: Mo <[email protected]>
Co-authored-by: Kyle Corbeille <[email protected]>
Co-authored-by: Phil Larson <[email protected]>
Co-authored-by: JP Lew <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Sam Biggins <[email protected]>
Co-authored-by: Jesse Zhang <[email protected]>
Co-authored-by: JJ Liebig <[email protected]>
Co-authored-by: David Heinemeier Hansson <[email protected]>
Co-authored-by: PISIT KOOLPLUKPOL <[email protected]>
Co-authored-by: Erik Krogen <[email protected]>
Co-authored-by: Copilot <[email protected]>
bdhrs added a commit to bdhrs/herdr that referenced this pull request Aug 14, 2026