#52686·opencode

fix(app): keep server search visible while filtering

Author: sdivyanshu90Created Oct 2, 2026Updated Oct 2, 2026

Description

In Settings > Servers, the search field can disappear while typing when the list contains one WSL server and one non-WSL server.

showSearch combines the unfiltered non-WSL count with wslServers().length, but wslServers() is already filtered by the current query. When the query stops matching the WSL server, the total falls to one and the input unmounts while its filter remains active.

Steps to reproduce

  1. Configure one WSL server and one non-WSL server.
  2. Open Settings > Servers.
  3. Enter a query that matches only the non-WSL server.

The search field and clear button disappear. The field should remain visible based on the total unfiltered server count.

Operating System

Windows with WSL