fix(ui): prevent collapsible toggle on tools with hideDetails (#8650)

Tools like Read, Task, and Skill set hideDetails=true because they
have no expandable content. Clicking them toggled aria-expanded, which
added a 1px border-bottom via CSS — producing a visible 2px empty box.
Block the toggle when hideDetails is set so nothing happens on click.
This commit is contained in:
Marius
2026-04-09 11:42:01 +02:00
committed by GitHub
parent bf75b3e834
commit 9a2fbae94f
@@ -111,6 +111,7 @@ export function BasicTool(props: BasicToolProps) {
const handleOpenChange = (value: boolean) => {
if (pending()) return
if (props.hideDetails) return // kilocode_change
if (props.locked && !value) return
setOpen(value)
}