@devries-cameron20 / t3code-1 / commits / 220bc7cc50
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): Settings search finds rows by their titles (#27540)

Craig Davison committed Nov 2, 2026 at 05:47 UTC 220bc7cc5031faf08a283f6c5e9f52ca82dc84e4
2 files changed +22 -5
apps/web/src/components/settings/settingsSearch.test.ts
+15
@@ -189,6 +189,21 @@ describe("searchSettings", () => {
189 expect(searchSettings("sidebar.toggle")[0]?.targetId).toBeUndefined();
190 });
191
192 + it("finds rows by the titles shown on their pages", () => {
193 + for (const [title, id] of [
194 + ["Automatic worktree cleanup", "storage-worktrees"],
195 + ["Delete settled worktrees", "storage-worktrees"],
196 + ["Delete old browser artifacts", "storage-artifacts"],
197 + ["Delete old rotated logs", "storage-artifacts"],
198 + ["Custom search URL", "browser-search-engine"],
199 + ["Native sessions", "providers"],
200 + ["CODEX_HOME path", "providers"],
201 + ["Shadow home path", "providers"],
202 + ] as const) {
203 + expect(searchSettings(title)[0]?.id, title).toBe(id);
204 + }
205 + });
206 +
207 it("keeps catalog result ids unique", () => {
208 const ids = SETTINGS_SEARCH_ITEMS.map((item) => item.id);
209 expect(new Set(ids).size).toBe(ids.length);
apps/web/src/components/settings/settingsSearch.ts
+7 -5
@@ -239,7 +239,7 @@ export const SETTINGS_SEARCH_ITEMS = [
239 to: "/settings/worktrees",
240 scope: "project-defaults",
241 searchTerms: [
242 - "disk storage delete deleted archived threads old inactive merged unchanged worktrees retention days project inherit off custom",
242 + "disk storage automatic delete deleted archived threads old inactive merged settled unchanged worktrees retention days project inherit off custom",
243 ],
244 },
245 {
@@ -254,7 +254,9 @@ export const SETTINGS_SEARCH_ITEMS = [
254 title: "Artifacts and logs",
255 to: "/settings/maintenance",
256 scope: "environment-defaults",
257 - searchTerms: ["disk storage browser screenshots captures rotated logs cleanup retention"],
257 + searchTerms: [
258 + "disk storage delete old browser artifacts screenshots captures rotated logs cleanup retention",
259 + ],
260 },
261 {
262 id: "project-defaults",
@@ -804,7 +806,7 @@ export const SETTINGS_SEARCH_ITEMS = [
806 title: "Providers",
807 to: "/settings/providers",
808 searchTerms: [
807 - "agents cli codex claude cursor grok fx opencode antigravity google sign in sign out install subscription instances authentication api key models configuration binary path config directory endpoint arguments environment variables display name accent color custom favorite hidden auto compact",
809 + "agents cli codex claude cursor grok fx opencode antigravity google sign in sign out install subscription instances authentication api key models configuration binary path config directory codex_home shadow home endpoint arguments environment variables display name accent color custom favorite hidden auto compact native sessions import resume",
810 ],
811 },
812 {
@@ -924,7 +926,7 @@ export const SETTINGS_SEARCH_ITEMS = [
926 id: "browser-search-engine",
927 title: "Search engine",
928 to: "/settings/browser",
927 - searchTerms: ["address bar duckduckgo google bing brave kagi ecosia custom"],
929 + searchTerms: ["address bar duckduckgo google bing brave kagi ecosia custom url"],
930 },
931 {
932 id: "pull-request-links-open-in-app",
@@ -1086,7 +1088,7 @@ export const SETTINGS_SEARCH_ITEMS = [
1088 title: "WSL backend",
1089 to: "/settings/access",
1090 searchTerms: [
1089 - "windows subsystem linux distro second server projects stop windows backend restart",
1091 + "windows subsystem linux distro second server projects stop windows backend restart wsl only",
1092 ],
1093 desktopOnly: true,
1094 windowsOnly: true,