From c578fca6878fa8cc687df4e34f0eaf43956e48c8 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 19 Jan 2026 05:15:51 +0000 Subject: [PATCH] fix(tui): generic empty-state for searchable pickers (PR #1201, thanks @vignesh07) Co-authored-by: Vignesh Natarajan --- CHANGELOG.md | 5 +---- src/tui/components/searchable-select-list.test.ts | 2 +- src/tui/components/searchable-select-list.ts | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e95e86f97..2b3c77bef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,12 +14,9 @@ Docs: https://docs.clawd.bot ### Fixes - Plugins: surface plugin load/register/config errors in gateway logs with plugin/source context. -<<<<<<< Updated upstream - Agents: propagate accountId into embedded runs so sub-agent announce routing honors the originating account. (#1058) -||||||| Stash base -======= - Compaction: include tool failure summaries in safeguard compaction to prevent retry loops. (#1084) ->>>>>>> Stashed changes +- TUI: show generic empty-state text for searchable pickers. (#1201) — thanks @vignesh07. ## 2026.1.18-5 diff --git a/src/tui/components/searchable-select-list.test.ts b/src/tui/components/searchable-select-list.test.ts index f60496dca..a16d77320 100644 --- a/src/tui/components/searchable-select-list.test.ts +++ b/src/tui/components/searchable-select-list.test.ts @@ -158,7 +158,7 @@ describe("SearchableSelectList", () => { list.handleInput("z"); const output = list.render(80); - expect(output.some((line) => line.includes("No matching"))).toBe(true); + expect(output.some((line) => line.includes("No matches"))).toBe(true); }); it("navigates with arrow keys", () => { diff --git a/src/tui/components/searchable-select-list.ts b/src/tui/components/searchable-select-list.ts index 058128599..46cd5fefe 100644 --- a/src/tui/components/searchable-select-list.ts +++ b/src/tui/components/searchable-select-list.ts @@ -190,7 +190,7 @@ export class SearchableSelectList implements Component { // If no items match filter, show message if (this.filteredItems.length === 0) { - lines.push(this.theme.noMatch(" No matching models")); + lines.push(this.theme.noMatch(" No matches")); return lines; }