Repository navigation
feat(mux): add Herdr backend - #3531
Merged
Merged
Conversation
matthewyjiang
force-pushed
the
feat/mux-herdr
branch
from
September 21, 2026 08:33
7215030 to
45b1a87
Compare
Each backend (tmux, zellij, herdr) is one entry in MuxBackends.js with
its commands and parser, so the service no longer branches on muxType
in eight places and the settings dropdown lists the table keys. One
availability check runs for the selected backend and re-runs when the
backend changes. The herdr parser reads the real {sessions:[...]}
shape only.
matthewyjiang
marked this pull request as ready for review
September 21, 2026 08:55
Member
|
/claude review |
Contributor
Claude reviewNo issues found. Checked: the |
3 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
For context, Herdr is a relatively new, popular terminal multiplexer centered around agents, which now has 39k stars. (Herdr GitHub) Personally, this has replaced tmux for me. I wanted to be able to use the DMS mux interface with Herdr.
After this PR, Herdr users can now manage their sessions through the existing mux launcher by selecting
herdrin Settings → System → Multiplexers.In the backend, we:
command -v herdrand list sessions withherdr session list --json.herdr session attach NAMEor create withherdr --session NAMEin the configured terminal.herdr session stop NAMEfor the Kill action. Stopped sessions remain in the list; this action does not delete them.The existing custom command and session filter apply to Herdr. IPC is unchanged, including
dms ipc call mux toggle.Structure
Adding a third backend by hand would have put a
muxTypebranch in eight places inMuxService.qml. Instead, each backend is one entry in a newCommon/MuxBackends.jstable: display name, list command, parser, and argv builders for attach, create, kill, and (tmux only) rename. The service looks upbackendonce and every action reads from it. The settings dropdown lists the table keys.Side effects of this structural change:
Processfor the selected backend instead of one per backend. It re-runs when the backend changes, which also allows for detecting new installs after the shell starts. Technically reduces memory if the user doesnt change backend much.tests/mux-backends.test.mjs).Local testing
node --test quickshell/tests/*.test.mjs: 197 pass.make lint-qmlpasses with no warnings.MuxServicein an isolated Quickshell instance withmuxType: herdr: availability came back true,refreshSessionslisted the livedefaultsession, and switching the setting totmuxre-ran the check and flippeddisplayNameandsupportsRename.Type of change
Related issues
Screenshots / video
Selecting Herdr as the multiplexer backend:
Opening the mux menu through IPC shows the active Herdr session:
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsAI assistance was used for this PR.