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
Session title search is case-sensitive for non-ASCII letters #64245
The session list search (GET /api/session?search=, the Sessions dialog) matches titles with SQLite LIKE, which folds case only for ASCII letters.
Plugins
Not involved: plain bun:sqlite gives the same (select 'Тестова сесия' like '%тестова%' is 0)
OpenCode version
2.2.7, the same line is on dev
Steps to reproduce
Rename a session to Тестова сесия.
Open the session list and type тестова: "No sessions found".
Type Тестова: the session is listed. opencode does find OpenCode.
Expected: both find it.
The line is like(SessionTable.title, ...) in packages/core/src/session/store.ts. Bun's SQLite has no ICU, so lower() does not fold these letters either.
Thanks for the precise report. I reproduced this on the released 2.2.7 CLI through the server API, without needing a model:
Start opencode serve.
Create sessions titled Тестова сесия and OpenCode notes.
Call GET /api/session?search=… with different cases.
Results:
opencode and OpenCode both find OpenCode notes.
Тестова finds Тестова сесия.
тестова returns no sessions.
The result is the same on the latest dev (e460646), run from source, where the search still uses the like(SessionTable.title, ...) line you pointed to. The script below reproduces it.
Activity
opencodejr commentedon Nov 16, 2026
Thanks for the precise report. I reproduced this on the released 2.2.7 CLI through the server API, without needing a model:
opencode serve.Тестова сесияandOpenCode notes.GET /api/session?search=…with different cases.Results:
opencodeandOpenCodeboth findOpenCode notes.ТестоваfindsТестова сесия.тестоваreturns no sessions.The result is the same on the latest
dev(e460646), run from source, where the search still uses thelike(SessionTable.title, ...)line you pointed to. The script below reproduces it.Reproduction script (repro.sh)
Run it:
bash repro.sh