Repository navigation
test: unit mode never falls back to the user's herdr - #482
Merged
Merged
Conversation
A bare `HERDR_TEST_MODE=unit bun test` also loads every *.contract.test.ts. In unit mode the test-herdr preload set no HERDR_SOCKET, so those files fell back to the default socket and opened their workspaces and stand-in agents (the prompt test's blocked `claude` menus among them) in the herdr the user works in, where they showed under Needs you. Unit mode now points HERDR_SOCKET at a socket that does not exist, so such a run fails with "cannot reach herdr" instead. AGENTS.md names `bun run test:unit` as the unit suite.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (2)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This was referenced Oct 5, 2026
devswha
added a commit
that referenced
this pull request
Oct 6, 2026
Its branch had appended the tab-strip sentence to the fonts entry under [0.3.50], which was released before #479 merged. The sentence is its own entry under [0.3.51] Fixed, and the 0.3.50 entry links #473 alone again. Bumps package.json and herdr-plugin.toml to 0.3.51 and moves the Unreleased notes under [0.3.51] - 2026-10-06, with the compare link. Raises the remote PC bundle to 18: #368 adds the `take-over` capability the bridge advertises, and #477, #483, #484, #485 and #486 change what the bridge reads (transcripts, prompts, process start times, a pane's Codex store), so a remote PC on bundle 17 keeps the old behaviour until its bridge is updated. Push the `remote-v18` tag and let the bundle workflow publish before running release.yml. Carries #368 #477 #479 #481 #482 #483 #484 #485 #486 #487 Co-Authored-By: Claude Fable 5.1 <[email protected]>
aNNdii
added a commit
to aNNdii/herdr-web-ui
that referenced
this pull request
Oct 6, 2026
…-comments-inline-next Brings upstream main up to b1ebe18 (devswha#482–devswha#500) onto next together with the comment cards. Conflicts resolved: Markdown.tsx imports take next's memo/useId and upstream's useEffect; CHANGELOG keeps next's devswha#429 entries and adds upstream's new Added and Changed entries.
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.
Change
Agents in other panes kept leaving test panes under Needs you in the live web UI:
exec '/tmp/herdr-web-ui-prompt-…'cards in the INPUT state, plus strayherdr-web-ui-test-omo-*/codex-binding-*workspaces in the user's herdr session.Cause: agents run
HERDR_TEST_MODE=unit bun testwith no file list as "the unit tests". A barebun testalso loads every*.contract.test.ts. In unit modescripts/test-herdr.tsreturned early without settingHERDR_SOCKET, soherdrSocketPath()fell back to~/.config/herdr/herdr.sock, the user's own session. The contract tests then created their workspaces there, andprompt.contract.test.tsreported its stand-inclaudemenus asblocked. A run that was cut short also skippedafterAll, so its workspaces stayed.Fix:
scripts/test-herdr.tspointsHERDR_SOCKETat a socket that does not exist ($TMPDIR/herdr-web-ui-unit-tests-have-no-herdr.sock). A contract file loaded in a unit run now fails withcannot reach herdrinstead of working in the user's herdr. Integration mode andHERDR_TEST_LIVE=1are unchanged.AGENTS.mdnamesbun run test:unitas the unit suite and says why a bare unit-modebun testfails.No changelog entry: nothing users of the app notice changes.
Validation
bun run typecheck: clean.bun run test:unit: 119 files, 1375 pass, 4 skip, 0 fail.HERDR_TEST_MODE=unit bun test ./server/prompt.contract.test.ts: 0 pass, 1 fail withHerdrError: cannot reach herdr at /tmp/herdr-web-ui-unit-tests-have-no-herdr.sock. The live session's workspace list and the herdr server log showed no new workspace afterwards. Before the fix, the same kind of run createdherdr-web-ui-test-*workspaces in the live session (seen in its server log andherdr workspace list).