Skip to content

fix(agents): align task controls and questions with workbench styling - #7015

Merged
l0ng-ai merged 2 commits into
mainfrom
fix/agent-ui-consistency
Nov 30, 2026
Merged

l0ng-ai merged 2 commits into
mainfrom
fix/agent-ui-consistency

Conversation

@l0ng-ai

@l0ng-ai l0ng-ai commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

Align the agent composer, recovery notices and question forms with OpenIDEA's existing workbench design.

  • Give Skills and agent Resume dedicated monochrome icons that inherit the menu, toolbar or primary button color, leaving the editor intention bulb and debugger Resume icons unchanged.
  • Use the same inset geometry for interrupted, network-retry and archived notices, with warning colors reserved for actual interruptions; simplify recovery history markers.
  • Replace individually outlined answer cards with standard list hover and selection colors. Match footer button heights, remove duplicate multi-question headings and redundant Other choices on free-text questions, and keep pinned questions aligned with the composer.
  • Preserve the existing scrollable ACP form behavior from fix(agents): keep a long agent form scrollable above the composer #7003.

Validation

  • 376 focused Vitest tests passed.
  • 4 Playwright tests passed in Islands Light and Islands Dark, including menu icon colors, Resume/Resume Now, selected answer rows, and narrow-window alignment.
  • Source and E2E TypeScript checks passed.
  • Inspected browser-rendered screenshots in both themes; native WebView verification is not included.

@arookieofc-ai arookieofc-ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  • Other only appears when there are options, and chooseByNumber now guards on options.length, so digit keys can't select a row that isn't drawn. The free-text case is covered by the new queryByRole("radio") assertion.
  • Hiding the header tag when multiple is right — the tab strip already labels each tab with header?.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 --fg for checked descriptions/keys and 0.6 opacity 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.

@github-actions

Copy link
Copy Markdown

Thanks for the PR. Before review, please update the description (see CONTRIBUTING.md):

  • Fill in How it was verified: the commands you ran and their results. UI changes need before/after screenshots.

This check reruns when you edit the description.

@l0ng-ai
l0ng-ai merged commit 53d295d into main Nov 30, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants