Skip to content

Keep herdr's pane dividers visible under the glassy tab bar - #15312

Open
Maduki-tech wants to merge 3 commits into
omacom:quattrofrom
Maduki-tech:fix/herdr-pane-dividers
Open

Maduki-tech wants to merge 3 commits into
omacom:quattrofrom
Maduki-tech:fix/herdr-pane-dividers

Conversation

@Maduki-tech

Copy link
Copy Markdown

Fixes #15235.

#15022 set surface_dim = "black" to keep the active tab's text dark on the accent, expecting that "Pane dividers keep their gray". herdr also draws pane dividers in surface_dim, though, so they turned black and disappeared against the terminal background.

Change:

  • Drop surface_dim = "black" from the shipped herdr config. panel_bg = "reset" stays, so the tab bar is still see-through under Glassy.
  • A migration removes the line from existing configs, but only where it sits directly under panel_bg = "reset" as Let herdr's tab bar show the terminal background, so it turns glassy too #15022 wrote it. A surface_dim of the user's own is kept, and a symlinked config is never edited.

Trade-off: herdr uses one color for both the dividers and the active tab's text, so the active tab text goes back to herdr's gray on the accent. Getting dark tab text and visible dividers together would need a separate divider color in herdr. A request for that was closed as not planned (herdrdev/herdr#1985).

Checked:

  • Live in herdr 0.9.3 with panel_bg = "reset" and no surface_dim: the dividers show in gray.
  • New test/shell.d/herdr-pane-dividers-migration-test.sh covers the shipped config, a second run, a config going through both migrations in order, a surface_dim of the user's own, and a linked config. It fails against a migration that does nothing.
  • ./test/cli passes, and herdr config check accepts the shipped config.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Removes the black surface_dim override so herdr can use its default divider color.

  • Herdr’s pane dividers return to gray while its tab bar stays see-through.

No actionable issues were found. The visual result was not independently checked in a running herdr session.

Reviews (3) · Last reviewed commit: "Merge quattro, dropping the migration te..." · Reviewed by Greptile

@omarchybot omarchybot added the bug Something isn't working label Oct 17, 2026
herdr draws pane-to-pane dividers in accent beside the focused pane and overlay0 elsewhere (render_pane_borders in src/ui/panes.rs, 0.9.1 through 0.9.5); surface_dim colours the separator at the sidebar's edge and the sidebar's section rules. Removing the black override is still the fix, but the shipped comment and the migration's message named the wrong divider.

Co-Authored-By: Codex Medium <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed and verified on a worker built from the Omarchy ISO, with herdr 0.9.1 (the version Omarchy ships). The fix is right: the black surface_dim was drawing a divider in ANSI colour 0, which every Omarchy terminal theme sets to the background (on the worker's Tokyo Night, regular0 and background are both 1a1b26), and removing it brings back herdr's default DarkGray, ANSI 8 (414868 there). That is the same value as the issue's suggested surface_dim = "darkgray".

One correction, now pushed to your branch as bd8b904: the divider it hid is the sidebar's, not the ones between panes. herdr colours pane-to-pane borders with accent beside the focused pane and overlay0 elsewhere (render_pane_borders in src/ui/panes.rs, the same in 0.9.1 and 0.9.5), and they draw identically before and after this change. surface_dim colours the separator at the sidebar's edge (src/client/shell/render.rs:26) and the sidebar's section rules. The commit changes the comment in config/herdr/config.toml and the migration's message to say so. The pull request's title and description still say pane dividers.

What ran, on the worker:

  • Rendering herdr with three panes and recording the colour of each divider cell: on quattro the sidebar divider is ANSI 30 (black) on every row, and on this branch it is ANSI 90. Setting surface_dim to red showed it colours only the sidebar's separator and rules in that layout.
  • The migration against a real install's config that 1791722809.sh had migrated: it removes exactly the surface_dim = "black" line, a second run changes nothing, and herdr config check passes.
  • ./test/cli and both herdr migration tests pass. Stubbing the migration out, or putting the black value back into the shipped config, makes the new test fail.

Codex Medium reviewed it in two rounds. In the first it reached the same conclusion about the dividers; it can read this session's working notes, so that agreement is not guaranteed to be independent. It also listed everything else surface_dim colours, confirmed the fallback is DarkGray, and flagged that the migration matches the shipped pair in any table rather than only [theme.custom]. That last point was not changed: it needs a user to have copied the identical pair into a second table, and the result there is herdr's default gray. Its second round, on bd8b904, found nothing open.

The trade-off the description names is real: the active tab's text, and the other text herdr draws on the accent (mode badge, highlighted menu rows), goes from black to dark gray. Whether visible sidebar dividers are worth that is the maintainer's call, and that decision is all this is waiting on.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 25, 2026
quattro removed every migration test in omacom#16302, herdr-glassy-tab-bar-migration-test.sh among them, and its AGENTS.md now says a migration gets no suite test. So the conflict resolves to quattro's deletion, and herdr-pane-dividers-migration-test.sh goes too: it tested only migrations/1791897817.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This had stopped merging cleanly into quattro, so I merged quattro into your branch as 9be88e2. The only conflict was test/shell.d/herdr-glassy-tab-bar-migration-test.sh, which quattro deleted in #16302 along with every other migration test. Its AGENTS.md now says a migration gets no suite test, so the merge also drops test/shell.d/herdr-pane-dividers-migration-test.sh. What is left is the config change and migrations/1791897817.sh, both exactly as you had them.

I verified 9be88e2 on a fresh worker built from the Omarchy ISO, with herdr 0.9.1, this time reading kitty's own cells instead of recording through tmux:

  • The bug, and the fix. With three panes open, the divider at the sidebar's edge is drawn in ANSI 30 on quattro. On the worker's Tokyo Night theme, color0 and background are both #1a1b26, so that divider can't be seen. On this branch it is ANSI 90 (#414868). If I put surface_dim = "black" back, it returns to ANSI 30. The borders between panes are the same in all three runs.
  • The migration, run by omarchy-migrate the way an update runs it, against the worker's installed config: it removes only the surface_dim = "black" line, herdr config check passes, and nothing is left pending. On scratch homes, it also leaves alone a surface_dim you set yourself (another colour, an indented line, or the line in another table), a symlinked file or directory, and a missing config, and a second run changes nothing. Run against a live herdr, it reloads the config in place: all three panes survive, and the divider turns gray straight away.
  • ./test/cli passes, and so do herdr-functions-test.sh, theme-set-herdr-machines-test.sh and theme-set-herdr-ssh-reuse-test.sh.

Before, on quattro: no divider between the sidebar and the panes, and no rule under "new / menu"
After, on this branch: a gray divider at the sidebar's edge and a gray rule under "new / menu"; the pane borders are unchanged

Codex Medium and muse-wonder (via pi, thinking high) reviewed the merged head. Both found the merge resolution correct, the old migration timestamp safe (omarchy-migrate tracks each file by name, and no later migration touches herdr), and the problem real. Muse-wonder found nothing else. Codex flagged that the migration would also remove the pair from a per-appearance table such as [theme.custom.light]. I've left that alone: it only happens if someone copied the exact shipped pair into that table, and what they get is herdr's default gray, the same colour this change ships. Both reviewers could read this session's notes, so their agreement isn't guaranteed to be independent.

The pull request's title and description still say "pane dividers". What this restores is the sidebar's edge divider and its section rules.

This is waiting on the maintainer. The trade-off is unchanged: text herdr draws on the accent colour (the active tab, the mode badge) goes from black to herdr's dark gray, which is the same ANSI 8 that #15235's suggested surface_dim = "darkgray" would give.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Herdr pane dividers are invisible: shipped surface_dim = "black" equals the theme background

2 participants