Repository navigation
refactor!: remove herdr support; rex is the only multiplexer - #176
Merged
Merged
Conversation
internal/herdr, its Mux interface and the multiplexer key go. The shared types live in internal/rex; send, dispatch, refresh and tools take a rex.Client. internal/rex/rextest fakes rex for every package test. BREAKING CHANGE: the `multiplexer` key is gone; delete it from worklog.toml, which otherwise fails to load with an unknown-key error. Fixes #173
This was referenced Nov 9, 2026
sigma
marked this pull request as ready for review
November 9, 2026 17:57
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.
Rex is the only multiplexer now (ADR 0012), so this removes herdr's client and the
multiplexerkey.What changes
internal/herdrand itsMuxinterface are gone.Agent,Pane,Workspace, the status words, the not-found codes (rex.Code,PaneNotFound,TabNotFound) andNameStart/NameChar/MaxNamenow live ininternal/rex.send,dispatch,refreshandtoolstake arex.Client, built withrex.New(path, env).Herdr→Rexonsend.Sender,dispatch.Dispatcherandtools.Deps.refresh.Reconciler.Herdr(aherdr.Mux) is nowRex(arex.Client).mainlooks uprexon PATH.rex:where it used to startherdr:.rex capture: …,rex send-key: …), without a flag after it.internal/rex/rextest: a fake rex that holds sessions of blocks and answers rex's CLI the wayrex.Clientcalls it. It runs in process as aRunner, or on disk as a shell script that passes each call to the test process over a FIFO. Starting the test binary once per call cost about 1 s each under-raceon macOS, so I didn't do that. The test fakes insend,dispatch,refreshandtoolsthat used to stand in for herdr now use it.multiplexerline and its paragraph are gone), and ADR 0012's "until Remove herdr support #173 lands" line is dropped.Breaking
The
multiplexerkey is gone fromworklog.toml. A file that still has it fails to load withunknown key multiplexer. Delete the line in the same change that bumps quartermaster.Checks
just check: fmt-check, lint (0 issues), and 682 tests pass.nix flake check: passes.Part of epic #169.
Fixes #173
Stack for epic #169, decision in ADR 0012. Merge order, parent first: #175 → #176 → #177 → #178.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.