Skip to content

[BUG] [alpha] CortexAgentSidebar: Search icon button in Vibe sidebar header does nothing when clicked #22178

Description

@artur0306

Project

ide

Description

In Vibe mode, the CortexAgentSidebar renders a search icon button (magnifying glass) in the header bar next to the project name. The button has full hover/press visual feedback (background highlight, cursor: pointer), but clicking it does absolutely nothing — no search dialog, no filter input, no panel opens.

The root cause: CortexAgentSidebar wires the button's click handler to props.onSearch ([CortexAgentSidebar.tsx:201]), but the parent component CortexVibeLayout never passes the onSearch prop ([CortexVibeLayout.tsx:32-42]). Furthermore, CortexVibeLayoutProps doesn't even define onSearch as a prop option, and CortexDesktopLayout doesn't provide any search handler for the Vibe layout.

Error Message

Debug Logs

System Information

OS: Windows 11 Pro 10.0.22631
App: Cortex IDE (alpha)

Screenshots

2026-03-01.05-20-17.mp4

Steps to Reproduce

Open Cortex IDE and switch to Vibe mode (click "Vibe" in the top-left toggle)
Observe the sidebar header showing the project name (e.g., "bounty-challenge") and a magnifying glass icon on the right
Click the magnifying glass icon
Nothing happens — no search UI appears, no visual feedback, no error

Expected Behavior

Clicking the search icon in the Vibe sidebar header should open a search/filter interface — either filtering agents/conversations in the sidebar, or opening a global project search panel.

Actual Behavior

Clicking the search icon produces no response. The button highlights on hover and shows a press state, appearing fully interactive, but the click handler resolves to undefined?.() (optional chaining on undefined), which silently no-ops.

Additional Context

The prop wiring gap spans three levels:

CortexAgentSidebar.tsx:201 — Renders where onSearch is an optional prop
CortexVibeLayout.tsx:32-42 — Renders without passing onSearch
CortexVibeLayoutProps (lines 5-27) — Does not include onSearch in its interface, so it can't be passed from above
This is distinct from Search sidebar issues (IDE mode, #20040, #20207, etc.) which involve the left activity bar search panel. This bug is specifically about the Vibe mode's agent sidebar header search button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingideIssues related to IDEvalidValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions