Skip to content

fix(sidebar): leave out an agent kind its mark already draws - #761

Merged
devswha merged 6 commits into
mainfrom
fix/ui-small-0.4.6
Oct 11, 2026
Merged

devswha merged 6 commits into
mainfrom
fix/ui-small-0.4.6

Conversation

@devswha

@devswha devswha commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Change

  • Agents panel (Agents panel: the second line repeats the agent kind next to its mark #754): an agent row's second line no longer repeats the kind beside a provider mark that already draws it (claude · Agents · Alice → Agents · Alice), so workspace and tab names keep the room on a narrow sidebar. agentContext takes 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 is aria-hidden. An unknown agent (fallback mark) and a kind that differs from its mark keep the word. AgentMark.tsx exports hasAgentMark so the known-mark list is not copied.
  • workspace-rows-regression (workspace-rows-regression.ts expects a row menu without Move up/Move down since #679 #735): the stale menu expectation was already rewritten by feat(ui): align pane controls and navigation with herdr TUI #747 (2ae281d, in v0.4.6), and the script passes on main, so it needed no expectation change. To keep it from going stale again unseen, it now runs in the browser lane (scripts/ci-browser.sh, right after ui-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.ts lists it.

Fixes #754
Fixes #735

Verification

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.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f518f967-4aed-421f-b11a-d8e028cae090

📥 Commits

Reviewing files that changed from the base of the PR and between 7fc8d12 and 80cab75.


📒 Files selected for processing (1)
  • CHANGELOG.md

🚧 Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.



📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • The Agents list no longer repeats an agent’s kind beside its mark, making rows easier to scan. The kind remains available in the row’s tooltip and to screen readers. When an agent has no mark, its kind continues to appear as text.

Walkthrough

The Agents list omits a known agent kind from row context when the mark already identifies it. The kind remains in the tooltip and screen-reader text. Browser CI now runs the workspace rows regression, which preserves a caller-supplied test session.

Changes

Agent Sidebar Labels

Layer / File(s) Summary
Known agent mark labels
src/components/AgentMark.tsx, src/lib/sidebarAgents.ts, src/lib/sidebarAgents.test.ts
Known marks are identified, and matching agent labels are omitted from row context. Tests cover matching labels and a distinct agent label.
Accessible row kind labels
src/components/AgentSidebar.tsx, CHANGELOG.md
The row includes the kind in its tooltip and visually hidden text when it is not already represented in the title or context. The changelog describes this behavior and the no-mark case.

Workspace Rows Browser Regression

Layer / File(s) Summary
Run workspace rows regression in browser CI
scripts/workspace-rows-regression.ts, scripts/ci-browser.sh, scripts/ci-browser.test.ts
The regression uses herdr-web-ui-test only when HERDR_TEST_SESSION is unset. Browser CI runs the regression, and its test expectations include the additional script row.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium


Merge Risk: ⚪ Minimal · up to 80cab

This change hides a duplicated agent kind in the Agents list while keeping it in tooltips and screen-reader text, and it adds a regression script to browser CI. No actionable merge-blocking risk was identified.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 7 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title is concise, specific, and accurately summarizes the primary sidebar change.
Description check Passed The description includes the required change details and a comprehensive verification section. Although it uses the heading "Verification" instead of the template heading "Validation," it provides the…
Linked Issues check Passed #754 is satisfied. AgentSidebar.tsx passes the mark agent to agentContext; matching kinds are removed case-insensitively from visible context; AgentRowBody keeps the kind in visually hidden text…
Out of Scope Changes check Passed The changes stay within #754 and #735. The mark predicate, accessibility text, tooltip handling, unit tests, changelog entry, browser-lane registration, and session preservation support the two linked…

Full details: Docstring Coverage

Explanation

Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 7 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 5a65c75 into main Oct 11, 2026
5 checks passed
@devswha
devswha deleted the fix/ui-small-0.4.6 branch October 11, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant