Repository navigation
feat(agents): offer only supported agents that are installed - #994
Merged
Merged
Conversation
The agent picker listed every agent herdr has a manifest for. /api/agents now says whether each kind's command is on the server's PATH, and the client offers the supported kinds that are installed; an older bridge's list is narrowed to the supported kinds.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
New workspace, New tab and New worktree listed every agent herdr has a manifest for (25 on a current herdr), most of which this app shows as terminal text only and many of which are not installed on the PC.
The list now offers the agents of the guide's Supported agents table (
shared/supported-agents.ts) whose command is on the server's PATH.GET /api/agentsaddsinstalledto each entry (Bun.which(kind); herdr's manifests name no executable), and the client filters on both. Filtering is on the client so a remote PC's older bridge, which sends every manifest and noinstalled, is still narrowed to the supported kinds. Any other program still starts from a pane's shell.The constant has its own file: the browser imports the value, and
shared/protocol.tsreadsprocess.envas it loads, which broke the Bun-built browser fixtures.Validation
bun run typecheck, and the i18n, conventions and changelog-fold unit tests: pass (macOS arm64, Bun 1.4.0).server/api.contract.test.ts"lists agent kinds…" and "offers omo and gjc… exactly when they are on PATH" (now also assertsinstalled: truefor a kind on PATH andinstalled: falsefor claude off PATH): 2 pass on an isolated herdr 0.9.3.bun run check run --build bun scripts/chat-history-browser-qa.ts: 9 PASS (the fixture bundle that failed with "process is not defined" while the constant lived in protocol.ts).