diff --git a/apps/desktop/src/state/appState.ts b/apps/desktop/src/state/appState.ts index efbe8139c..a3162e6ad 100644 --- a/apps/desktop/src/state/appState.ts +++ b/apps/desktop/src/state/appState.ts @@ -59,7 +59,6 @@ export type SettingsSection = | "keyboard" | "usage" | "statistics" - | "advanced" | "diagnostics" | "about"; @@ -80,19 +79,20 @@ export const SETTINGS_SECTIONS: readonly SettingsSection[] = [ "outside", "usage", "statistics", - "advanced", "diagnostics", "about", ]; /** * What an older build's section id opens: the Harnesses page keeps its old - * `agents` id, so a stored `harnesses` opens it, and Engine became Advanced. + * `agents` id, so a stored `harnesses` opens it, and Engine and later Advanced became part of + * Diagnostics. * An id no build knows opens General. */ const LEGACY_SECTIONS: Record = { harnesses: "agents", - engine: "advanced", + engine: "diagnostics", + advanced: "diagnostics", }; /** A section id as the panel shows it, with the fallbacks a stored old one needs. */ diff --git a/apps/desktop/src/state/settingsRegistry.ts b/apps/desktop/src/state/settingsRegistry.ts index b54941eb2..fc011f74b 100644 --- a/apps/desktop/src/state/settingsRegistry.ts +++ b/apps/desktop/src/state/settingsRegistry.ts @@ -34,7 +34,6 @@ export const SECTION_KIND: Record = { keyboard: "app", usage: "app", statistics: "app", - advanced: "server", diagnostics: "machine", about: "app", }; @@ -85,8 +84,8 @@ const ROW_KINDS: { section: SettingsSection; title: string; kind: SettingKind }[ { section: "remote", title: "Gateway address", kind: "machine" }, { section: "machines", title: "Machines", kind: "machine" }, // Advanced's telemetry switches are kept by each server. - { section: "advanced", title: "Provider request bodies", kind: "server" }, - { section: "advanced", title: "Harness messages", kind: "server" }, + { section: "diagnostics", title: "Provider request bodies", kind: "server" }, + { section: "diagnostics", title: "Harness messages", kind: "server" }, ]; const ROW_INDEX = new Map(ROW_KINDS.map((row) => [`${row.section}\u0000${row.title}`, row.kind])); diff --git a/apps/desktop/src/state/updates.ts b/apps/desktop/src/state/updates.ts index 388d80305..346c5f587 100644 --- a/apps/desktop/src/state/updates.ts +++ b/apps/desktop/src/state/updates.ts @@ -116,7 +116,7 @@ interface UpdatesState { skipped: string | null; /** Install a newer release on this channel by itself once no thread is working. */ autoInstall: boolean; - /** Why the last check failed, for Settings › Advanced; null after a good check. */ + /** Why the last check failed, for Settings › About; null after a good check. */ error: string | null; checkedAt: number | null; install: UpdateInstall; @@ -284,7 +284,7 @@ let retryDelay = RETRY_FIRST_MS; let checking: Promise | null = null; -/** Check now: on launch, on the interval, when the app comes back, and from Settings › Advanced. */ +/** Check now: on launch, on the interval, when the app comes back, and from Settings › About. */ export function checkNow(): Promise { // One check at a time: a second caller waits for the one already running. checking ??= runCheck().finally(() => { @@ -721,7 +721,7 @@ export function closeWhatsNew() { useUpdates.setState({ whatsNew: null }); } -/** What's New for the running version on demand (Settings › Advanced). */ +/** What's New for the running version on demand (Settings › About). */ export async function showWhatsNew(version: string) { useUpdates.setState({ whatsNew: { version, notes: null, state: "loading" } }); await loadNotes(version); diff --git a/apps/desktop/src/ui/CommandPalette.tsx b/apps/desktop/src/ui/CommandPalette.tsx index d91903f44..21905ee3d 100644 --- a/apps/desktop/src/ui/CommandPalette.tsx +++ b/apps/desktop/src/ui/CommandPalette.tsx @@ -89,8 +89,7 @@ const SETTINGS: Record = { keyboard: "Keyboard", usage: "Usage", statistics: "Statistics: recorded tokens and reported cost", - advanced: "Advanced: request bodies and setup", - diagnostics: "Diagnostics: server status, logs and debug report", + diagnostics: "Diagnostics: server status, logs, debug report, request bodies and setup", about: "About", }; diff --git a/apps/desktop/src/ui/DiagnosticsPage.tsx b/apps/desktop/src/ui/DiagnosticsPage.tsx index 2d369563b..863fb4977 100644 --- a/apps/desktop/src/ui/DiagnosticsPage.tsx +++ b/apps/desktop/src/ui/DiagnosticsPage.tsx @@ -50,6 +50,7 @@ import { useClock } from "../lib/useNow"; import { engineDetail } from "../state/engine"; import { errorText, request, restartEngine, SERVER_LOG_LINES, toast, useApp } from "../state/store"; import { cx, noTextHelpers, rowInset, Tooltip } from "./primitives"; +import { CaptureAndSetupGroups } from "./SettingsAbout"; import { Action, ErrorDetails, @@ -386,6 +387,7 @@ export function DiagnosticsPage() { + ); } diff --git a/apps/desktop/src/ui/Onboarding.tsx b/apps/desktop/src/ui/Onboarding.tsx index b4fb07d50..66710f750 100644 --- a/apps/desktop/src/ui/Onboarding.tsx +++ b/apps/desktop/src/ui/Onboarding.tsx @@ -1,4 +1,4 @@ -// First-run onboarding (and Settings › Advanced › Set up again): pick the +// First-run onboarding (and Settings › Diagnostics › Run setup): pick the // harnesses to use, sign in with each one's own login, test it, then choose // the default harness, model and effort for new threads. diff --git a/apps/desktop/src/ui/Settings.tsx b/apps/desktop/src/ui/Settings.tsx index ba78cbfcd..95af823bc 100644 --- a/apps/desktop/src/ui/Settings.tsx +++ b/apps/desktop/src/ui/Settings.tsx @@ -84,12 +84,11 @@ import { ShieldCheck, Smartphone, Stethoscope, - TerminalSquare, X, } from "./icons"; import { HEADER_HEIGHT, SidebarCluster } from "./MainHeader"; import { RestartToApply } from "./RestartToApply"; -import { AboutPage, AdvancedPage, STATUS_READ_MS } from "./SettingsAbout"; +import { AboutPage, STATUS_READ_MS } from "./SettingsAbout"; import { AppearancePage } from "./SettingsAppearance"; import { OrchestrationPage } from "./SettingsOrchestration"; import { useLightsInset } from "./Titlebar"; @@ -189,7 +188,6 @@ const NAV: { heading?: string; pages: Page[] }[] = [ { heading: "System", pages: [ - { id: "advanced", label: "Advanced", icon: TerminalSquare }, { id: "diagnostics", label: "Diagnostics", icon: Stethoscope }, { id: "about", label: "About", icon: Info }, ], @@ -1186,7 +1184,6 @@ export function SettingsPage() { {section === "keyboard" && } {section === "usage" && } {section === "statistics" && } - {section === "advanced" && } {section === "diagnostics" && } {section === "about" && } diff --git a/apps/desktop/src/ui/SettingsAbout.tsx b/apps/desktop/src/ui/SettingsAbout.tsx index 5fb3bc302..9bf668986 100644 --- a/apps/desktop/src/ui/SettingsAbout.tsx +++ b/apps/desktop/src/ui/SettingsAbout.tsx @@ -235,7 +235,8 @@ function RecordRequestBodiesGroup() { ); } -export function AdvancedPage() { +/** Diagnostics' last groups: recording request bodies, and running agent setup again. */ +export function CaptureAndSetupGroups() { return ( <> diff --git a/apps/desktop/src/ui/SettingsOrchestration.tsx b/apps/desktop/src/ui/SettingsOrchestration.tsx index 6f50f18c5..e6b516596 100644 --- a/apps/desktop/src/ui/SettingsOrchestration.tsx +++ b/apps/desktop/src/ui/SettingsOrchestration.tsx @@ -211,7 +211,7 @@ function OrchestrationGroup() { {pending && } = { outside: "Outside agents", usage: "Usage", statistics: "Statistics", - advanced: "Advanced", diagnostics: "Diagnostics", about: "About", }; diff --git a/apps/desktop/src/ui/settingsIndex.test.ts b/apps/desktop/src/ui/settingsIndex.test.ts index 037cef180..7ea4d5593 100644 --- a/apps/desktop/src/ui/settingsIndex.test.ts +++ b/apps/desktop/src/ui/settingsIndex.test.ts @@ -68,7 +68,8 @@ describe("settings search", () => { // The Harnesses page kept its old `agents` id and Engine became Advanced; // nothing else moved. expect(settingsSection("harnesses")).toBe("agents"); - expect(settingsSection("engine")).toBe("advanced"); + expect(settingsSection("engine")).toBe("diagnostics"); + expect(settingsSection("advanced")).toBe("diagnostics"); expect(settingsSection("usage")).toBe("usage"); expect(settingsSection("orchestration")).toBe("orchestration"); expect(settingsSection("voice")).toBe("voice"); diff --git a/apps/desktop/src/ui/settingsIndex.ts b/apps/desktop/src/ui/settingsIndex.ts index 3fb7520bb..86b578962 100644 --- a/apps/desktop/src/ui/settingsIndex.ts +++ b/apps/desktop/src/ui/settingsIndex.ts @@ -472,24 +472,23 @@ export const SETTINGS_INDEX: SettingEntry[] = [ keywords: "per thread totals delegates subagents children cost tokens", }, - // ------------------------------------------------------------ Advanced { - section: "advanced", + section: "diagnostics", title: "Record request bodies", keywords: "capture payload telemetry privacy redact clip query_data store request body response", }, { - section: "advanced", + section: "diagnostics", title: "Provider requests (built-in harness)", keywords: "capture payload provider request body response redact privacy built-in", }, { - section: "advanced", + section: "diagnostics", title: "Harness messages", keywords: "capture payload harness acp jsonrpc protocol message redact privacy", }, { - section: "advanced", + section: "diagnostics", title: "Agent setup", keywords: "setup onboarding install sign in harness start over run again", }, diff --git a/docs/data-store.md b/docs/data-store.md index 68757b8c3..754d3ff0b 100644 --- a/docs/data-store.md +++ b/docs/data-store.md @@ -499,7 +499,7 @@ does not turn any of this on. Project configuration cannot enable either key: capturing payloads is a choice about the user's own data, so it is global only, like skill roots. -The app writes both keys from Settings › Advanced › **Record request bodies** +The app writes both keys from Settings › Diagnostics › **Record request bodies** through `_rustcode/config/telemetry` / `_rustcode/config/telemetry/set` (`engine/src/acp/telemetry.rs`), which edits only these two keys and leaves the rest of `config.toml` as it was. The engine reads them from the config it diff --git a/docs/desktop.md b/docs/desktop.md index 00414574d..42c212a20 100644 --- a/docs/desktop.md +++ b/docs/desktop.md @@ -910,7 +910,7 @@ composer's keys stay outside the table. `operational_events` in one Markdown block for a GitHub issue, with tokens, API keys, email addresses and the home folder (`~`) taken out (`src/lib/diagnostics.ts`); *Save…* writes it where the save panel says. -- **Settings › Advanced › Record request bodies.** The two payload-capture +- **Settings › Diagnostics › Record request bodies.** The two payload-capture switches (`docs/data-store.md` › Captured payloads), off by default: *Provider requests (built-in harness)* for the built-in harness's request bodies, *Harness messages* for each ACP or Codex JSON-RPC message. They are @@ -2050,7 +2050,7 @@ a skeleton, and reads either form through `src/lib/releaseNotes.ts`: one badge per category, GitHub's `by @user in ` tail as a compact `#N` link, and the release commit and full-changelog line out of the way. A first install and a dev build skip -it; Settings › Advanced opens it on demand and shows why the last background check failed. `?updatePreview` in the dev browser +it; Settings › About opens it on demand and shows why the last background check failed. `?updatePreview` in the dev browser shows both with sample data. `src-tauri/src/updater.rs` ports the SwiftUI app's `Updater.swift`; Settings › diff --git a/docs/install.md b/docs/install.md index 3de169254..180842793 100644 --- a/docs/install.md +++ b/docs/install.md @@ -107,7 +107,7 @@ RUSTCODE_INSTALL_ARTIFACTS=/tmp/rc/art bash ../../scripts/install.sh --bin-dir / ### Updating the app -- macOS: Settings › Advanced › **Check for Updates**, then **Update to X**. The +- macOS: Settings › About › **Check for Updates**, then **Update to X**. The app downloads the release's app zip, checks it against `SHA256SUMS`, its code signature and bundle id, then quits, swaps `RustCode.app` and reopens. It needs write access to the folder the app is in; otherwise the button diff --git a/scripts/comment-baseline.txt b/scripts/comment-baseline.txt index 3a11d5fef..0f7cf3d02 100644 --- a/scripts/comment-baseline.txt +++ b/scripts/comment-baseline.txt @@ -610,7 +610,7 @@ 1 apps/desktop/src/ui/replyActions.test.ts 9 apps/desktop/src/ui/replyActions.ts 5 apps/desktop/src/ui/settingsIndex.test.ts -26 apps/desktop/src/ui/settingsIndex.ts +25 apps/desktop/src/ui/settingsIndex.ts 32 apps/desktop/src/ui/settingsKit.tsx 21 apps/desktop/src/ui/sidebarDrag.tsx 1 apps/desktop/src/ui/syncRows.test.ts