Repository navigation
fix(agents): align task controls and questions with workbench styling - #7015
Conversation
arookieofc-ai
left a comment
There was a problem hiding this comment.
Verified the icon split and the question-form consistency work.
Icons. Adding agent-resume and skills as their own names is the right call: resume (run/resume, #208A3C) and bulb (codeInsight/intentionBulb, #FFAF0F) are deliberately coloured, so reusing them for an ordinary action would have dragged the debugger/intention palette into the composer. The new tests lock both directions — the new icons render currentColor with no hex, and the old ones keep their colour.
The stroke="#6C707E" in the two new SVGs is not a hidden loader hack: #6C707E is exactly MONO_LIGHT (src/ui/icons.tsx:805), and build() rewrites any icon whose only colours are MONO_LIGHT/MONO_DARK to currentColor (icons.tsx:856-857). So the SVGs follow the documented convention and the currentColor assertions are correct.
Question form. All of it lines up:
Otheronly appears when there are options, andchooseByNumbernow guards onoptions.length, so digit keys can't select a row that isn't drawn. The free-text case is covered by the newqueryByRole("radio")assertion.- Hiding the header tag when
multipleis right — the tab strip already labels each tab withheader?.trim() || question, so the legend tag was a duplicate in exactly that mode. - Previous/Next dropping
size="small"matches Submit's height, and the e2e height assertion covers it. - Replacing the per-option borders with
--bg-tree-hover/--bg-tree-selected(plus--fgfor checked descriptions/keys and0.6opacity for disabled) puts the options on the same token vocabulary as the tree, which is what the rest of the workbench uses.
Banners. The inset card with --border-feedback-warning, the bannerNeutral variant for archived, and --icon-color: currentColor keep the banner consistent with the composer without introducing a new colour.
Tests. agentComposerIcons.spec.ts and agentInteractionStyle.spec.ts cover the parts that regress silently: icon stroke equals the button colour, option rows have no top border, the checked row's background is var(--bg-tree-selected), and the card/composer edges line up within 2px at 900×800. Pinning the ACP permission form to questionCardPinned is a good catch.
LGTM.
|
Thanks for the PR. Before review, please update the description (see CONTRIBUTING.md):
This check reruns when you edit the description. |
Summary
Align the agent composer, recovery notices and question forms with OpenIDEA's existing workbench design.
Validation