Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
feat(settings): expose experimental sync in packaged builds
vastsa4a629dfe6be1
diff --git a/apps/desktop/src/lib/settings-search.ts b/apps/desktop/src/lib/settings-search.tsindex b121b1b12..2d4563c45 100644--- a/apps/desktop/src/lib/settings-search.ts+++ b/apps/desktop/src/lib/settings-search.ts@@ -270,11 +270,9 @@ export const SETTINGS_NAV: SettingsNavEntry[] = [labelKey: "settings.nav.sync",titleKey: "settings.configSync.title",group: "system",- // Cloud sync (encrypted portable configuration backup) is not open to- // users yet: packaged builds hide the destination and its search hits,- // development builds keep it. Drop this flag to ship it again.- developmentOnly: true,+ experimentalBadgeKey: "settings.configSync.experimental",keywordKeys: [+ "settings.configSync.experimental","settings.configSync.connectionTitle","settings.configSync.endpoint","settings.configSync.statusTitle",diff --git a/apps/desktop/test/config-sync-settings.test.mjs b/apps/desktop/test/config-sync-settings.test.mjsindex 545964199..1bb508e18 100644--- a/apps/desktop/test/config-sync-settings.test.mjs+++ b/apps/desktop/test/config-sync-settings.test.mjs@@ -30,14 +30,13 @@ const syncError = await read("../src/components/settings/ConfigSyncError.tsx",);-test("cloud sync rendering follows the settings visibility gate", () => {+test("cloud sync is Experimental and available in packaged Settings", () => {assert.match(settingsPage, /tab === "sync" && !tabHidden && <ConfigSyncPage \/>/);assert.match(settingsIndex, /id: "sync"/);- // The cloud backup ships hidden from packaged builds: the destination stays- // a development-build surface until it opens.- assert.match(settingsIndex, /id: "sync"[\s\S]{0,400}developmentOnly: true/);- assert.doesNotMatch(settingsIndex, /experimentalBadgeKey: "settings\.configSync\.experimental"/);+ assert.doesNotMatch(settingsIndex, /id: "sync"[\s\S]{0,400}developmentOnly: true/);+ assert.match(settingsIndex, /experimentalBadgeKey: "settings\.configSync\.experimental"/);assert.match(settingsIndex, /settings\.configSync\.connectionTitle/);+ assert.match(settingsIndex, /"settings\.configSync\.experimental"/);});test("cloud sync keeps credentials and vault operations on the host boundary", () => {diff --git a/apps/desktop/test/settings-developer-only-destinations.test.mjs b/apps/desktop/test/settings-developer-only-destinations.test.mjsindex b81742dd3..3ee4f54d6 100644--- a/apps/desktop/test/settings-developer-only-destinations.test.mjs+++ b/apps/desktop/test/settings-developer-only-destinations.test.mjs@@ -1,9 +1,8 @@/*** Developer-only settings destinations are retained in development builds- * but omitted from packaged builds. Cloud sync is not open to users yet and- * carries the same build gate: development builds keep it, packaged builds- * omit its rail row, page, and settings-search hits. Navigation, search, and- * stale-page handling must all honor the same visibility rules.+ * but omitted from packaged builds. Cloud sync and Remote Hosts are+ * Experimental destinations available in every build. Navigation, search,+ * and stale-page handling must honor the same visibility rules.*/import assert from "node:assert/strict";import { readFileSync } from "node:fs";@@ -74,50 +73,43 @@ test("Live Voice is reachable in every build without developer mode", () => {);});-test("Cloud sync is a development-build-only destination", () => {- // Cloud backup (encrypted portable configuration sync) is not open to users- // yet: development builds keep the destination, packaged builds omit it.+test("Cloud sync is Experimental and available in every build", () => {for (const developerMode of [false, true]) {- assert.ok(visibleSettingsNav(developerMode, true)- .some((entry) => entry.id === "sync"));- assert.equal(isSettingsDestinationHidden("sync", developerMode, true), false);- for (const query of [- "configSync.connectionTitle",- "configSync.endpoint",- "configSync.syncNow",- ]) {- assert.ok(searchSettings(query, identity, {- developerMode,- includeDevelopmentOnly: true,- }).some((hit) => hit.tab === "sync"));+ for (const includeDevelopmentOnly of [false, true]) {+ assert.ok(visibleSettingsNav(developerMode, includeDevelopmentOnly)+ .some((entry) => entry.id === "sync"));+ assert.equal(isSettingsDestinationHidden("sync", developerMode, includeDevelopmentOnly), false);+ for (const query of [+ "configSync.experimental",+ "configSync.connectionTitle",+ "configSync.endpoint",+ "configSync.syncNow",+ ]) {+ assert.ok(searchSettings(query, identity, {+ developerMode,+ includeDevelopmentOnly,+ }).some((hit) => hit.tab === "sync"));+ }}-- assert.equal(visibleSettingsNav(developerMode, false)- .some((entry) => entry.id === "sync"), false);- assert.equal(isSettingsDestinationHidden("sync", developerMode, false), true);- assert.deepEqual(- searchSettings("configSync.connectionTitle", identity, {- developerMode,- includeDevelopmentOnly: false,- }),- [],- );}- // The build gate is the only gate: no developer mode and no badge.const sync = SETTINGS_NAV.find((entry) => entry.id === "sync");assert.equal(sync?.developerOnly, undefined);- assert.equal(sync?.developmentOnly, true);- assert.equal(sync?.experimentalBadgeKey, undefined);+ assert.equal(sync?.developmentOnly, undefined);+ assert.equal(sync?.experimentalBadgeKey, "settings.configSync.experimental");});-test("Remote Hosts is experimental and reachable in every build without developer mode", () => {+test("Remote Hosts is Experimental and available in every build", () => {for (const developerMode of [false, true]) {for (const includeDevelopmentOnly of [false, true]) {- assert.ok(visibleSettingsNav(developerMode, includeDevelopmentOnly).some(entry => entry.id === "remoteHosts"));+ assert.ok(visibleSettingsNav(developerMode, includeDevelopmentOnly)+ .some((entry) => entry.id === "remoteHosts"));assert.equal(isSettingsDestinationHidden("remoteHosts", developerMode, includeDevelopmentOnly), false);}}- assert.equal(SETTINGS_NAV.find(entry => entry.id === "remoteHosts").experimentalBadgeKey, "settings.remoteHosts.experimental");+ assert.equal(+ SETTINGS_NAV.find((entry) => entry.id === "remoteHosts")?.experimentalBadgeKey,+ "settings.remoteHosts.experimental",+ );});test("developer mode retains the developer-only destinations in development", () => {@@ -137,19 +129,21 @@ test("developer mode retains the developer-only destinations in development", ()SETTINGS_NAV.filter((entry) => entry.developerOnly === true).every((entry) => entry.experimentalBadgeKey),);- // Development builds keep the not-yet-open Cloud sync destination.+ // Cloud sync remains available in development builds.assert.equal(off.includes("sync"), true);});-test("packaged builds hide the developer-only destinations and Cloud sync", () => {+test("packaged builds hide developer-only destinations and retain Experimental surfaces", () => {const packaged = visibleSettingsNav(true, false).map((entry) => entry.id);for (const id of developerOnlyIds) {assert.equal(packaged.includes(id), false);assert.equal(isSettingsDestinationHidden(id, true, false), true);}- assert.equal(packaged.includes("sync"), false);- assert.equal(isSettingsDestinationHidden("sync", true, false), true);- assert.equal(isSettingsDestinationHidden("sync", false, false), true);+ for (const id of ["sync", "remoteHosts"]) {+ assert.equal(packaged.includes(id), true);+ assert.equal(isSettingsDestinationHidden(id, true, false), false);+ assert.equal(isSettingsDestinationHidden(id, false, false), false);+ }assert.equal(isSettingsDestinationHidden("general", true, false), false);});@@ -165,9 +159,9 @@ test("settings search mirrors developer and packaged visibility", () => {{ developerMode: false, includeDevelopmentOnly: false },{ developerMode: true, includeDevelopmentOnly: false },]) {- assert.deepEqual(- searchSettings("configSync.connectionTitle", identity, options),- [],+ assert.ok(+ searchSettings("configSync.connectionTitle", identity, options)+ .some((hit) => hit.tab === "sync"),);}diff --git a/docs/spec/03-runtime/01-ipc-protocol.md b/docs/spec/03-runtime/01-ipc-protocol.mdindex 0c1f74832..cf2b46286 100644--- a/docs/spec/03-runtime/01-ipc-protocol.md+++ b/docs/spec/03-runtime/01-ipc-protocol.md@@ -2443,8 +2443,9 @@ unchanged. See [provider configuration](12-provider-config-schema.md).## 15. Cloud configuration syncThe Settings → Cloud sync page uses the following renderer-to-Main channels;-all are forwarded to the Host-owned `configSync.*` RPC methods. The page is a-development-build-only surface. Channel names stay stable; connection inputs+all are forwarded to the Host-owned `configSync.*` RPC methods. The page is+available in all builds and carries an Experimental badge. Channel names stay+stable; connection inputsand results use the S3-only contract in `types/config-sync.ts`:| IPC channel | Host method | contract |diff --git a/docs/spec/03-runtime/22-config-sync.md b/docs/spec/03-runtime/22-config-sync.mdindex b7dc595ec..03c70a39f 100644--- a/docs/spec/03-runtime/22-config-sync.md+++ b/docs/spec/03-runtime/22-config-sync.md@@ -180,9 +180,10 @@ the whole filesystem.## 5. Settings workflow-The destination is a development-build-only surface for now: a packaged build-omits the Settings → Cloud sync row, page, and settings-search hits, while-the Host-owned sync behavior described here is unchanged.+The Settings → Cloud sync destination is available in development and+packaged builds and carries an Experimental badge on its rail row and page+title. Its visibility does not change the Host-owned sync behavior described+here.Settings → Cloud sync provides S3 connection fields, a vault password, devicelabel, `sync` (default) or `backup` mode, automatic-run selection, categories,diff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.mdindex 1f2e730ba..4d0a1d9dd 100644--- a/docs/spec/04-ux/06-settings-ia.md+++ b/docs/spec/04-ux/06-settings-ia.md@@ -54,7 +54,7 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (7. **MCP** — Lucide `Server` (agent connections)8. **Subagents / 子智能体** — Lucide `Bot` (built-in and personal parallel agents)9. **Projects / 项目** — Lucide `Archive` (durable project index)- 10. **Cloud sync / 云同步** — Lucide `CloudDownload` (encrypted portable configuration backup and bidirectional sync; development builds only)+ 10. **Cloud sync / 云同步** — Lucide `CloudDownload` (encrypted portable configuration backup and bidirectional sync; Experimental, all builds)11. **Remote Hosts / 远程主机** — Lucide `Globe` (experimental SSH hosts, sessions, and explicit model copy)12. **Info / 信息** — Lucide `Info` (versions, logs, updates, developer)Icons are decorative (`aria-hidden` via the SVG default) and stay monochrome@@ -64,7 +64,7 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (`Preferences` / `偏好` (General, AI, Shortcuts), `Agent` / `智能体`(Instructions, Models, Skills, MCP, Subagents), `Workspace` / `工作区`(Projects), and `System` / `系统` (Cloud sync, Remote Hosts, Info; Cloud sync- is development-build-only, Remote Hosts is available in all builds). Headings are+ and Remote Hosts are Experimental destinations available in all builds). Headings aremuted, non-interactive labels and use whitespace for separation; no dividerlines are rendered. These are visual landmarks only, not a second navigationlevel.@@ -74,14 +74,11 @@ Settings is a **full-window page** that replaces the app sidebar + main chrome (requirement. Its rail row, page, search hits, and idle Composer entry areavailable to all users.It is the only place to enable Live Voice. See the Voice section below.-- **Cloud sync / 云同步** is not open to users yet: it is a- development-build-only `System` / `系统` destination. Its rail row, page,- and settings-search hits exist in development builds only; a packaged build- omits them, and a rail position left on it falls back to General. Developer- mode is not a gate either way, neither the rail row nor the page title- carries an Experimental badge, and nothing about the sync behavior itself- changes. Removing the destination's `developmentOnly` flag reopens it for- packaged builds.+- **Cloud sync / 云同步** is an Experimental `System` / `系统` destination+ available in development and packaged builds. Its rail row, page, and+ settings-search hits are available in every build, and both the row and page+ title carry `settings.configSync.experimental`. Developer mode does not gate+ it; sync behavior itself is unchanged.- **Remote Hosts / 远程主机** is an Experimental destination in all builds,independent of developer mode. The rail, page and search hits remain available.The row and title carry `settings.remoteHosts.experimental`. After pairing,@@ -875,10 +872,9 @@ system while preserving their different data ownership:sidebar destination or standalone global-search page- Back to app returns to chat shell from the rail's pinned footer action- Developer-only destinations, where declared, join and leave the rail, page,- and search as one unit. Remote Hosts is Experimental but not developer-only,- so toggling developer mode does not hide it or navigate away. Cloud sync is- development-build-only: packaged builds omit its rail row, page and search- hits and fall back to General; developer mode never gates it.+ and search as one unit. Cloud sync and Remote Hosts are Experimental but not+ developer-only, so both remain available in packaged builds and are not+ hidden when developer mode changes.## 4. Acceptance@@ -886,9 +882,8 @@ system while preserving their different data ownership:2. Rail shows the search pill at the top, the back-to-app action pinned at thefoot on the main sidebar's footer icon line, and exactly General / 常规, AI,Shortcuts / 快捷键, Instructions / 指令, Models / 模型, Skills / 技能, MCP,- Subagents / 子智能体, Projects / 项目, Cloud sync / 云同步 (development- builds only), Remote Hosts / 远程主机 (Experimental, all builds), and Info / 信息- in that order. A packaged build leaves Cloud sync out; Voice+ Subagents / 子智能体, Projects / 项目, Cloud sync / 云同步 and Remote Hosts /+ 远程主机 (both Experimental, all builds), and Info / 信息 in that order. Voiceappears between AI and Shortcuts only in development builds with developermode on. The rows are grouped under Preferences / 偏好,Agent / 智能体, Workspace / 工作区, and System / 系统. There is nodiff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex afab3543d..68d9bdf88 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -2966,8 +2966,8 @@ identify the platform validation still needed.15. Archive one project session, open it from Projects, and return to Projects.16. Return to the app shell and open Plugins.- **Expected**: The rail contains exactly General, AI, Shortcuts, Instructions, Models, Skills, MCP, Subagents, Projects, Cloud sync, Remote Hosts, and Info in that order, each with its semantic Lucide icon (Sliders / Sparkles / Keyboard / FileText / Bot / BookOpen / Server / Bot / Archive / CloudDownload / Globe / Info). The flat directory is visually grouped under four muted, non-interactive headings — Preferences / 偏好 for General, AI, and Shortcuts; Agent / 智能体 for Instructions and Models; Workspace / 工作区 for Projects; About / 关于 for Info — with whitespace and no divider lines between groups; searching keeps the destination results flat and hides empty groups together with their headings. Appearance remains in General, while Permissions, Defaults, and the Command shell row live under 全局 AI; an available selected shell is represented by the selector without a duplicate Configured status, while default, fallback, and no-effective-shell states remain explicit; Context management has no settings card; Keyboard shortcuts and global instructions have their own destinations; Developer lives under Info; Projects shows active, closed, and archived durable rows without a visibility toggle, grouping them under the always-visible Pinned / All projects / Archived strips (D168/D267/D455) with per-section counts in a one-column workbench. The destination renders no hero block and no page-level counter run: the intro is one quiet description line, and each group strip's count agrees with its rendered rows; a click selects a row without leaving Settings; sorting by Name reorders rows inside every section without hiding any; search matches project fields and session titles and reports a match count, a session-title result selects its owning project, lists sessions in the inspector by latest activity with relative update times, and reveals history in batches of eight; clearing the search restores the complete index. The inspector menu closes on Escape and on an outside press. Bootstrap completion and background refreshes do not return Settings or Extensions to the chat home; the destination changes only after an explicit navigation action. Restore keeps the archive open and activation returns to chat with the restored project retained in the sidebar. Opening an archived session succeeds before clearing its archived state, returns to chat with that session selected, and makes it visible in the project sidebar; returning to Project archive no longer shows that session as archived. The home sidebar and global page results have no standalone Projects destination; Settings search finds Projects; Plugins remains an independent app-shell destination.- A packaged build omits Cloud sync from the rail and settings search; see- `04-ux/06-settings-ia.md`.+ Cloud sync and Remote Hosts appear in packaged Settings with Experimental+ badges on their navigation rows and page titles; see `04-ux/06-settings-ia.md`.- **Specs linked**: `04-ux/06-settings-ia.md`, `04-ux/01-ui-ia.md`, `03-runtime/11-provider-model-system.md`- **Acceptance**: B (model configuration), F (project persistence)- **Milestone**: M4@@ -9513,9 +9513,10 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.ETags and conditional PUT. No real model provider or running desktop instance.A live S3 run is separately opt-in and requires explicit authorization.- **Steps:**- 1. Confirm Cloud sync remains development-build-only and has no Experimental- badge. Open Settings and confirm only the new S3 setup is offered;- old formats are not detected, migrated or deleted.+ 1. In a packaged build, confirm Cloud sync appears in Settings navigation+ and search with Experimental badges on its row and page title. Open the+ destination and confirm only the new S3 setup is offered; old formats are+ not detected, migrated or deleted.2. Confirm initial setup shows only required connection/password fields andautomatic runs use the shared switch. Expand Advanced to edit region,prefix, addressing, device label and optional token; collapse/reopen it@@ -10008,8 +10009,8 @@ This test plan spec is accepted when:- Expect **full-page** Codex settings (no app sidebar/nav). Left rail has Backto app, search, and exactly General / AI / Shortcuts / Instructions / Models /Skills / MCP / Subagents / Projects, Cloud sync / Remote Hosts / Info in that- order (a packaged build leaves Cloud sync out); content pane shows the- selected destination.+ order; packaged builds show both Cloud sync and Remote Hosts with Experimental+ badges. The content pane shows the selected destination.- Return to the app shell and expect Plugins to remain an independentsidebar-footer destination.- Drag the empty 46px top band over either the rail or content pane; the native@@ -10220,8 +10221,8 @@ This test plan spec is accepted when:- Expect the working theme selector without inert toggle or open-target rows.- Expect Appearance in General and Permissions + Defaults in AI. The railcontains General, AI, Shortcuts, Instructions, Models, Skills, MCP,- Subagents, Projects, Cloud sync (development builds only), and Info; Remote- Hosts appears only in developer mode. Voice may appear between AI and+ Subagents, Projects, Cloud sync and Remote Hosts (both Experimental in all+ builds), and Info. Voice may appear between AI andbuilds with developer mode on; plugin-contributed destinations follow thecore groups. There is no Import destination.- Resize between 800px, 1200px, and 1600px widths; the content cards fill the@@ -16817,9 +16818,10 @@ the latest destination. These assertions measure work counts, not device FPS.- Automated coverage: `pnpm test:e2e:settings-scroll` mounts the productionSettingsPage, store, translations, and built CSS in isolated Electron. Onlypreload data is stubbed; search navigation uses SearchDialog's public store- entry points. It also checks that Cloud sync stays a development-build-only- destination with no developer-mode gate and no Experimental badge, that- Remote hosts keeps its badge, and the fallback to General. This covers+ entry points. The development UI path checks both destinations and their+ Experimental badge surfaces; `settings-developer-only-destinations.test.mjs`+ separately verifies packaged visibility/search and developer-only fallback.+ This coversrenderer interaction, not host persistence or thefull global-search dialog.diff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.mdindex d994f3c91..eec2e9e48 100644--- a/docs/spec/08-meta/decisions-log.md+++ b/docs/spec/08-meta/decisions-log.md@@ -37,17 +37,18 @@ This log freezes previously open questions into concrete decisions.| D640 | User MCP tools keep the normal approval path | **`mcp_<serverId>_<tool>` calls are `medium` risk in host-core: under `ask` and `accept-edits` each call shows the approval card ("MCP server tool requires approval"), allow-once and allow-session keep their usual scope (one call / that exact tool name in that session), `auto` runs without a card, and Plan/Goal still deny. Annotations or risk values the MCP server declares about its own tools are ignored and never lower the path. Dispatch, read-only-mode handling and the `mcp_` namespace are unchanged; no host protocol or persistence change. See ADR `mcp-tool-approval-risk` and E2E-MCP-tool-requires-approval.** | MCP tools were auto-allowed as `low` risk, so a configured server could write files, call networks or run commands without any prompt under `ask`. Configuring a server is consent to launch it, not to every action its opaque tools take. || D641 | Custom endpoint API style precedence | **A custom endpoint uses the saved provider-row `apiStyle` ahead of a model catalog's adapter API. Named and OAuth providers can continue to use a model-level wire API pin where their published configuration requires a different transport. This keeps a user's explicit endpoint choice stable without removing model-specific routing such as OpenCode Go Responses models. No persisted format or protocol change. See E2E-005E and issue #1313.** | A publisher's adapter default must not silently redirect a custom gateway whose user-selected API format is different. || D642 | Cloud sync is a public Experimental destination *(amended by D643)* | **Remove the developer-mode and packaged-build gates from the Settings `sync` destination: its rail row, page, and settings-search hits exist for every user in every build, and a saved `sync` tab no longer falls back to General. Remote Hosts keeps both gates and its own badge. The destination keeps its Experimental badge on the rail row and page title; sync behavior, protocol, host schema, and persisted data are unchanged. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | Encrypted WebDAV backup is the app's only multi-device configuration path, and a developer-mode gate left it undiscoverable for the users who need it. |-| D643 | Cloud sync ships without an Experimental badge *(amended by D649)* | **Amend D642: the Settings `sync` destination drops `experimentalBadgeKey`, and `settings.configSync.experimental` is removed from every bundled locale. Cloud sync stays available to every user in every build. Remote Hosts keeps its own badge and both gates. Sync behavior, protocol, host schema, and persisted data are unchanged. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | Cloud sync is the app's shipped multi-device path, so an Experimental label no longer described it and only made the destination look unfinished. |+| D643 | Cloud sync ships without an Experimental badge *(amended by D649 and D655)* | **Amend D642: the Settings `sync` destination drops `experimentalBadgeKey`, and `settings.configSync.experimental` is removed from every bundled locale. Cloud sync stays available to every user in every build. Remote Hosts keeps its own badge and both gates. Sync behavior, protocol, host schema, and persisted data are unchanged. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | Cloud sync is the app's shipped multi-device path, so an Experimental label no longer described it and only made the destination look unfinished. || D644 | Portable instruction files have no size cap | **Remove the 32 KiB per-file cap Host enforced on portable instruction files. Global and project instruction content is bounded only by the same portable-entity payload bound every other domain already has, checked when a revision is uploaded and when a remote one is validated. UTF-8 validation, symlink rejection, scope selection, mapping, and approval rules are unchanged. See `03-runtime/22-config-sync.md` §2.** | A 33 KiB project `AGENTS.md` failed the entire capture with `CONFIG_SYNC_LIMIT_EXCEEDED: instruction file is too large`, which the Settings page could only show as a generic backup-size error. || D450 | Signed macOS GitHub Releases | **Amend D078 / ADR 0022: GitHub tag releases Developer ID-sign, notarize (`notarytool` via electron-builder 26), staple, and Gatekeeper-verify macOS DMG/ZIP before upload, using identity `Developer ID Application: XingYu Liu (DUV63RKYTW)` / team `DUV63RKYTW` from Actions secrets (`CSC_LINK`, `CSC_KEY_PASSWORD`, `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD`, `APPLE_TEAM_ID`). Missing secrets fail the job. Local unsigned packaging without a certificate remains. `workflow_dispatch` may set `sign_macos: false` only for unsigned debug artifacts. Packaged macOS uses in-app `electron-updater` (ZIP + merged `latest-mac.yml`); Linux deb/rpm and Windows portable ZIP stay notify-and-link. No afterPack/afterSign adhoc codesign (ADR 0278).** | Production DMGs must open without a Gatekeeper warning, and signed macOS installs can download and restart into a new tag. See ADR 0289, E2E-196c, E2E-067A. || D648 | Skill Market pins an acceptable address for mixed direct DNS answers | **Amend ADR 0272: on a direct route, when DNS includes both rejected and acceptable answers, Skill Market selects and pins one acceptable address instead of letting Chromium choose among them. Third-party content prefers a public answer; the benchmark fake-IP is eligible only under the existing opt-in. ULA-only and other non-public-only answers remain blocked. Proxied and unreadable routes keep the existing policy. See ADR 0321 and E2E-SKILL-MARKET-NET-BOUNDARY.** | Dual-stack and transparent-proxy DNS can include an unused synthetic ULA answer beside an address the request can safely use; pinning prevents the rejected address from being dialed while avoiding the false refusal. |-| D649 | Cloud backup stays closed to users | **Amend D642 / D643: the Settings `sync` destination carries `developmentOnly: true` again, so a packaged build omits its rail row, page, and settings-search hits and falls back to General, while development builds keep it. Developer mode stays irrelevant to the destination and it still carries no Experimental badge. Sync behavior, protocol, host schema, and persisted data are unchanged; dropping the flag reopens it for packaged builds. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | The encrypted WebDAV backup is not ready to be offered to packaged-build users yet, so it stays implemented but out of the way until it opens. |+| D649 | Cloud backup stays closed to users *(amended by D655)* | **Amend D642 / D643: the Settings `sync` destination carries `developmentOnly: true` again, so a packaged build omits its rail row, page, and settings-search hits and falls back to General, while development builds keep it. Developer mode stays irrelevant to the destination and it still carries no Experimental badge. Sync behavior, protocol, host schema, and persisted data are unchanged; dropping the flag reopens it for packaged builds. See `04-ux/06-settings-ia.md` and E2E-CONFIG-SYNC-webdav-portable-configuration.** | The encrypted WebDAV backup is not ready to be offered to packaged-build users yet, so it stays implemented but out of the way until it opens. || D650 | Plugin providers appear in Add Service | **Amend ADR 0259: optional `category` groups manifest-owned provider rows; optional localized `description` supplies one-sentence hover/focus copy. Loaded plugins with `provider.register` contribute unconfigured API-key providers with endpoints. Tiles display provider names only; the Host saves keys through the existing provider secret path. There is no per-plugin provider-count cap. An empty model list is allowed only for an API-key provider with a base URL; after explicit key save, Host discovery populates its cached model choices. Configured rows remain in the provider list and leave the chooser. OAuth / no-auth rows are omitted; no new permission, runtime plugin API, provider row, or credential migration is added. See ADR 0322, `07-plugins/02-plugin-manifest-schema.md`, and E2E-PLUGIN-provider-catalog-add-service.** | Users could not discover manifest-owned community providers in the normal Add Service flow, and each plugin needed to group its own sites without owning credential UI. || D651 | Transcript tool rows never auto-open | **Amend the leaf auto-open provision of the turn-process / thinking-display decisions and ADR `turn-process-and-thinking-display`: a tool-call, hosted-search or plan row keeps its payload collapsed in both display modes and only an explicit user action opens it, including the literal final item of the last activity group. Whole-process and ordinary-group defaults, failed/denied behavior, retained per-item choices, and the thinking row's own leaf default are unchanged. Renderer-only; no host protocol, persistence, permission or plugin contract change. See `04-ux/08-component-spec.md` §9.1/§9.2/§9.5/§9.6, `04-ux/09-interaction-patterns.md` §4.2, and E2E-040.** | A payload that opened itself under the newest call pulled attention away from the answer the user was waiting for and made one turn look different depending on how it ended; leaving every payload to the user keeps one predictable row. || D652 | Make session title generation a standalone plugin *(amended by D654)* | **Supersede ADR 0186: remove the built-in title completion and keep only the deterministic local fallback restored by D654; new sessions otherwise keep their localized default title until a user or plugin changes it. Add the high-risk `session.autoTitle` capability for bounded first-turn context and compare-and-set title updates, backed by schema v23 `sessions.title_source`; manual rename marks `manual`, plugin output marks `generated`. The standalone plugin configures its prompt template, model, and thinking level through its panel and uses `session:turnEnded`, `models.list`, and `agent.complete`. See ADR 0323, E2E-021a, and the plugin API/permission specs.** | Title generation is optional product policy with model and prompt settings, and the host needs a narrow durable boundary that makes manual titles win races. || D653 | Make Composer prompt enhancement an optional plugin | **Supersede ADR 0121: remove host-owned prompt-enhancement UI, settings, direct completion IPC, and MCP action. Add the permission-gated `composer.transform` contribution and plugin callback, passing only the current draft plus an optional model key, with bounded input/output, audit, file-reference restoration, one-step undo, and stale session/draft guards. Keep `vastsa/pi-prompt-enhancement` in its own repository and require explicit user installation; do not bundle or enable it by default. On first plugin load, copy valid legacy preferences into unset plugin settings and write a private migration marker; preserve old host values for rollback. See ADR 0324, E2E-218 / E2E-259, and the plugin API/permission specs.** | Prompt enhancement is optional behavior that belongs to a separately installed plugin, while the host needs a narrow safe transform contract and a one-time path for existing settings. || D654 | Keep the deterministic first-prompt session title in the core | **Amend D652 / ADR 0323: a session whose stored title is still a recognized placeholder derives a whitespace-collapsed 48-character fallback from the first prompt, written through the host RPC and IPC `session/deriveTitle`. Host-core applies it only while the title is still a placeholder with the `default` source, and the derived text keeps that source, so an installed title plugin may still replace it and only a manual rename opts out. No model call, no new permission, no schema or protocol version change; `updated_at`, transcript content, and message count stay unchanged. See `03-runtime/01-ipc-protocol.md`, `03-runtime/02-agent-runtime.md`, `03-runtime/06-host-rpc-protocol.md`, `03-runtime/04-data-storage.md`, `04-ux/08-component-spec.md`, and E2E-021a.** | Removing every automatic write left an untouched session showing a placeholder until a plugin ran, so offline readability depended on installing optional software. |+| D655 | Cloud sync opens in packaged builds as Experimental | **Amend D649: remove the packaged-build visibility gate from Settings `sync` and restore its `Experimental` badge on the rail row and page title. Cloud sync and Remote Hosts are both available in packaged and development builds with Experimental badges. The S3 sync behavior, protocol, Host schema, and persisted data are unchanged. See `04-ux/06-settings-ia.md`, `03-runtime/22-config-sync.md`, and E2E-CONFIG-SYNC-s3-portable-configuration.** | The existing encrypted backup is useful to packaged-build users; the Experimental badge communicates its current maturity without keeping the feature hidden. |## B. Secondary implementation defaults@@ -7601,3 +7602,16 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.- Covered by `apps/desktop/test/session-title-prompt-fallback.test.mjs`,`apps/desktop/test/queue-pending-actions.test.mjs`, the host-core`derive_session_title` tests, and E2E-021a. See ADR 0323.++## 2026-10-21 — Cloud sync opens in packaged builds as Experimental (D655)++- D655 amends D649: Settings → Cloud sync is available in packaged and+ development builds, with the Experimental badge on its navigation row and+ page title. Settings search includes the destination in both build types.+- Remote Hosts remains available in all builds and keeps its existing+ Experimental badges. Cloud sync behavior, protocol, Host schema, and+ persisted data are unchanged.+- Covered by `settings-developer-only-destinations.test.mjs`,+ `config-sync-settings.test.mjs`, and the packaged Settings acceptance+ scenario in E2E-CONFIG-SYNC-s3-portable-configuration. See+ `04-ux/06-settings-ia.md` and `03-runtime/22-config-sync.md`.diff --git a/docs/zh-CN/spec/03-runtime/01-ipc-protocol.md b/docs/zh-CN/spec/03-runtime/01-ipc-protocol.mdindex cb29c6569..05c0dd23c 100644--- a/docs/zh-CN/spec/03-runtime/01-ipc-protocol.md+++ b/docs/zh-CN/spec/03-runtime/01-ipc-protocol.md@@ -1871,8 +1871,9 @@ unchanged. See [provider configuration](12-provider-config-schema.md).## 15. 云配置同步-The development-build-only page keeps its channel names. Inputs and results-use the S3-only contract in `types/config-sync.ts` and the current source spec.+The page is available in all builds and carries an Experimental badge. Channel+names stay stable. Inputs and results use the S3-only contract in+`types/config-sync.ts` and the current source spec.| IPC 通道 | Host 方法 | 契约 ||---|---|---|diff --git a/docs/zh-CN/spec/03-runtime/22-config-sync.md b/docs/zh-CN/spec/03-runtime/22-config-sync.mdindex c8c22b3ea..d04d5bff7 100644--- a/docs/zh-CN/spec/03-runtime/22-config-sync.md+++ b/docs/zh-CN/spec/03-runtime/22-config-sync.md@@ -86,7 +86,7 @@ atomic replacement and import journaling are not a filesystem-wide transaction.## 5. 设置工作流-该目的地当前仅在开发构建可见:打包构建会省略「设置 → 云同步」的导轨行、页面与设置搜索命中,而本文描述的 Host 行为不变。+「设置 → 云同步」在开发版和打包版中均可用,导轨行与页面标题带有实验性徽章。开放该入口不改变本文描述的 Host 同步行为。Settings exposes S3 fields, vault password, device label, modes, automatic runs,categories, probing, manual run, pause, unlock, approvals, mappings, history,diff --git a/docs/zh-CN/spec/03-runtime/live-voice.md b/docs/zh-CN/spec/03-runtime/live-voice.mdindex b304e273a..7848cb096 100644--- a/docs/zh-CN/spec/03-runtime/live-voice.md+++ b/docs/zh-CN/spec/03-runtime/live-voice.md@@ -38,7 +38,7 @@ PCM 采集使用 AudioWorklet,依据实际 `AudioContext.sampleRate` 进行有## 设置与兼容性-Voice 在开发构建和打包构建中均向普通用户开放,不再要求开发者模式。实验标记用于提示可用性限制,不是访问门槛。实时语音仍默认关闭,开启设置不会开始采集麦克风。需要配置或恢复账号时,Composer 提供“打开设置”操作。云同步和 Remote Hosts 保留各自的开发构建限制。+Voice 在开发构建和打包构建中均向普通用户开放,不再要求开发者模式。实验标记用于提示可用性限制,不是访问门槛。实时语音仍默认关闭,开启设置不会开始采集麦克风。需要配置或恢复账号时,Composer 提供“打开设置”操作。云同步和远程主机在开发版与打包版中均可用,且均标注为实验性功能。账号列表明确区分加载中、可重试的加载失败和无兼容账号。加载失败不会清除已保存的绑定。设置页提供现有模型配置入口,用于登录和管理账号。通话错误区分缺少认证、账号访问被拒、协议不支持、网络/限流及麦克风故障,不显示服务响应内容或凭证。通话条会在本地化文案旁同时显示对应的 `LIVE_*` 错误码本身,因此没有专属文案的失败也能从截图或工单中定位;该错误码背后的原始原因不进入任何视图,只写入脱敏后的 `provider` 日志。通话条本身是该应用的一个独立、无边框、始终置顶的桌面窗口,不拥有通话:它的每次按键都转发给持有麦克风、媒体和按通话隔离工作的主窗口,且只显示主窗口推送的权威状态与错误码。diff --git a/docs/zh-CN/spec/04-ux/06-settings-ia.md b/docs/zh-CN/spec/04-ux/06-settings-ia.mdindex ffb482db3..847f54ded 100644--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md@@ -34,25 +34,23 @@7. **MCP** — Lucide `Server`(智能体连接)8. **子智能体** — Lucide `Bot`(内置与自建的并行工作智能体)9. **项目** — Lucide `Archive`(持久项目索引)- 10. **云同步** — Lucide `CloudDownload`(加密的可移植配置备份与双向同步;仅开发构建可见)- 11. **远程主机** — Lucide `Globe`(SSH 引导与配对清单;仅开发者模式)+ 10. **云同步** — Lucide `CloudDownload`(加密的可移植配置备份与双向同步;实验性,所有构建可见)+ 11. **远程主机** — Lucide `Globe`(SSH 引导与配对清单;实验性,所有构建可见)12. **信息** — Lucide `Info`(版本、日志、更新、开发人员)图标具有装饰性(通过 SVG 默认设置为 `aria-hidden`)并保持单色带有导轨标签;不要在此处重复使用 refresh/rotate 字形。- 目录仍是保持相同顺序的可搜索扁平列表。为便于扫描,目的地分为四个带标题的视觉分组:“偏好”(常规、AI、快捷键)、“智能体”(指令、模型、技能、MCP、子智能体)、“工作区”(项目)和“系统”(云同步、远程主机、信息;- 云同步仅开发构建可见、远程主机仅开发者模式可见)。标题使用柔和+ 云同步和远程主机均为所有构建可见的实验性目的地)。标题使用柔和的非交互文字,分组之间只使用留白,不绘制分割线;搜索过滤后,空分组及其标题一并隐藏。-- **云同步**暂不对用户开放,是仅开发构建可见的「系统」目的地:其导轨行、页面和设置- 搜索命中只在开发构建中存在;打包构建会省略它们,停在它的导轨位置会回落到常规。- 开发者模式不是它的门控,导轨行与页面标题都不带实验性徽章,同步行为本身没有任何- 变化。移除该目的地的 `developmentOnly` 标记即可对打包构建重新开放。-- **远程主机**是仅开发者可用的实验性目的地:其导轨行、页面和设置搜索命中仅在- `AppSettings.developerMode` 为 `true` 时存在。开发者模式关闭时该行是缺失而不是- 禁用,设置搜索不会返回它的命中,导轨位置停在该项时会回落到常规。该行和页面标题- 都带有实验性徽章(`settings.remoteHosts.experimental`)+- **云同步**是所有构建均可用的实验性「系统」目的地:导轨行、页面和设置搜索命中+ 在开发版与打包版中都存在,导轨行和页面标题均带有实验性徽章+ (`settings.configSync.experimental`)。开发者模式不影响可见性,同步行为本身不变。+- **远程主机**是所有构建均可用的实验性目的地:导轨行、页面和设置搜索命中在开发版与+ 打包版中都存在,且不受 `AppSettings.developerMode` 影响。该行和页面标题均带有+ 实验性徽章(`settings.remoteHosts.experimental`)。- 不显示其他设置目的地或占位符导航行- 主表面上的主要内容窗格,带有大部分标题+升高圆形的行卡。其内容使用后可用的完整宽度@@ -374,18 +372,17 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历- 项目档案由设置搜索索引,不会复制为主页侧边栏目标或独立的全局搜索页面- 返回应用程序从导轨固定的底部操作返回聊天外壳-- 仅开发者可用的目的地作为一个整体加入导轨、页面和设置搜索,也同样一起离开:- 开发者模式关闭时导轨省略该行,设置搜索不返回它的命中,打开的远程主机页面会- 返回到常规;云同步当前仅开发构建可见,打包构建省略它的导轨行、页面和设置搜索- 命中并回落到常规,开发者模式从不门控它。+- 仅开发者可用的目的地作为一个整体加入或离开导轨、页面和设置搜索。+ 云同步和远程主机不受开发者模式限制,在所有构建中均可用,并在导轨行与页面标题+ 显示实验性徽章。## 4. 验收1.打开设置隐藏编码应用侧边栏(全页接管)2. 导轨顶部显示搜索药丸,底部固定返回应用程序操作并与主侧边栏底部图标行同一条线,并精确显示常规、AI、快捷键、指令、模型、技能、MCP、- 子智能体、项目、云同步(仅开发构建)、远程主机(仅开发者模式)和信息,- 按此顺序排列;打包构建不显示云同步,并按偏好、智能体、工作区、系统分组。+ 子智能体、项目、云同步、远程主机和信息,按此顺序排列;云同步与远程主机+ 均在打包版中显示实验性标签,并按偏好、智能体、工作区、系统分组。没有用量设置目的地。3.外观是常规的一部分,没有独立的导轨目的地4. Providers 是 Agent 的一部分,没有独立的导轨目的地diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex 4a4fc8f42..b15e2e44c 100644--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md@@ -5978,7 +5978,7 @@ eleven-tool-round desktop paths are verified by- 打开设置(页脚配置文件 → 设置)。- 预计**全页**设置(无应用程序 sidebar/nav)。左导轨有返回应用、搜索,以及常规、AI、快捷键、指令、模型、技能、MCP、子智能体、项目、云同步、远程主机、信息,- 按该顺序排列(打包构建不显示云同步);内容窗格显示所选设置页或+ 按该顺序排列(云同步和远程主机在打包版均显示实验性标签);内容窗格显示所选设置页或项目存档。- 返回应用程序外壳并期望插件保持独立侧边栏页脚目的地。@@ -6163,7 +6163,7 @@ eleven-tool-round desktop paths are verified by- 在约 1200×690 的窗口中打开浅色主题的“设置 → 常规”。- 侧栏宽度约 275 像素,背景为 `#f4f4f4`,常规项为唯一选中项,并显示返回和搜索。- 主题选择器可正常使用,且没有无效开关或打开目标行。-- “常规”页显示外观卡片,“AI”页显示权限和默认值卡片。核心侧栏依次包含常规、AI、快捷键、指令、模型、技能、MCP、子智能体、项目、云同步(仅开发构建)和信息;仅开发者模式显示远程主机。开发版且开启开发者模式时,AI 与快捷键之间可能显示语音;插件扩展目的地位于核心分组之后。侧栏不再有“导入”入口。+- “常规”页显示外观卡片,“AI”页显示权限和默认值卡片。核心侧栏依次包含常规、AI、快捷键、指令、模型、技能、MCP、子智能体、项目、云同步、远程主机和信息;云同步与远程主机在所有构建中都显示实验性标签。开发版且开启开发者模式时,AI 与快捷键之间可能显示语音;插件扩展目的地位于核心分组之后。侧栏不再有“导入”入口。- 在 800、1200 和 1600 像素宽度之间调整窗口;内容卡片填充每种尺寸都可用右窗格,无需更换导轨或引入水平滚动。@@ -9259,8 +9259,9 @@ Follow the [current S3 acceptance scenario](/spec/06-delivery/04-e2e-test-plan#e- 自动化覆盖:`pnpm test:e2e:settings-scroll` 在隔离 Electron 中挂载真实的SettingsPage、store、翻译和构建后的 CSS,探针运行的是开发构建。仅 preload数据使用 fixture;搜索导航调用 SearchDialog 使用的公开 store 入口。该测试还- 检查云同步仍是仅开发构建可见的目的地(无开发者模式门控、无实验性徽章),远程- 主机保留其徽章,以及回落到常规。该测试覆盖渲染层交互,不覆盖 host 持久化或+ 检查开发版中云同步与远程主机的实验性标签;`settings-developer-only-destinations.test.mjs`+ 另行验证打包版可见性、搜索结果及仅开发者目的地的回落行为。该测试覆盖渲染层交互,+ 不覆盖 host 持久化或完整全局搜索弹窗。### E2E-SCHEDULED-dispatchdiff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.mdindex 825f25e9c..02891e3d1 100644--- a/docs/zh-CN/spec/08-meta/decisions-log.md+++ b/docs/zh-CN/spec/08-meta/decisions-log.md@@ -40,16 +40,17 @@| D640 | 用户 MCP 工具保持常规审批路径 | **host-core 将 `mcp_<serverId>_<tool>` 调用视为 `medium` 风险:在 `ask` 与 `accept-edits` 下每次调用都显示审批卡片("MCP server tool requires approval"),允许一次与本会话允许保持原有范围(单次调用 / 该会话内同一工具名),`auto` 不显示卡片直接执行,Plan/Goal 仍然拒绝。MCP 服务器对自身工具声明的标注或风险值被忽略,绝不降低审批路径。分发、只读模式处理与 `mcp_` 命名空间不变;不改主机协议或持久化。见 ADR `mcp-tool-approval-risk` 与 E2E-MCP-tool-requires-approval。** | MCP 工具此前按 `low` 风险自动放行,已配置的服务器在 `ask` 下可以不经提示写文件、访问网络或执行命令。配置服务器意味着同意启动它,而不是同意其不透明工具的每一个操作。 || D641 | 自定义端点 API 格式优先级 | **自定义端点始终优先使用 provider 行上保存的 `apiStyle`,再考虑模型目录适配器 API。对于具名与 OAuth provider,如果已发布配置要求不同传输,仍可沿用模型级 wire API 固定项。这可确保用户为自定义 endpoint 选择的格式不会被静默覆盖,同时保留 OpenCode Go Responses 模型等特定路由。不改变持久化格式或协议。见 E2E-005E 与 issue #1313。** | 发布方的适配器默认值不应把请求从用户已选择的自定义网关格式静默重定向。 || D642 | 云同步是对所有用户开放的实验性目的地 *(由 D643 修订)* | **移除设置中 `sync` 目的地的开发者模式与打包构建门控:其导轨行、页面和设置搜索命中在任何构建中对所有用户存在,已保存的 `sync` 标签页也不再回落到常规。远程主机保留这两道门控和它自己的徽章。该目的地继续在导轨行与页面标题上保留实验性徽章;同步行为、协议、Host schema 与持久化数据均不变。见 `04-ux/06-settings-ia.md` 与 E2E-CONFIG-SYNC-webdav-portable-configuration。** | 加密 WebDAV 备份是应用唯一的多设备配置路径,而开发者模式门控让需要它的用户无法发现该功能。 |-| D643 | 云同步不再带实验性徽章 *(由 D649 修订)* | **修订 D642:设置中的 `sync` 目的地不再有 `experimentalBadgeKey`,各内置语言包中的 `settings.configSync.experimental` 键也已删除。云同步在任何构建中对所有用户保持可用。远程主机保留自己的徽章和两道门控。同步行为、协议、Host schema 与持久化数据均不变。见 `04-ux/06-settings-ia.md` 与 E2E-CONFIG-SYNC-webdav-portable-configuration。** | 云同步是应用已发布的多设备路径,实验性标签已不再描述它,只会让该目的地看起来尚未完成。 |+| D643 | 云同步不再带实验性徽章 *(由 D649 与 D655 修订)* | **修订 D642:设置中的 `sync` 目的地不再有 `experimentalBadgeKey`,各内置语言包中的 `settings.configSync.experimental` 键也已删除。云同步在任何构建中对所有用户保持可用。远程主机保留自己的徽章和两道门控。同步行为、协议、Host schema 与持久化数据均不变。见 `04-ux/06-settings-ia.md` 与 E2E-CONFIG-SYNC-webdav-portable-configuration。** | 云同步是应用已发布的多设备路径,实验性标签已不再描述它,只会让该目的地看起来尚未完成。 || D644 | 便携指令文件没有体积上限 | **移除 Host 对便携指令文件施加的 32 KiB 单文件上限。全局与项目指令内容只受其他域同样拥有的便携实体负载上限约束,并在上传修订与校验远端修订时检查。UTF-8 校验、symlink 拒绝、作用域选择、映射与审批规则均不变。见 `03-runtime/22-config-sync.md` §2。** | 一个 33 KiB 的项目 `AGENTS.md` 会让整次采集以 `CONFIG_SYNC_LIMIT_EXCEEDED: instruction file is too large` 失败,而设置页只能把它显示为泛化的备份体积错误。 || D450 | 签名的 macOS GitHub Release | **修订 D078 / ADR 0022:GitHub tag 发布使用身份 `Developer ID Application: XingYu Liu (DUV63RKYTW)` / 团队 `DUV63RKYTW`,通过 Actions 密钥(`CSC_LINK`、`CSC_KEY_PASSWORD`、`APPLE_ID`、`APPLE_APP_SPECIFIC_PASSWORD`、`APPLE_TEAM_ID`)对 macOS DMG/ZIP 做 Developer ID 签名、`notarytool` 公证、装订和 Gatekeeper 校验;缺少密钥则失败。无证书的本地未签名打包仍可用。`workflow_dispatch` 仅可把 `sign_macos: false` 用于未签名调试产物。打包的 macOS 走应用内 `electron-updater`(ZIP + 合并后的 `latest-mac.yml`);Linux deb/rpm 与 Windows 便携版 ZIP 仍为通知并打开发布页。禁止 afterPack/afterSign adhoc 签名(ADR 0278)。** | 正式 DMG 应无需 Gatekeeper 警告即可打开,已签名 macOS 安装可下载并重启到新 tag。见 ADR 0289、E2E-196c、E2E-067A。 || D648 | 混合直接 DNS 结果时固定使用可接受地址 | **修订 ADR 0272:在直连路由上,当 DNS 同时包含被拒绝与可接受的结果时,技能市场会选择并固定到一个可接受地址,而不会让 Chromium 在这些地址中自行选择。第三方内容优先使用公网地址;仅在现有策略允许时使用 `benchmark` 假 IP。仅返回 ULA 或其他非公网地址时仍会拦截。代理与无法读取的路由保持现有策略。见 ADR 0321 与 E2E-SKILL-MARKET-NET-BOUNDARY。** | 双栈与透明代理 DNS 可能在可安全使用的地址旁返回未使用的合成 ULA 地址;固定已通过校验的地址可避免连接到被拒绝结果并消除误拦截。 |-| D649 | 云备份暂不对外开放 | **修订 D642 / D643:设置中的 `sync` 目的地重新带上 `developmentOnly: true`,因此打包构建会省略其导轨行、页面和设置搜索命中并回落到常规,开发构建则保留该目的地。开发者模式与它无关,它仍不带实验性徽章。同步行为、协议、Host schema 与持久化数据均不变;移除该标记即可对打包构建重新开放。见 `04-ux/06-settings-ia.md` 与 E2E-CONFIG-SYNC-webdav-portable-configuration。** | 加密 WebDAV 备份尚未准备好提供给打包构建用户,因此先保持已实现但不出现在界面上,直到正式开放。 |+| D649 | 云备份暂不对外开放 *(由 D655 修订)* | **修订 D642 / D643:设置中的 `sync` 目的地重新带上 `developmentOnly: true`,因此打包构建会省略其导轨行、页面和设置搜索命中并回落到常规,开发构建则保留该目的地。开发者模式与它无关,它仍不带实验性徽章。同步行为、协议、Host schema 与持久化数据均不变;移除该标记即可对打包构建重新开放。见 `04-ux/06-settings-ia.md` 与 E2E-CONFIG-SYNC-webdav-portable-configuration。** | 加密 WebDAV 备份尚未准备好提供给打包构建用户,因此先保持已实现但不出现在界面上,直到正式开放。 || D650 | 插件提供商出现在添加服务中 | **修订 ADR 0259:`contributes.providers[].category` 是可选分类;`description` 可提供一句简介。已加载且拥有现有 `provider.register` 权限的插件,可向 Host 渲染的添加服务选择器贡献带端点、尚未配置的 API Key 提供商。卡片只显示站名,悬停或键盘聚焦显示一句简介;分类可自定义。每个插件不设服务数量上限。空模型列表仅适用于带端点的 API Key 提供商,用户保存密钥后由 Host 发现并缓存模型。密钥仍通过现有提供商密钥路径保存,已配置的行从选择器隐藏。不提供 OAuth / 无认证行;不新增权限、运行时 API、提供商行或凭据迁移。见 ADR 0322、`07-plugins/02-plugin-manifest-schema.md` 与 E2E-PLUGIN-provider-catalog-add-service。** | 用户无法在常规添加服务流程中发现由清单声明的社区提供商;每个插件也需要自己分组站点,却不应拥有密钥界面。 || D651 | 对话区工具调用行不再自动展开 | **修订 turn-process / thinking-display 决策中的叶子自动展开条款与 ADR `turn-process-and-thinking-display`:工具调用、托管搜索与计划卡片行在两种显示模式下都保持载荷收起,只有用户显式操作才会打开,包括最后一个活动组的字面最后一项。整体过程与普通活动组的默认展开、失败与被拒行为、逐项保留的用户选择,以及思考行自身的叶子默认都保持不变。仅渲染层改动;无 Host 协议、持久化、权限或插件契约变更。见 `04-ux/08-component-spec.md` §9.1/§9.2/§9.5/§9.6、`04-ux/09-interaction-patterns.md` §4.2 与 E2E-040。** | 自动展开最新调用的载荷会把阅读注意力从用户等待的回答上拽走,也让同一轮对话因结束方式不同而呈现不同样子;把载荷交给用户打开可保持行行为可预测。 || D652 | 会话标题生成改为独立插件 *(由 D654 修订)* | **取代 ADR 0186:移除内置标题补全,只保留 D654 恢复的确定性本地兜底标题;否则新会话在用户或插件修改前保留本地化默认标题。新增高风险 `session.autoTitle` 能力,用于读取有界首轮上下文并通过比较并设置写入标题,数据由架构 v23 的 `sessions.title_source` 支撑。独立插件可在面板配置提示词模板、模型和思考级别,并使用 `session:turnEnded`、`models.list` 和 `agent.complete`。见 ADR 0323、E2E-021a 及插件 API/权限规格。** | 标题生成是可选产品策略,且支持模型与提示词配置;宿主需要狭窄、持久的边界来保证手动标题在竞态中胜出。 || D653 | 输入框提示词增强改为可选插件 | **取代 ADR 0121:移除宿主内置提示词增强界面、设置、直接补全 IPC 与 MCP 操作。新增受 `composer.transform` 权限约束的输入框操作贡献项和插件回调;仅传当前草稿与可选模型标识,并提供输入/输出上限、审计、文件引用恢复、单步撤销及草稿/会话过期保护。`vastsa/pi-prompt-enhancement` 保持独立仓库,必须由用户主动安装;宿主不随附或默认启用。插件首次加载时,将有效旧偏好迁移到尚未设置的插件设置并写入私有标记;旧宿主值继续保留以支持回退。见 ADR 0324、E2E-218 / E2E-259 与插件 API/权限规格。** | 提示词增强是可选行为,应由单独安装的插件拥有;宿主提供狭窄、安全的转换契约及一次性旧设置迁移路径。 || D654 | 核心保留确定性的首条提示标题 | **修订 D652 / ADR 0323:当会话存储标题仍是可识别占位标题时,用首条提示派生一个折叠空白、截断为 48 字符的兜底标题,通过主机 RPC 与 IPC `session/deriveTitle` 写入。host-core 只在标题仍是占位标题且来源为 `default` 时接受,派生文本也保留该来源,因此已安装的标题插件仍可替换它,只有手动重命名会退出自动替换。不调用模型、不新增权限、不改架构或协议版本;`updated_at`、转录内容与消息数都不变。见 `03-runtime/01-ipc-protocol.md`、`03-runtime/02-agent-runtime.md`、`03-runtime/06-host-rpc-protocol.md`、`03-runtime/04-data-storage.md`、`04-ux/08-component-spec.md` 与 E2E-021a。** | 移除全部自动写入会让未触碰的会话一直显示占位标题,直到插件运行,从而让离线可读性依赖安装可选软件。 |+| D655 | 云同步在打包版开放并标记为实验性 | **修订 D649:移除设置中 `sync` 目的地的打包构建门控,并在导轨行与页面标题恢复实验性徽章。云同步和远程主机在开发版与打包版中均可使用,并带有实验性标签。S3 同步行为、协议、Host schema 与持久化数据不变。见 `04-ux/06-settings-ia.md`、`03-runtime/22-config-sync.md` 与 E2E-CONFIG-SYNC-s3-portable-configuration。** | 已实现的加密云备份对打包版用户同样有用;实验性标签可以说明其成熟度,而无需继续隐藏功能。 |## B. 辅助实现默认值@@ -5358,3 +5359,13 @@ Markdown 源码,不是 `text/html` 负载;对禁用行内 HTML 的外部编- 由 `apps/desktop/test/session-title-prompt-fallback.test.mjs`、`apps/desktop/test/queue-pending-actions.test.mjs`、host-core 的 `derive_session_title`单测与 E2E-021a 覆盖。见 ADR 0323。++## 2026-10-21 —— 云同步在打包版开放并标记为实验性(D655)++- D655 修订 D649:设置 → 云同步在打包版和开发版中均可见,导轨行与页面标题均显示+ 实验性徽章;设置搜索在两种构建中都包含该目的地。+- 远程主机在所有构建中保持可用,并保留现有实验性徽章。云同步行为、协议、Host schema+ 与持久化数据均不变。+- 由 `settings-developer-only-destinations.test.mjs`、`config-sync-settings.test.mjs` 和+ E2E-CONFIG-SYNC-s3-portable-configuration 中的打包版设置验收场景覆盖。见+ `04-ux/06-settings-ia.md` 与 `03-runtime/22-config-sync.md`。diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex 378496249..72404b43a 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -803,6 +803,7 @@ sklm: {},"configSync": {title: "Cloud sync",+ experimental: "Experimentell",connectionTitle: "Verbindungseinstellungen",connectionDescription: "App-Einstellungen zwischen Geräten synchronisieren oder im privaten S3-Speicher sichern. Chats und Projektdateien bleiben lokal.",advancedTitle: "Erweiterte Einstellungen",diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex 5018f9e52..ea59b4d5c 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -1085,6 +1085,7 @@ sklm: {},configSync: {title: "Cloud sync",+ experimental: "Experimental",connectionTitle: "Connection settings",connectionDescription: "Sync app settings across devices or back them up to your private S3 storage. Chats and project files stay local.",advancedTitle: "Advanced settings",diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex f0a4bdc7f..38fc4288f 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -803,6 +803,7 @@ sklm: {},"configSync": {title: "Cloud sync",+ experimental: "Experimental",connectionTitle: "Configuración de conexión",connectionDescription: "Sincroniza los ajustes entre dispositivos o guárdalos en tu almacenamiento S3 privado. Los chats y archivos del proyecto permanecen locales.",advancedTitle: "Configuración avanzada",diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex d7f63a606..6f1250acc 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -803,6 +803,7 @@ sklm: {},"configSync": {title: "Cloud sync",+ experimental: "Expérimental",connectionTitle: "Paramètres de connexion",connectionDescription: "Synchronisez les paramètres entre appareils ou sauvegardez-les dans votre stockage S3 privé. Les conversations et fichiers de projet restent locaux.",advancedTitle: "Paramètres avancés",diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex 1052616a6..b96f9920a 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -811,6 +811,7 @@ sklm: {},configSync: {title: "Cloud sync",+ experimental: "실험적",connectionTitle: "연결 설정",connectionDescription: "기기 간 앱 설정을 동기화하거나 비공개 S3 저장소에 백업합니다. 대화와 프로젝트 파일은 로컬에 유지됩니다.",advancedTitle: "고급 설정",diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.tsindex adc21d75b..169f89f7b 100644--- a/packages/i18n/src/locales/pt-BR/index.ts+++ b/packages/i18n/src/locales/pt-BR/index.ts@@ -1053,6 +1053,7 @@ export const ptBR = {},configSync: {title: "Sincronização na nuvem",+ experimental: "Experimental",connectionTitle: "Configurações de conexão",connectionDescription: "Sincronize as configurações entre dispositivos ou faça backup no seu armazenamento S3 privado. Conversas e arquivos do projeto ficam locais.",advancedTitle: "Configurações avançadas",diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex b2c6ac92a..965cda3a0 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -811,6 +811,7 @@ sklm: {},configSync: {title: "Bulut senkronizasyonu",+ experimental: "Deneysel",connectionTitle: "Bağlantı ayarları",connectionDescription: "Uygulama ayarlarını cihazlar arasında eşitleyin veya özel S3 depolamanıza yedekleyin. Sohbetler ve proje dosyaları yerel kalır.",advancedTitle: "Gelişmiş ayarlar",diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex 4ccab7dd5..d77fd773c 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -802,6 +802,7 @@ sklm: {},configSync: {title: "云同步",+ experimental: "实验性",connectionTitle: "连接设置",connectionDescription: "在设备间同步应用配置,或备份到你的私有 S3 存储。不包含聊天记录和项目文件。",advancedTitle: "高级设置",diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex e76832870..9c6113c74 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -802,6 +802,7 @@ sklm: {},configSync: {title: "雲端同步",+ experimental: "實驗性",connectionTitle: "連線設定",connectionDescription: "在裝置間同步應用程式設定,或備份到你的私有 S3 儲存空間。不包含聊天記錄和專案檔案。",advancedTitle: "進階設定",diff --git a/packages/shared/src/changelog-de.ts b/packages/shared/src/changelog-de.tsindex 66d127c33..15ebe8be0 100644--- a/packages/shared/src/changelog-de.ts+++ b/packages/shared/src/changelog-de.ts@@ -6,6 +6,7 @@ export const deEntries: ChangelogEntry[] = ["date": "2026-10-09","highlights": ["Richten Sie den Jev-Klassifizierer von TypeSafe über „Dienst hinzufügen“ ein; der API-Schlüssel wird vor dem Speichern geprüft.",+ "Cloud-Synchronisierung ist in den Einstellungen der installierten Version verfügbar und als experimentell gekennzeichnet.","Fügen Sie über „Dienst hinzufügen“ Plugin-eigene API-Schlüssel-Dienste hinzu, mit lokalisierten Beschreibungen und Modellerkennung nach der Einrichtung.","Autorisierte Plugin-Aktionen können den Composer-Entwurf ändern und lassen sich rückgängig machen; die Prompt-Verbesserung steckt jetzt in einem optionalen Plugin.","Tool-Details bleiben eingeklappt, bis Sie sie öffnen, damit die fertige Antwort im Blick bleibt.",diff --git a/packages/shared/src/changelog-en.ts b/packages/shared/src/changelog-en.tsindex 9b570633d..c455d899d 100644--- a/packages/shared/src/changelog-en.ts+++ b/packages/shared/src/changelog-en.ts@@ -6,6 +6,7 @@ export const enEntries: ChangelogEntry[] = [date: "2026-10-09",highlights: ["Set up TypeSafe's Jev classifier from Add Service and verify its API key before saving.",+ "Find Cloud sync in packaged Settings with its Experimental badge.","Add plugin-owned API-key services from Add Service, with localized descriptions and model discovery after setup.","Authorized plugin actions can transform a Composer draft with undo; prompt enhancement now runs as an optional plugin.","Tool details stay collapsed until opened, keeping the completed answer in view.",diff --git a/packages/shared/src/changelog-es.ts b/packages/shared/src/changelog-es.tsindex 797c8e696..ce2f77d31 100644--- a/packages/shared/src/changelog-es.ts+++ b/packages/shared/src/changelog-es.ts@@ -6,6 +6,7 @@ export const esEntries: ChangelogEntry[] = ["date": "2026-10-09","highlights": ["Configura el clasificador Jev de TypeSafe desde Añadir servicio y verifica la clave API antes de guardarla.",+ "La sincronización en la nube ya está disponible en los ajustes de la versión empaquetada y se marca como experimental.","Añade desde Añadir servicio proveedores de plugins con clave API, descripciones localizadas y detección de modelos tras configurarlos.","Las acciones autorizadas de plugins pueden transformar el borrador del Composer y deshacer el cambio; la mejora de prompts ahora es un plugin opcional.","Los detalles de las herramientas permanecen contraídos hasta que los abras, para mantener visible la respuesta completa.",diff --git a/packages/shared/src/changelog-fr.ts b/packages/shared/src/changelog-fr.tsindex 39f937c6e..8da4a34d7 100644--- a/packages/shared/src/changelog-fr.ts+++ b/packages/shared/src/changelog-fr.ts@@ -6,6 +6,7 @@ export const frEntries: ChangelogEntry[] = ["date": "2026-10-09","highlights": ["Configurez le classificateur Jev de TypeSafe depuis Ajouter un service et vérifiez la clé API avant de l'enregistrer.",+ "La synchronisation cloud est disponible dans les paramètres de la version empaquetée et porte la mention « expérimental ».","Ajoutez depuis Ajouter un service des fournisseurs de plugins avec clé API, descriptions localisées et découverte des modèles après configuration.","Les actions de plugins autorisées peuvent transformer le brouillon du Composer avec une annulation ; l'amélioration des prompts est désormais un plugin facultatif.","Les détails des outils restent réduits jusqu'à leur ouverture, afin de garder la réponse terminée visible.",diff --git a/packages/shared/src/changelog-ko.ts b/packages/shared/src/changelog-ko.tsindex 0f0fec776..7a57cba82 100644--- a/packages/shared/src/changelog-ko.ts+++ b/packages/shared/src/changelog-ko.ts@@ -6,6 +6,7 @@ export const koEntries: ChangelogEntry[] = ["date": "2026-10-09","highlights": ["서비스 추가에서 TypeSafe Jev 분류기를 설정하고 저장 전에 API 키를 확인하세요.",+ "패키지 빌드의 설정에서 클라우드 동기화를 사용할 수 있으며 실험적 기능으로 표시됩니다.","서비스 추가에서 플러그인이 제공하는 API 키 서비스를 추가하고, 현지화된 설명을 확인한 뒤 키 설정 후 모델을 검색하세요.","허용된 플러그인 작업으로 Composer 초안을 변환하고 실행 취소할 수 있습니다. 프롬프트 향상 기능은 이제 선택형 플러그인으로 제공됩니다.","도구 세부 정보는 직접 펼칠 때까지 접힌 상태로 유지되어 완료된 답변을 계속 볼 수 있습니다.",diff --git a/packages/shared/src/changelog-pt-BR.ts b/packages/shared/src/changelog-pt-BR.tsindex 269b8502b..4398a11ae 100644--- a/packages/shared/src/changelog-pt-BR.ts+++ b/packages/shared/src/changelog-pt-BR.ts@@ -6,6 +6,7 @@ export const ptBREntries: ChangelogEntry[] = ["date": "2026-10-09","highlights": ["Configure o classificador Jev da TypeSafe em Adicionar serviço e valide a chave de API antes de salvá-la.",+ "A sincronização na nuvem está disponível nas configurações da versão empacotada e é identificada como experimental.","Adicione em Adicionar serviço provedores de plugins com chave de API, descrições localizadas e descoberta de modelos após a configuração.","Ações autorizadas de plugins podem transformar o rascunho do Composer com opção de desfazer; o aprimoramento de prompts agora é um plugin opcional.","Os detalhes das ferramentas ficam recolhidos até serem abertos, mantendo a resposta concluída visível.",diff --git a/packages/shared/src/changelog-tr.ts b/packages/shared/src/changelog-tr.tsindex 0000b469b..a5ff6901b 100644--- a/packages/shared/src/changelog-tr.ts+++ b/packages/shared/src/changelog-tr.ts@@ -6,6 +6,7 @@ export const trEntries: ChangelogEntry[] = ["date": "2026-10-09","highlights": ["TypeSafe Jev sınıflandırıcısını Hizmet Ekle'den kurun ve kaydetmeden önce API anahtarını doğrulayın.",+ "Bulut eşitlemesi paketlenmiş sürümün ayarlarında kullanılabilir ve deneysel olarak işaretlenir.","Yerelleştirilmiş açıklamalar ve anahtar kurulumundan sonra model keşfiyle eklenti kaynaklı API anahtarlı hizmetleri ekleyin.","İzin verilen eklenti işlemleri Composer taslağını dönüştürebilir ve geri alınabilir; istem iyileştirme artık isteğe bağlı bir eklentide sunulur.","Yanıt görünür kalsın diye araç ayrıntıları siz açana kadar kapalı kalır.",diff --git a/packages/shared/src/changelog-zh-CN.ts b/packages/shared/src/changelog-zh-CN.tsindex 6b2119db4..d2ad584bf 100644--- a/packages/shared/src/changelog-zh-CN.ts+++ b/packages/shared/src/changelog-zh-CN.ts@@ -6,6 +6,7 @@ export const zhCNEntries: ChangelogEntry[] = [date: "2026-10-09",highlights: ["可从「添加服务」接入 TypeSafe 的 Jev 分类器;保存前会先验证 API 密钥。",+ "打包版设置现已开放云同步,并标注为实验性功能。","可从「添加服务」添加插件提供的 API 密钥服务;提供本地化说明,并在配置密钥后发现模型。","获准的插件操作可改写 Composer 草稿并支持撤销;提示词增强现由可选插件提供。","工具详情默认收起,展开后再查看,让已完成的回答保持在视野中。",diff --git a/packages/shared/src/changelog-zh-TW.ts b/packages/shared/src/changelog-zh-TW.tsindex 13a0c1e6a..2cf370017 100644--- a/packages/shared/src/changelog-zh-TW.ts+++ b/packages/shared/src/changelog-zh-TW.ts@@ -6,6 +6,7 @@ export const zhTWEntries: ChangelogEntry[] = [date: "2026-10-09",highlights: ["可從「新增服務」設定 TypeSafe 的 Jev 分類器,並在儲存前驗證 API 金鑰。",+ "打包版設定現已開放雲端同步,並標示為實驗性功能。","可從「新增服務」加入外掛提供的 API 金鑰服務,查看在地化說明,並在設定金鑰後探索模型。","獲授權的外掛操作可改寫 Composer 草稿並支援復原;提示詞增強現在由選用外掛提供。","工具詳細內容預設收合,展開後才會顯示,讓已完成的回答保持在視線內。",diff --git a/scripts/e2e/settings-scroll.jsx b/scripts/e2e/settings-scroll.jsxindex 11264c843..7fa238b48 100644--- a/scripts/e2e/settings-scroll.jsx+++ b/scripts/e2e/settings-scroll.jsx@@ -120,69 +120,59 @@ async function setSettingsSearch(value) {await settle();}async function checkCloudSyncVisibility() {- // Cloud sync is still a development-build surface: this harness compiles the- // renderer with `import.meta.env.DEV` true, so the not-yet-open cloud backup- // is expected here. Packaged builds omit the destination, which the- // settings-search unit tests pin; developer mode never gated it.+ // The isolated renderer is a development build; packaged-build visibility is+ // asserted by settings-developer-only-destinations.test.mjs.await setSettingsSearch("Cloud sync");const syncButton = navButton("Cloud sync");- assert(syncButton, "Cloud sync must appear in settings search in a development build");+ assert(syncButton, "Cloud sync must appear in Settings search");assert(- !syncButton.querySelector(".settings-nav-experimental"),- "Cloud sync's rail entry must not carry the Experimental badge",+ syncButton.querySelector(".settings-nav-experimental")?.textContent?.trim() === "Experimental",+ "Cloud sync's rail entry must carry the Experimental badge",);flushSync(() => syncButton.click());await settle();+ assert(useAppStore.getState().settingsTab === "sync", "Cloud sync must open its page");assert(- useAppStore.getState().settingsTab === "sync",- "Cloud sync must open its page in a development build",- );- assert(- !document.querySelector(".settings-section-title")?.textContent?.includes("Experimental"),- "Cloud sync's page title must not carry the Experimental badge",+ document.querySelector(".settings-section-title")?.textContent?.includes("Experimental"),+ "Cloud sync's page title must carry the Experimental badge",);await setSettingsSearch("");- // Developer mode does not gate this destination, so it cannot hide the page.+ // Developer mode does not gate Cloud sync or Remote Hosts.settings = { ...settings, developerMode: true };flushSync(() => useAppStore.setState({ settings }));await settle();assert(navButton("Cloud sync"), "Cloud sync must stay in the rail with developer mode on");-settings = { ...settings, developerMode: false };flushSync(() => useAppStore.setState({ settings }));await settle();- assert(- useAppStore.getState().settingsTab === "sync",- "Cloud sync must not fall back to General when developer mode changes",- );+ assert(useAppStore.getState().settingsTab === "sync", "Cloud sync must stay selected");assert(navButton("Cloud sync"), "Cloud sync must stay in the rail without developer mode");- await setSettingsSearch("");- // Remote hosts keeps the developer-mode gate, including the page fallback.- settings = { ...settings, developerMode: true };- flushSync(() => useAppStore.setState({ settings }));- await settle();+ await setSettingsSearch("Remote hosts");+ const remoteButton = navButton("Remote hosts");+ assert(remoteButton, "Remote hosts must appear in Settings search");assert(- navButton("Remote hosts")?.querySelector(".settings-nav-experimental")- ?.textContent?.trim() === "Experimental",- "Remote hosts must keep the Experimental badge",+ remoteButton.querySelector(".settings-nav-experimental")?.textContent?.trim() === "Experimental",+ "Remote hosts must carry the Experimental badge",);- await select("Remote hosts");- assert(- useAppStore.getState().settingsTab === "remoteHosts",- "Remote hosts must open while developer mode is on",- );-- settings = { ...settings, developerMode: false };- flushSync(() => useAppStore.setState({ settings }));+ flushSync(() => remoteButton.click());await settle();+ assert(useAppStore.getState().settingsTab === "remoteHosts", "Remote hosts must open");assert(- useAppStore.getState().settingsTab === "general",- "A Remote hosts page hidden by developer mode must return to General",+ document.querySelector(".settings-section-title")?.textContent?.includes("Experimental"),+ "Remote hosts page title must carry the Experimental badge",);- assert(!navButton("Remote hosts"), "Remote hosts must leave the rail when developer mode is off");+ await setSettingsSearch("");++ for (const developerMode of [true, false]) {+ settings = { ...settings, developerMode };+ flushSync(() => useAppStore.setState({ settings }));+ await settle();+ assert(useAppStore.getState().settingsTab === "remoteHosts");+ assert(navButton("Remote hosts"), "Remote hosts must stay visible in every developer mode");+ }}async function scroll() {pane().scrollTop = 220;