You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Web UI file search fails - query parameter stripped from request when empty #8285
When using the file search dialog in the Web UI (via opencode serve), the query parameter is never being sent in the request URL, regardless of what is typed. This causes validation errors on every keystroke.
Actual request sent by the browser (even after typing text):
Root cause analysis:
The query parameter is never included in the request URL. The SDK should be sending { query: "searchTerm", dirs: "false" } but only dirs appears in the actual HTTP request.
Possible fix locations:
packages/sdk/js/src/v2/gen/core/params.gen.ts - Check if query params are being filtered incorrectly
packages/ui/src/hooks/use-filtered-list.tsx - Verify the query value is being passed correctly
packages/app/src/context/file.tsx - Check searchFiles function
Additional notes:
Tested with --log-level DEBUG but validation errors are not logged server-side (only status=completed is shown)
The validation error is returned to the client but not captured in server logs - this could be a separate improvement
Plugins
None
OpenCode version
1.1.18
Steps to reproduce
Run opencode serve and access the Web UI
Open any project/session
Open file search dialog (Ctrl+P or Cmd+P, or click the file search)
Type any text (e.g., "test")
Observe in browser DevTools Network tab that query parameter is missing from all requests
File search returns no results / shows errors
Screenshot and/or share link
N/A - Bug is in network requests, visible in browser DevTools Network tab
Activity
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.