The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 15:30 UTC
fix(web): find update settings from the command palette (#17396)
Co-authored-by: Claude <claude@anthropic.com>
Sergiy Dybskiy committed
Oct 10, 2026 at 07:27 UTC
472ea7ec5f67fae660dc606b82698d15a2bc850f
3 files changed
+32
-2
apps/web/src/components/settings/SettingsPanels.tsx
+4
-2
@@ -428,6 +428,7 @@ function AboutVersionSection() {
428
return (
429
<>
430
<SettingsRow
431
+ id={searchableSetting("app-version").id}
432
title={<AboutVersionTitle />}
433
description={description}
434
control={
@@ -450,7 +451,7 @@ function AboutVersionSection() {
451
/>
452
{hasDesktopBridge ? (
453
<SettingsRow
453
- title="Update track"
454
+ {...searchableSetting("update-track")}
455
description="Use stable releases or nightly builds. Switch back anytime."
456
control={
457
<Select
@@ -482,7 +483,7 @@ function AboutVersionSection() {
483
/>
484
) : selectedHostedAppChannel ? (
485
<SettingsRow
485
- title="Update track"
486
+ {...searchableSetting("update-track")}
487
description="Switches the hosted app release channel."
488
control={
489
<Select
@@ -3345,6 +3346,7 @@ export function GeneralSettingsPanel() {
3346
) : (
3347
<>
3348
<SettingsRow
3349
+ id={searchableSetting("app-version").id}
3350
title={<AboutVersionTitle />}
3351
description="Current version of the application."
3352
/>
apps/web/src/components/settings/settingsSearch.test.ts
+10
@@ -128,6 +128,16 @@ describe("searchSettings", () => {
128
expect(SETTINGS_SEARCH_ITEMS.some((item) => item.id === "quit-confirmation")).toBe(true);
129
expect(searchSettings("hold to quit")).toEqual([]);
130
expect(searchSettings("wsl")).toEqual([]);
131
+ expect(searchSettings("update track")).toEqual([]);
132
+ });
133
+
134
+ it("finds the About update rows", () => {
135
+ expect(searchSettings("check for updates").map((item) => item.id)).toContain("app-version");
136
+ expect(SETTINGS_SEARCH_ITEMS.find((item) => item.id === "update-track")).toMatchObject({
137
+ title: "Update track",
138
+ to: "/settings/general",
139
+ releaseChannelOnly: true,
140
+ });
141
});
142
143
it("hides macOS-only settings on other platforms", () => {
apps/web/src/components/settings/settingsSearch.ts
+18
@@ -1,3 +1,4 @@
1
+import { HOSTED_APP_CHANNEL } from "~/branding";
2
import { isElectron } from "~/env";
3
import { isMacPlatform, isWindowsPlatform, normalizeSearchText } from "~/lib/utils";
4
import { STATIC_KEYBINDING_COMMANDS, type KeybindingCommand } from "@t3tools/contracts";
@@ -53,6 +54,9 @@ export interface SettingsSearchItem {
54
// Its row only renders on Windows desktop, so other desktop platforms must
55
// not expose a result that points to a missing anchor.
56
readonly windowsOnly?: boolean;
57
+ // Its row renders only where the release channel can change: the desktop
58
+ // app, or a hosted web build deployed with a channel.
59
+ readonly releaseChannelOnly?: boolean;
60
readonly cloudOnly?: boolean;
61
readonly environmentOnly?: boolean;
62
readonly providerSettingsOnly?: boolean;
@@ -520,6 +524,19 @@ export const SETTINGS_SEARCH_ITEMS = [
524
scope: "project-defaults",
525
searchTerms: ["generated thread titles source control content default provider"],
526
},
527
+ {
528
+ id: "app-version",
529
+ title: "Version",
530
+ to: "/settings/general",
531
+ searchTerms: ["about check for updates download install upgrade release"],
532
+ },
533
+ {
534
+ id: "update-track",
535
+ title: "Update track",
536
+ to: "/settings/general",
537
+ searchTerms: ["release channel stable latest nightly prerelease"],
538
+ releaseChannelOnly: true,
539
+ },
540
{
541
id: "cli-command",
542
title: "t3 command",
@@ -1094,6 +1111,7 @@ export function searchSettings(
1111
return items
1112
.flatMap((item, index) => {
1113
if (!isElectron && item.desktopOnly === true) return [];
1114
+ if (item.releaseChannelOnly && !isElectron && HOSTED_APP_CHANNEL === null) return [];
1115
if (item.macOnly && !isMacPlatform(platform)) return [];
1116
if (item.windowsOnly && !isWindowsPlatform(platform)) return [];
1117