diff --git a/apps/web/src/components/ProviderUpdatesAction.tsx b/apps/web/src/components/ProviderUpdatesAction.tsx index 3da57601dc55d..a90b9302c1b71 100644 --- a/apps/web/src/components/ProviderUpdatesAction.tsx +++ b/apps/web/src/components/ProviderUpdatesAction.tsx @@ -1,6 +1,10 @@ import { m } from "../i18n/messages"; import { thrownErrorMessage } from "@t3tools/client-runtime/errors"; -import { AuthProvidersManageScope, PROVIDER_DISPLAY_NAMES } from "@t3tools/contracts"; +import { + AuthProvidersManageScope, + type EnvironmentId, + PROVIDER_DISPLAY_NAMES, +} from "@t3tools/contracts"; import { isAtomCommandInterrupted, settlePromise, @@ -19,6 +23,7 @@ import { getProviderUpdateRunToastView, type ProviderUpdateRun, } from "./ProviderUpdateLaunchNotification.logic"; +import { selectUpdateMachines } from "./sidebar/updateEverything.logic"; import { Button } from "./ui/button"; import { stackedThreadToast, toastManager } from "./ui/toast"; import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip"; @@ -94,19 +99,26 @@ export function useProviderUpdates() { : []; }); - const updateAll = async ({ quiet = false }: { readonly quiet?: boolean } = {}) => { + const updateAll = async ({ + quiet = false, + environmentIds, + }: { + readonly quiet?: boolean; + readonly environmentIds?: ReadonlyArray; + } = {}) => { const runs = await Promise.all( - machines.flatMap(({ environmentId, label, candidates }) => - candidates.map(async (candidate): Promise => ({ - environmentId, - machineLabel: label, - driver: candidate.driver, - instanceId: candidate.instanceId, - result: await updateProvider({ + selectUpdateMachines(machines, environmentIds).flatMap( + ({ environmentId, label, candidates }) => + candidates.map(async (candidate): Promise => ({ environmentId, - input: { provider: candidate.driver, instanceId: candidate.instanceId }, - }), - })), + machineLabel: label, + driver: candidate.driver, + instanceId: candidate.instanceId, + result: await updateProvider({ + environmentId, + input: { provider: candidate.driver, instanceId: candidate.instanceId }, + }), + })), ), ); const view = quiet ? null : getProviderUpdateRunToastView(runs); diff --git a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx index ce45fe8bf73a4..d7a998aa0e15f 100644 --- a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx +++ b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx @@ -42,7 +42,11 @@ import { import { SidebarUpdateReleaseNotes } from "./SidebarUpdateReleaseNotes"; import { SidebarUpdateCapsule } from "./SidebarUpdateCapsule"; import { UpdateEverythingDialog } from "./UpdateEverythingDialog"; -import type { UpdateEverythingRun, UpdateRunLocalState } from "./updateEverything.logic"; +import type { + UpdateEverythingRun, + UpdateRunLocalState, + UpdateMachineSelection, +} from "./updateEverything.logic"; import { clearSavedUpdateEverythingResult, saveUpdateEverythingResult, @@ -370,12 +374,13 @@ function SidebarUpdateControl() { void Promise.allSettled([appCheck, providersChecked]).then(() => setIsActionPending(false)); }; - const runEverything = async () => { + const runEverything = async (selection?: UpdateMachineSelection) => { const bridge = window.desktopBridge; setIsConfirmingEverything(false); setIsActionPending(true); const result = await settlePromise(() => everything.run({ + ...(selection ? { selection } : {}), ...(bridge && action === "download" ? { downloadLocal: (reportError) => @@ -429,7 +434,8 @@ function SidebarUpdateControl() { rows={everything.rows} restarts={everything.restarts} checking={providerCheck === "dialog"} - onConfirm={() => void runEverything()} + selectable + onConfirm={(selection) => void runEverything(selection)} /> ); diff --git a/apps/web/src/components/sidebar/UpdateEverythingDialog.browser.test.tsx b/apps/web/src/components/sidebar/UpdateEverythingDialog.browser.test.tsx new file mode 100644 index 0000000000000..5ac5fefcbb6d9 --- /dev/null +++ b/apps/web/src/components/sidebar/UpdateEverythingDialog.browser.test.tsx @@ -0,0 +1,97 @@ +import { EnvironmentId } from "@t3tools/contracts"; +import { expect, it, vi } from "vite-plus/test"; +import { page, userEvent } from "vite-plus/test/browser"; + +import "~/index.css"; +import { render } from "../../../test/render"; +import { describeUpdateEverything } from "./updateEverything.logic"; +import { UpdateEverythingDialog } from "./UpdateEverythingDialog"; + +it("lets a remote user update the laptop without updating the PC host", async () => { + const pc = EnvironmentId.make("pc"); + const laptop = EnvironmentId.make("laptop"); + const onConfirm = vi.fn(); + await using _screen = await render( + {}} + selectable + version="0.2.0" + providerCount={2} + rows={[ + { + environmentId: pc, + label: "PC host", + app: "this-app", + providers: ["Codex"], + skipped: null, + }, + { + environmentId: laptop, + label: "Laptop", + app: "desktop-app", + providers: ["Claude"], + skipped: null, + }, + ]} + restarts={[]} + onConfirm={onConfirm} + />, + ); + const selectAll = page.getByRole("checkbox", { name: "Select all machines" }); + await expect.element(page.getByRole("heading", { name: "Update 2 machines?" })).toBeVisible(); + await userEvent.click(selectAll); + await expect.element(page.getByRole("checkbox", { name: "Laptop" })).not.toBeChecked(); + await expect.element(page.getByRole("button", { name: "Update", exact: true })).toBeDisabled(); + await userEvent.click(selectAll); + await expect.element(page.getByRole("heading", { name: "Update 2 machines?" })).toBeVisible(); + await userEvent.click(page.getByRole("checkbox", { name: "PC host" })); + await expect.element(selectAll).toHaveAttribute("aria-checked", "mixed"); + await expect.element(page.getByRole("heading", { name: "Update 1 machine?" })).toBeVisible(); + await expect.element(page.getByText(/1 provider update$/)).toBeVisible(); + await userEvent.click(page.getByRole("checkbox", { name: "Laptop" })); + await expect.element(page.getByRole("button", { name: "Update", exact: true })).toBeDisabled(); + await userEvent.click(page.getByRole("checkbox", { name: "Laptop" })); + await userEvent.click(page.getByRole("button", { name: "Update", exact: true })); + expect(onConfirm).toHaveBeenCalledWith({ environmentIds: [laptop], updateLocal: false }); +}); +it("keeps local provider exclusions when an app update arrives", async () => { + const pc = EnvironmentId.make("pc"); + const laptop = EnvironmentId.make("laptop"); + const onConfirm = vi.fn(); + const dialog = (app: "this-app" | null) => ( + {}} + selectable + checking + version={app === null ? null : "0.2.0"} + providerCount={2} + rows={ + describeUpdateEverything({ + localVersion: app === null ? null : "0.2.0", + localMachines: [{ environmentId: pc, label: "PC host" }], + servers: [], + providerMachines: [ + { environmentId: pc, label: "PC host", providers: ["Codex"] }, + { environmentId: laptop, label: "Laptop", providers: ["Claude"] }, + ], + skipped: [], + }).rows + } + restarts={[]} + onConfirm={onConfirm} + /> + ); + await using screen = await render(dialog(null)); + await userEvent.click(page.getByRole("checkbox", { name: "PC host" })); + await screen.rerender(dialog("this-app")); + await expect.element(page.getByRole("checkbox", { name: "PC host" })).not.toBeChecked(); + await expect + .element(page.getByText(/1 provider update/)) + .toHaveTextContent("1 provider update · Checking for more…"); + await userEvent.click(page.getByRole("button", { name: "Update", exact: true })); + expect(onConfirm).toHaveBeenCalledWith({ environmentIds: [laptop], updateLocal: false }); + await userEvent.click(page.getByRole("checkbox", { name: "Laptop" })); + await expect.element(page.getByText("Checking for more…", { exact: true })).toBeVisible(); +}); diff --git a/apps/web/src/components/sidebar/UpdateEverythingDialog.tsx b/apps/web/src/components/sidebar/UpdateEverythingDialog.tsx index 048aa54ae620a..45abccd916614 100644 --- a/apps/web/src/components/sidebar/UpdateEverythingDialog.tsx +++ b/apps/web/src/components/sidebar/UpdateEverythingDialog.tsx @@ -3,7 +3,7 @@ import { EnvironmentId } from "@t3tools/contracts"; import { Atom } from "effect/reactivity"; import { ChevronRightIcon } from "lucide-react"; import { msg, T, useGT, useMessages } from "gt-react"; -import { Fragment, type RefObject, useRef } from "react"; +import { Fragment, type RefObject, useRef, useState } from "react"; import { environmentThreadShells } from "~/state/threads"; import { @@ -15,11 +15,16 @@ import { AlertDialogPopup, AlertDialogTitle, } from "../ui/alert-dialog"; +import { Checkbox } from "../ui/checkbox"; import { Button } from "../ui/button"; import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible"; import { MiddleTruncate } from "../ui/middle-truncate"; import { ScrollArea } from "../ui/scroll-area"; -import type { RestartingMachine, UpdateEverythingRow } from "./updateEverything.logic"; +import type { + RestartingMachine, + UpdateEverythingRow, + UpdateMachineSelection, +} from "./updateEverything.logic"; const isRunning = (status: string) => status === "preparing" || status === "starting" || status === "running"; @@ -47,7 +52,8 @@ interface UpdateEverythingDialogProps { readonly providerCount: number; readonly rows: ReadonlyArray; readonly restarts: ReadonlyArray; - readonly onConfirm: () => void; + readonly onConfirm: (selection?: UpdateMachineSelection) => void; + readonly selectable?: boolean; /** Overrides the "Update N machines?" title, for an update-track switch. */ readonly title?: string; readonly confirmLabel?: string; @@ -97,8 +103,9 @@ function UpdateEverythingDialogContent({ version, providerCount, rows, - restarts, + restarts: allRestarts, onConfirm, + selectable = false, cancelRef, title, confirmLabel, @@ -109,6 +116,21 @@ function UpdateEverythingDialogContent({ }: UpdateEverythingDialogContentProps) { const gt = useGT(); const m = useMessages(); + const [excluded, setExcluded] = useState>(() => new Set()); + const rowKey = (row: UpdateEverythingRow) => + row.hostedByThisApp || row.app === "this-app" ? "this-app" : (row.environmentId ?? "this-app"); + const updating = rows.filter((row) => row.app !== null || row.providers.length > 0); + const selected = updating.filter((row) => !selectable || !excluded.has(rowKey(row))); + const selectedIds = new Set( + selected.flatMap((row) => (row.environmentId === null ? [] : [row.environmentId])), + ); + const restarts = allRestarts.filter( + (machine) => !selectable || selectedIds.has(machine.environmentId), + ); + const selectedProviderCount = selectable + ? selected.reduce((count, row) => count + row.providers.length, 0) + : providerCount; + const selectedVersion = !selectable || selected.some((row) => row.app !== null) ? version : null; const stopped = useAtomValue( runningThreadCountAtom( restarts @@ -127,7 +149,6 @@ function UpdateEverythingDialogContent({ ); const running = stopped + continuing; const restarting = new Set(restarts.map((machine) => machine.environmentId)); - const updating = rows.filter((row) => row.app !== null || row.providers.length > 0); const skipped = rows.filter((row) => row.skipped !== null); return ( @@ -136,24 +157,24 @@ function UpdateEverythingDialogContent({ {title ?? gt("{count, plural, one {Update {count} machine?} other {Update {count} machines?}}", { - count: updating.length, + count: selected.length, })} - {version !== null ? ( + {selectedVersion !== null ? ( <> - T3 Code {version} + T3 Code {selectedVersion} ) : null} - {version !== null && providerCount > 0 ? " · " : null} - {providerCount > 0 + {selectedVersion !== null && selectedProviderCount > 0 ? " · " : null} + {selectedProviderCount > 0 ? gt( "{count, plural, one {{count} provider update} other {{count} provider updates}}", - { count: providerCount }, + { count: selectedProviderCount }, ) : null} {checking - ? `${version !== null || providerCount > 0 ? " · " : ""}${gt("Checking for more…")}` + ? `${selectedVersion !== null || selectedProviderCount > 0 ? " · " : ""}${gt("Checking for more…")}` : null} @@ -164,6 +185,14 @@ function UpdateEverythingDialogContent({ {note}

))} + {selectable ? ( +

+ + Choose which machines to update. Only selected machines will be updated or + restarted. + +

+ ) : null} {/* Machine names truncate first. Provider lists wrap between names, never inside one. */}
- + + T3 Code Providers @@ -188,10 +228,24 @@ function UpdateEverythingDialogContent({ role="row" className="col-span-full grid grid-cols-subgrid border-b border-border/50 py-1.5 last:border-b-0" > - + + {row.app !== null ? m(APP_LABELS[row.app]) : null} {row.app === null && row.skipped !== null ? ( @@ -274,7 +328,19 @@ function UpdateEverythingDialogContent({ }> Cancel - diff --git a/apps/web/src/components/sidebar/updateEverything.logic.test.ts b/apps/web/src/components/sidebar/updateEverything.logic.test.ts index f4b1d0053b22b..638e290423578 100644 --- a/apps/web/src/components/sidebar/updateEverything.logic.test.ts +++ b/apps/web/src/components/sidebar/updateEverything.logic.test.ts @@ -9,6 +9,7 @@ import { describeUpdateCapsule, describeUpdateEverything, runUpdateEverything, + selectUpdateMachines, type UpdateEverythingMachine, } from "./updateEverything.logic"; @@ -434,6 +435,16 @@ describe("describeUpdateEverything", () => { ], }); + expect( + describeUpdateEverything({ + localVersion: null, + localMachines: [{ environmentId: id("local"), label: "Mainbook" }], + servers: [], + providerMachines: [{ environmentId: id("local"), label: "Mainbook", providers: ["Codex"] }], + skipped: [], + }).rows[0], + ).toMatchObject({ app: null, hostedByThisApp: true }); + expect( rows.map(({ label, app, skipped, providers }) => [label, app, skipped, providers]), ).toEqual([ @@ -475,3 +486,13 @@ describe("describeUpdateCapsule", () => { ); }); }); + +describe("selectUpdateMachines", () => { + it("updates only selected machines and preserves the update-all default", () => { + const pc = { environmentId: EnvironmentId.make("pc") }; + const laptop = { environmentId: EnvironmentId.make("laptop") }; + expect(selectUpdateMachines([pc, laptop], [laptop.environmentId])).toEqual([laptop]); + expect(selectUpdateMachines([pc, laptop], [])).toEqual([]); + expect(selectUpdateMachines([pc, laptop])).toEqual([pc, laptop]); + }); +}); diff --git a/apps/web/src/components/sidebar/updateEverything.logic.ts b/apps/web/src/components/sidebar/updateEverything.logic.ts index 6930549adf19b..4f2e1aa89ead1 100644 --- a/apps/web/src/components/sidebar/updateEverything.logic.ts +++ b/apps/web/src/components/sidebar/updateEverything.logic.ts @@ -731,6 +731,7 @@ export interface UpdateEverythingPlan { } export interface UpdateEverythingRow { + readonly hostedByThisApp?: boolean; readonly environmentId: EnvironmentId | null; readonly label: string; readonly app: "this-app" | "server" | "desktop-app" | null; @@ -882,6 +883,9 @@ export function describeUpdateEverything( const row = rows.get(environmentId) ?? { environmentId, label, + hostedByThisApp: + environmentId === null || + plan.localMachines.some((machine) => machine.environmentId === environmentId), app: null, skipped: null, providers: [], @@ -918,3 +922,17 @@ export function describeUpdateEverything( rows: Array.from(rows.values()), }; } + +export interface UpdateMachineSelection { + readonly environmentIds: ReadonlyArray; + readonly updateLocal: boolean; +} + +export function selectUpdateMachines( + machines: ReadonlyArray, + environmentIds?: ReadonlyArray, +): ReadonlyArray { + return environmentIds === undefined + ? machines + : machines.filter((machine) => environmentIds.includes(machine.environmentId)); +} diff --git a/apps/web/src/components/sidebar/useUpdateEverything.ts b/apps/web/src/components/sidebar/useUpdateEverything.ts index 87c3a43a598eb..fa319e4bef3b8 100644 --- a/apps/web/src/components/sidebar/useUpdateEverything.ts +++ b/apps/web/src/components/sidebar/useUpdateEverything.ts @@ -22,6 +22,8 @@ import { collectUpdateEverythingResult, describeUpdateEverything, runUpdateEverything, + selectUpdateMachines, + type UpdateMachineSelection, type UpdateRunMachine, } from "./updateEverything.logic"; import { @@ -107,17 +109,25 @@ export function useUpdateEverything( run: async ({ downloadLocal, installLocal, + selection, }: { + selection?: UpdateMachineSelection; downloadLocal?: (reportError: ReportLocalUpdateError) => Promise; installLocal?: (reportError: ReportLocalUpdateError) => Promise; }) => { + const selectedServers = selectUpdateMachines(servers, selection?.environmentIds); + const selectedProviders = selectUpdateMachines(providers.machines, selection?.environmentIds); + if (selection?.updateLocal === false) { + downloadLocal = undefined; + installLocal = undefined; + } const localFailures: Array = []; const reportLocalError: ReportLocalUpdateError = (title, description) => { localFailures.push(`${title}: ${description}`); }; const startedAt = Date.now(); const machinesById = new Map(); - for (const machine of providers.machines) { + for (const machine of selectedProviders) { machinesById.set(machine.environmentId, { environmentId: machine.environmentId, label: machine.label, @@ -130,7 +140,7 @@ export function useUpdateEverything( providerFailure: null, }); } - for (const server of servers) { + for (const server of selectedServers) { const existing = machinesById.get(server.environmentId); machinesById.set(server.environmentId, { environmentId: server.environmentId, @@ -158,7 +168,10 @@ export function useUpdateEverything( const outcome = await runUpdateEverything({ ...(downloadLocal ? { downloadLocal: () => downloadLocal(reportLocalError) } : {}), updateProviders: async () => { - const runs = await providers.updateAll({ quiet: true }); + const runs = await providers.updateAll({ + quiet: true, + ...(selection ? { environmentIds: selection.environmentIds } : {}), + }); const outcomes = runs.map((run) => { const runOutcome = getProviderUpdateRunOutcome(run); if (runOutcome.status !== "updated") { @@ -192,11 +205,11 @@ export function useUpdateEverything( ); return outcomes; }, - ...(providers.machines.length > 0 + ...(selectedProviders.length > 0 ? { stageServers: () => new Map( - servers + selectedServers .filter( (server) => machines.find((machine) => machine.environmentId === server.environmentId) @@ -213,7 +226,7 @@ export function useUpdateEverything( } : {}), updateServers: async (staged) => { - const runs = servers.map(async (server) => { + const runs = selectedServers.map(async (server) => { await staged.get(server.environmentId); const serverOutcome = await updateServer(server, { quiet: true }); settleUpdateRunMachine( @@ -231,7 +244,7 @@ export function useUpdateEverything( return finished; }); await Promise.all( - servers.map((server, index) => + selectedServers.map((server, index) => waitForServerUpdateHandoff(server.environmentId, runs[index]!), ), ); diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 648fd58859dbe..fe49b3e77a2dc 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -11703,6 +11703,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} kann nach dem Neustart fortgesetzt werden.} other {{count} können nach dem Neustart fortgesetzt werden.}}", "0576c87870fb6389": "Aktualisieren", "948185631ef288e6": "{count, plural, one {{count} läuft} other {{count} laufen}}", + "fc79eb5b32f47c10": "Wähle aus, welche Maschinen aktualisiert werden sollen. Nur ausgewählte Maschinen werden aktualisiert oder neu gestartet.", + "0c63d52b2eb9fbb5": "Alle Maschinen auswählen", "3d9a2f6b9c114039": "Anbieter", "f4baf8deafbb227d": "Übersprungen", "f938bb483eb3d189": "startet zuletzt neu", diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index 599944358b5bb..2006d48ba8c15 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -11711,6 +11711,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} can resume after the restart.} other {{count} can resume after the restart.}}", "0576c87870fb6389": "Update", "948185631ef288e6": "{count, plural, one {{count} running} other {{count} running}}", + "fc79eb5b32f47c10": "Choose which machines to update. Only selected machines will be updated or restarted.", + "0c63d52b2eb9fbb5": "Select all machines", "3d9a2f6b9c114039": "Providers", "f4baf8deafbb227d": "Skipped", "f938bb483eb3d189": "restarts last", diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 956f4e17a9617..5a5734f4dfcb6 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -11696,6 +11696,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} puede reanudarse después del reinicio.} other {{count} pueden reanudarse después del reinicio.}}", "0576c87870fb6389": "Actualizar", "948185631ef288e6": "{count, plural, one {{count} en ejecución} other {{count} en ejecución}}", + "fc79eb5b32f47c10": "Elige qué máquinas actualizar. Solo se actualizarán o reiniciarán las máquinas seleccionadas.", + "0c63d52b2eb9fbb5": "Seleccionar todas las máquinas", "3d9a2f6b9c114039": "Proveedores", "f4baf8deafbb227d": "Omitido", "f938bb483eb3d189": "se reinicia el último", diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index 1c982cc6d6f58..6ec17f0c27d1b 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -11701,6 +11701,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} peut reprendre après le redémarrage.} other {{count} peuvent reprendre après le redémarrage.}}", "0576c87870fb6389": "Mettre à jour", "948185631ef288e6": "{count, plural, one {{count} en cours} other {{count} en cours}}", + "fc79eb5b32f47c10": "Choisissez les machines à mettre à jour. Seules les machines sélectionnées seront mises à jour ou redémarrées.", + "0c63d52b2eb9fbb5": "Sélectionner toutes les machines", "3d9a2f6b9c114039": "Fournisseurs", "f4baf8deafbb227d": "Ignorés", "f938bb483eb3d189": "redémarre en dernier", diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index 879531a396d2a..628c10f93f03a 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -11651,6 +11651,8 @@ "ecdf5f108ecc71d0": "{count, plural, other {{count} 件は再起動後に再開できます。}}", "0576c87870fb6389": "更新", "948185631ef288e6": "{count, plural, other {{count} 件実行中}}", + "fc79eb5b32f47c10": "更新するマシンを選択してください。選択したマシンのみが更新または再起動されます。", + "0c63d52b2eb9fbb5": "すべてのマシンを選択", "3d9a2f6b9c114039": "プロバイダー", "f4baf8deafbb227d": "スキップ", "f938bb483eb3d189": "最後に再起動", diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index fae8ce2ec6fc4..4c4edef807acb 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -11648,6 +11648,8 @@ "ecdf5f108ecc71d0": "{count, plural, other {{count}개는 다시 시작한 후 재개할 수 있습니다.}}", "0576c87870fb6389": "업데이트", "948185631ef288e6": "{count, plural, other {{count}개 실행 중}}", + "fc79eb5b32f47c10": "업데이트할 머신을 선택하세요. 선택한 머신만 업데이트되거나 다시 시작됩니다.", + "0c63d52b2eb9fbb5": "모든 머신 선택", "3d9a2f6b9c114039": "제공자", "f4baf8deafbb227d": "건너뜀", "f938bb483eb3d189": "마지막에 다시 시작", diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index 7010bef288b16..c6d8f97cff8f2 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -11700,6 +11700,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} pode retomar após a reinicialização.} other {{count} podem retomar após a reinicialização.}}", "0576c87870fb6389": "Atualizar", "948185631ef288e6": "{count, plural, one {{count} em execução} other {{count} em execução}}", + "fc79eb5b32f47c10": "Escolha quais máquinas atualizar. Somente as máquinas selecionadas serão atualizadas ou reiniciadas.", + "0c63d52b2eb9fbb5": "Selecionar todas as máquinas", "3d9a2f6b9c114039": "Provedores", "f4baf8deafbb227d": "Ignorado", "f938bb483eb3d189": "reinicia por último", diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index 0766d953dd02d..f3b94c40d17c2 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -11701,6 +11701,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} можно возобновить после перезапуска.} few {{count} можно возобновить после перезапуска.} many {{count} можно возобновить после перезапуска.} other {{count} можно возобновить после перезапуска.}}", "0576c87870fb6389": "Обновить", "948185631ef288e6": "{count, plural, one {Выполняется: {count}} few {Выполняется: {count}} many {Выполняется: {count}} other {Выполняется: {count}}}", + "fc79eb5b32f47c10": "Выберите машины для обновления. Обновлены или перезапущены будут только выбранные машины.", + "0c63d52b2eb9fbb5": "Выбрать все машины", "3d9a2f6b9c114039": "Провайдеры", "f4baf8deafbb227d": "Пропущено", "f938bb483eb3d189": "перезапуск последним", diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index 5e6d1607edf31..bcf55315087c9 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -11709,6 +11709,8 @@ "ecdf5f108ecc71d0": "{count, plural, one {{count} kan återupptas efter omstarten.} other {{count} kan återupptas efter omstarten.}}", "0576c87870fb6389": "Uppdatera", "948185631ef288e6": "{count, plural, one {{count} körs} other {{count} körs}}", + "fc79eb5b32f47c10": "Välj vilka maskiner som ska uppdateras. Endast valda maskiner uppdateras eller startas om.", + "0c63d52b2eb9fbb5": "Välj alla maskiner", "3d9a2f6b9c114039": "Leverantörer", "f4baf8deafbb227d": "Överhoppad", "f938bb483eb3d189": "startar om sist", diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index c86b9e6c55e41..7c1dca5319d74 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -11726,6 +11726,8 @@ "ecdf5f108ecc71d0": "{count, plural, other {{count} 个可在重启后恢复。}}", "0576c87870fb6389": "更新", "948185631ef288e6": "{count, plural, other {{count} 个运行中}}", + "fc79eb5b32f47c10": "选择要更新的机器。只有选中的机器才会更新或重启。", + "0c63d52b2eb9fbb5": "选择所有机器", "3d9a2f6b9c114039": "智能体提供方", "f4baf8deafbb227d": "已跳过", "f938bb483eb3d189": "最后重启", diff --git a/docs/user/updating.md b/docs/user/updating.md index 388e9035ca770..37fe4e7abfa4d 100644 --- a/docs/user/updating.md +++ b/docs/user/updating.md @@ -4,11 +4,15 @@ The app you use and the server running your agents can be on different machines. When a server is behind your web or desktop app, the update button at the bottom of the sidebar and **Settings → Environments** offer to update it. -## Update everything at once +## Choose which machines to update -The update button at the bottom of the sidebar updates every connected machine -in one step. It updates outdated providers, then servers that are behind, then -the desktop app you are using. Servers move to the +The update button at the bottom of the sidebar lets you choose which connected +machines to update. All machines start selected. Deselect a machine to leave its +app, server, and providers running as they are. For example, update your laptop +while keeping your PC host available over Tailscale. + +For the selected machines, it updates outdated providers, then servers that are +behind, then the desktop app you are using if selected. Servers move to the version your desktop app is installing, or to your web app's version. A background service stays on its current release channel. A remote desktop app installs the latest release from its own channel. Hover the button to see what @@ -32,7 +36,7 @@ If a desktop app restarts on its old version, T3 Code tells you the update did not apply. It does not install that version again on its own, even when another device asks. Use the update button on that machine to retry. -The confirmation counts the running threads that the restarts will interrupt, +The confirmation counts the running threads that the selected restarts will interrupt, and how many can resume afterwards. See **Continue threads after restarts** below.