Skip to content

fix(agent-manager): Fix double scrollbar in mode selector dropdowns#5681

Open
Drilmo wants to merge 4 commits intoKilo-Org:mainfrom
Drilmo:fix/agent-manager-double-scrollbar
Open

fix(agent-manager): Fix double scrollbar in mode selector dropdowns#5681
Drilmo wants to merge 4 commits intoKilo-Org:mainfrom
Drilmo:fix/agent-manager-double-scrollbar

Conversation

@Drilmo
Copy link
Contributor

@Drilmo Drilmo commented Feb 5, 2026

Summary

Fixes the double scrollbar issue in Agent Manager mode selector dropdowns.

Problem

The mode selector dropdowns in Agent Manager had double scrollbars because:

  • Outer container had max-height: 300px with overflow-y: auto
  • Inner scroll container (from SelectDropdown component) has max-h-82 (~328px) with overflow-y-auto
  • Since outer (300px) < inner (328px), both containers tried to scroll

Solution

  • Remove max-height and overflow-y: auto from outer container
  • Set overflow: hidden on outer container (prevents outer scrollbar)
  • Target inner scroll container via CSS selector (> div > div:last-child) and set max-height: 250px
  • This ensures only the inner container scrolls, with a compact 250px height

Changes

CSS Class Before After
.am-model-selector-content max-height: 300px overflow: hidden + inner 250px
.am-session-mode-content max-height: 300px, overflow-y: auto overflow: hidden + inner 250px
.am-mode-selector-content max-height: 300px, overflow-y: auto overflow: hidden + inner 250px

Benefits

How to Test

  1. Open Agent Manager
  2. Click on mode selector dropdown
  3. Add enough modes to require scrolling
  4. Verify only one scrollbar is visible

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2026

🦋 Changeset detected

Latest commit: 6a71db2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

The mode selector dropdowns in Agent Manager had double scrollbars
because the outer container (300px) was smaller than the inner
scroll container (328px from max-h-82).

Fix:
- Remove max-height from outer container
- Set overflow: hidden on outer container
- Target inner scroll container via CSS selector and set max-height: 250px
- Single scrollbar now appears on inner container

This approach allows unlimited modes while maintaining a compact
dropdown with proper scrolling behavior.

Tested on Kilocode v5.3.0 (latest).
@Drilmo Drilmo force-pushed the fix/agent-manager-double-scrollbar branch from 3facec7 to b5ef707 Compare February 5, 2026 16:07
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.

1 participant