Repository navigation
fix(sidebar): leave out an agent kind its mark already draws - #761
Merged
Merged
Conversation
An agent row's second line no longer repeats the kind beside a provider mark that says it, so workspace and tab names keep the room on a narrow sidebar. The kind stays in the row's tooltip and in a visually hidden span for screen readers; an unknown agent, drawn with the fallback initial, and a kind that differs from its mark keep the word.
It ran only by name and went stale after #679 unseen. It now takes the lane's herdr session instead of always the default one.
# Conflicts: # CHANGELOG.md
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
claude · Agents · Alice→Agents · Alice), so workspace and tab names keep the room on a narrow sidebar.agentContexttakes the agent the row's mark draws (markAgent, null for the fallback initial) and drops a kind equal to it (case-insensitive). The kind stays in the row's tooltip and in a visually hidden span before the title, since the mark isaria-hidden. An unknown agent (fallback mark) and a kind that differs from its mark keep the word.AgentMark.tsxexportshasAgentMarkso the known-mark list is not copied.scripts/ci-browser.sh, right afterui-regression.ts; +5 s of a 447 s lane), and it takes the lane's herdr session (HERDR_TEST_SESSION ||=) instead of always overwriting it with the default.scripts/ci-browser.test.tslists it.Fixes #754
Fixes #735
Verification
.agents-sidebar .agent-item): every row's second line began with its kind (claude · checkout-api,codex · web-dashboard, …). After:checkout-api,web-dashboard, …; accessible textclaude: Idempotent payments…, and the tooltip still names the kind.HERDR_TEST_MODE=unit bun test ./src/lib/sidebarAgents.test.ts: the new case failed before the change (+ "claude"), and 15 pass after.bun run check run --build bun scripts/workspace-rows-regression.ts→ PASS (already fixed by feat(ui): align pane controls and navigation with herdr TUI #747).CHECK_MAX_RUNS=8 bun run check browser(before merging main): exit 0, 26 scripts, includingworkspace-rows-regression.ts5 s, exit 0.CHECK_MAX_RUNS=8 bun run check fast→ ok (typecheck, build, 2468 unit tests, 0 fail);CHECK_MAX_RUNS=8 bun run check run --build bun scripts/workspace-rows-regression.ts→ PASS.