Files
hermes-webui/static
n a8d10887df fix(picker): don't let a separator-only search match every model
Codex gate finding on #7385: the new fold-matching (#7228) normalizes the search
term by stripping [\s._-], so a separator-only query ('.', '-', '_') folds to '' and
String.includes('') is always true — every model matched. Verified: searching '.'
returned all models, including ids with no dot.

Guard the folded clauses with a non-empty foldTerm, keeping the literal
name/id includes() checks so '-' still matches ids that really contain one.
Real searches ('ox alpha' / 'ox-alpha' / 'sonnet') are unchanged.
2026-09-08 00:58:05 +00:00
..
2026-09-08 00:16:17 +00:00
2026-09-08 00:16:17 +00:00
2026-09-08 00:16:17 +00:00