Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

merge: land PR #456 reasoning effort slider

vastsa96b573a8e175
diff --cc apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.ts
index 61e639d18,eb29986dc..79c9787a4
--- a/apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.ts
+++ b/apps/desktop/src/features/chat/composer/hooks/useComposerModelMenu.ts
@@@ -235,22 -237,48 +236,48 @@@ export function useComposerModelMenu(
}
};
+ /**
+ * Commit a reasoning level without leaving the menu surface, so a dragged
+ * root slider or a tick click keeps the menu where it is. Returns false
+ * when the configuration is rejected, mirroring the list selection path's
+ * error contract.
+ *
+ * A drag can emit one commit per crossed stop. Idle sessions persist each
+ * configure directly, so concurrent promises could resolve out of order and
+ * land the store on a stale level. The chain serializes the sends: each
+ * configure starts only after the previous one has settled its store write.
+ */
+ const thinkingCommitChainRef = useRef<Promise<boolean | void>>(Promise.resolve());
- const commitThinkingLevel = async (level: ThinkingLevel) => {
++ const commitThinkingLevel = async (level: SessionThinkingLevel) => {
+ const send = async (): Promise<boolean> => {
+ try {
+ await configureActiveSession({
+ mode,
+ providerId: provider?.id,
+ modelId,
+ thinkingLevel: level,
+ });
+ return true;
+ } catch (error) {
+ showToast(error instanceof Error ? error.message : String(error), {
+ variant: "error",
+ });
+ return false;
+ }
+ };
+ const run = thinkingCommitChainRef.current.then(send);
+ thinkingCommitChainRef.current = run.then(
+ () => undefined,
+ () => undefined,
+ );
+ return run;
+ };
+
- const selectThinkingLevel = async (level: ThinkingLevel) => {
+ const selectThinkingLevel = async (level: SessionThinkingLevel) => {
- try {
- await configureActiveSession({
- mode,
- providerId: provider?.id,
- modelId,
- thinkingLevel: level,
- });
- setView("root");
- setModelHighlight(-1);
- setThinkingHighlight(-1);
- } catch (error) {
- showToast(error instanceof Error ? error.message : String(error), {
- variant: "error",
- });
- }
+ if (!(await commitThinkingLevel(level))) return;
+ setView("root");
+ setModelHighlight(-1);
+ setThinkingHighlight(-1);
};
const onMenuKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {
diff --cc apps/desktop/test/composer-model-thinking-menu.test.mjs
index b80d6bff1,dcb4a3049..43dac4049
--- a/apps/desktop/test/composer-model-thinking-menu.test.mjs
+++ b/apps/desktop/test/composer-model-thinking-menu.test.mjs
@@@ -28,8 -28,34 +28,34 @@@ test("model and reasoning selection ret
assert.match(composerSource, /setQuery\(""\);[\s\S]*?setView\("root"\)/);
assert.match(composerSource, /const selectThinkingLevel = async/);
assert.match(composerSource, /setView\("root"\);[\s\S]*?setThinkingHighlight\(-1\)/);
- assert.match(composerSource, /const thinkingMenuLevels: ThinkingLevel\[\] = availableThinkingLevels\.length/);
+ assert.match(composerSource, /const thinkingMenuLevels = sessionThinkingMenuLevels\(availableThinkingLevels\)/);
});
+ test("the menu root carries the reasoning slider under the reasoning entry", () => {
+ // The root view renders the slider directly beneath the Reasoning level
+ // entry; the entry itself still opens the classic radio-list submenu.
+ assert.match(composerSource, /onClick=\{\(\) => showView\("thinking"\)\}[\s\S]*?className="composer-thinking-slider"/);
+ assert.match(composerSource, /\{thinkingMenuLevels\.length > 1 \? \(\s*<div className="composer-thinking-slider">/);
+ assert.match(composerSource, /type="range"/);
+ assert.match(composerSource, /className="composer-thinking-range"/);
+ assert.match(composerSource, /aria-label=\{t\("chat.reasoningLevel"\)\}/);
+ assert.match(composerSource, /aria-valuetext=\{thinkingMenuLevels\[thinkingSliderValue\] \?\? thinkingLevel\}/);
+ assert.match(composerSource, /const commitThinkingLevel = async/);
+ assert.match(composerSource, /if \(!\(await commitThinkingLevel\(level\)\)\) return;/);
+ assert.match(composerSource, /if \(level && level !== thinkingLevel\) void commitThinkingLevel\(level\);/);
+ // The slider owns its arrow/Home/End keys so they adjust the level
+ // instead of driving the menu's list navigation.
+ assert.match(composerSource, /if \(THINKING_SLIDER_KEYS\.has\(event\.key\)\) event\.stopPropagation\(\);/);
+ assert.match(composerSource, /composer-thinking-tick/);
+ // A drag can emit one commit per crossed stop; sends serialize so
+ // out-of-order configure responses cannot land a stale level.
+ assert.match(composerSource, /thinkingCommitChainRef/);
+ assert.match(stylesSource, /\.composer-thinking-range::-webkit-slider-runnable-track/);
+ assert.match(stylesSource, /\.composer-thinking-range::-webkit-slider-thumb/);
+ assert.match(stylesSource, /\.composer-thinking-range::-moz-range-thumb/);
+ assert.match(stylesSource, /\.composer-thinking-tick\.active\s*\{/);
+ // The slider/list toggle machinery is gone: one surface, one behavior.
+ assert.doesNotMatch(composerSource, /thinkingMode|showThinkingMode|ThinkingSelectionMode/);
+ });
test("opening the combined menu preloads model metadata before its submenu", () => {
assert.match(
diff --cc docs/spec/04-ux/08-component-spec.md
index 2d8700ded,766128129..1a9a7bf8f
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@@ -2725,12 -2682,13 +2725,14 @@@ reasoning-level control
live discovery updates them in the background without replacing a configured
alias with the wire ID or a second visible name.
- The combined model × reasoning menu opens at `bottom: calc(100% + 8px)` with
- `role="menu"`. Its root has exactly two `role="menuitem"` entries. The Model
- submenu has a search input and sticky provider headings, while the Reasoning
- level submenu starts with `Current model <model> supports these reasoning
- levels` and lists `omit` then the selected model binding's enabled levels in
- canonical order. `omit` persists as the session thinking level and sends no
- provider thinking override (ADR 0295).
+ `role="menu"`. Its root has exactly two `role="menuitem"` entries and, when
+ the binding enables more than one level, a drag slider with one labeled
- stop per enabled level directly beneath the Reasoning level entry (D433).
++ stop per enabled level directly beneath the Reasoning level entry (D458).
+ The Model submenu has a search input and sticky provider headings, while
+ the Reasoning level submenu starts with `Current model <model> supports
- these reasoning levels` and lists the binding's enabled levels as the
- classic radio rows.
++ these reasoning levels` and lists `omit` then the selected model binding's
++ enabled levels as the classic radio rows. `omit` persists as the session
++ thinking level and sends no provider thinking override (ADR 0295).
Model-row reasoning badges use published reasoning metadata; vision badges
use the effective image-input capability for the row's provider binding
(`supportsImages` when explicitly set, published image input otherwise).
diff --cc docs/spec/08-meta/decisions-log.md
index 584aefbbf,a63bce860..2a55a1cd1
--- a/docs/spec/08-meta/decisions-log.md
+++ b/docs/spec/08-meta/decisions-log.md
@@@ -5563,759 -5445,26 +5564,784 @@@ that was sitting at the bottom — incl
`07-plugins/13-plugin-permissions-matrix.md` §6, and
E2E-PLUGIN-fs-root-follows-the-calling-session.
-## 2026-09-16 — The menu root carries the reasoning slider (#417, D433)
+## 2026-09-16 — Quotes, annotations, and side chats are removed (ADR 0268)
+
+- Quote, the text-selection overlay, response annotations (comment editor,
+ floating index, source badges, composer attachment), and renderer-owned side
+ chats are removed from every surface. Message action rows keep Copy, Edit,
+ Delete, Fork, Retry, and Regenerate; the composer keeps its draft, chips, smart
+ Stop, and per-session draft slots; the work panel keeps its other tab kinds;
+ `session.fork` and the Fork action are unchanged.
+- Sends no longer compose a `# Response annotations:` block, and the display-side
+ reduction `requestTextWithoutAnnotations` is gone, so a prompt stored before the
+ removal is shown exactly as it was stored in the transcript, the edit seed, and
+ the queue preview.
+- Retired and never reusable: `D-LOCAL-message-quotes`, `D-LOCAL-selection-overlay`,
+ `D-LOCAL-response-annotations`, `D-native-sidechat-stream`, and the E2E IDs
+ E2E-CHAT-quote-prefill, E2E-CHAT-selection-markdown,
+ E2E-CHAT-selection-side-chat, E2E-CHAT-annotation-attachments,
+ E2E-CHAT-annotation-session-state, E2E-CHAT-annotation-source-index,
+ E2E-CHAT-annotation-ack-and-steering, E2E-CHAT-side-chat-fork,
+ E2E-CHAT-side-chat-stream, E2E-CHAT-side-chat-add-to-main,
+ E2E-CHAT-side-chat-promote, E2E-CHAT-side-chat-close, and
+ E2E-SESSION-native-side-chat-fork-survives-close.
+- No host protocol (v11), storage schema (v15), IPC channel, permission, or Rust
+ change. See ADR 0268.
+
+## 2026-09-16 — A control with no label states its square geometry
+
+- `.icon-btn` is shared with label-driven pills, so it takes its width from its
+ content — glyph plus 8px of side padding. Every icon-only use of it was
+ therefore taller than it was wide: the sidebar collapse control and the
+ composer's add button rendered 31×28, the composer's enhance and undo
+ controls 35×28 inside `.composer-right`, and the settings provider actions
+ 30×28 from their 14px glyphs. The same control in the conversation topbar was
+ already a 28×28 square, so one function had two sizes.
+- Those controls now state `.icon-btn-square`, which pins both axes to the new
+ `--ds-control-size` (28px) token, keeps `flex: 0 0` so a crowded toolbar row
+ cannot shrink the control back out of square, and drops the side padding that
+ under the global `border-box` would leave a 12px content box for a 15px
+ glyph. Icon-only controls now match the square the topbar toggle, the
+ work-panel actions, and the send/stop controls already used.
+- `.composer-right .icon-btn` no longer sets inline padding. The label-driven
+ model/thinking chip sets its own padding with `!important`, so that
+ declaration only ever widened the icon-only controls beside it; the
+ maximizing enhance control keeps its label geometry while it is loading.
+- Renderer only: no protocol, storage, host, permission, or migration change.
+ See `04-ux/07-ui-design-system.md` §11.1 and `04-ux/08-component-spec.md`
+ §3.7.
+
+## 2026-09-16 — One geometry for every chrome icon control
+
+- The preview- and route-band lane actions (`.title-nav-btn`) rendered as 22px
+ tiles with `--radius-2xs` and a `--ds-tile` seat, beside 28px siblings: the
+ same dock toggle in the conversation topbar, the viewport-fixed work-panel
+ toggle, and the work-panel's own actions. One control, two sizes and two
+ shapes, in the same 46px band.
+- Those actions now take the shared chrome-control geometry (the `.ct-icon-btn`
+ group): a 28px square from `--ds-work-panel-toggle-size`, `flex: 0 0` so a
+ crowded band cannot squeeze them out of square, `--radius-md`, a transparent
+ seat with the semantic hover wash, and the 15px glyph every other chrome
+ control uses. `.title-nav-btn` keeps only its press feedback and active tone.
+- The preview action lane is derived from the control it reserves room for:
+ `--ds-preview-action-lane-width: calc(2 * var(--ds-work-panel-toggle-size) + 4px + 8px)`,
+ so the panel header's reserve and the buttons cannot drift apart.
+- Renderer only: no protocol, storage, host, permission, or migration change.
+ See `04-ux/08-component-spec.md` §2.
+
+## 2026-09-16 — The macOS traffic-light reserve has one source (D433)
+
+- The renderer's windowed lead-in for the macOS traffic lights was a hand-copied
+ `76px`: five declarations across `apps/desktop/src/styles/chrome.css` and
+ `apps/desktop/src/styles/work-panel.css` — `.main-titlebar-left` (`64px`, that
+ number minus the row's own 12px padding), `.conversation-topbar.ct-collapsed`
+ (`--ct-lead-inset`), `.sidebar-header`,
+ `.window-chrome-row:not(.sidebar-expanded)`, and the preview
+ `.work-panel-header` (`calc(76px + var(--ds-preview-action-lane-width))`) —
+ each with its own `[data-fullscreen="true"]` sibling. None of them was tied to
+ the `trafficLightPosition` the main process hands Electron, so either side
+ changing on its own would have drifted from the other.
+- The native geometry now has one home, `packages/shared/src/window-chrome.ts`:
+ `MAC_TRAFFIC_LIGHT_POSITION` (`{x:16,y:16}`) and
+ `MAC_TRAFFIC_LIGHT_CLUSTER_WIDTH_DIP` (`60`), with
+ `MAC_TRAFFIC_LIGHT_EDGE_DIP` (`16 + 60 = 76`) as the cluster's right edge. The
+ main process positions the buttons from those constants, and the renderer
+ injects the edge into `--ds-traffic-light-edge` at boot. Every consumer reads
+ `--ds-window-lead-inset`, which `chrome.css` composes once for
+ `:root[data-platform="darwin"]` as `--ds-traffic-light-edge` +
+ `--ds-traffic-light-gap` (`12px`) = `88px`.
+- The buttons used to sit flush against the green light, with a 0 gap. The
+ reserve now keeps `12px` of breathing room between the cluster's right edge and
+ the first shell control, which is why windowed mode moved from `76px` to
+ `88px`.
+- The per-selector `[data-fullscreen="true"]` overrides are gone. Fullscreen
+ hides the buttons, and the same token's `[data-fullscreen="true"]` rule drops
+ the reserve to the ordinary `8px` gutter for every consumer at once.
+- Windows and Linux are unchanged: `--ds-window-lead-inset` keeps its `0px`
+ default and those platforms still use the renderer-drawn controls in the 120px
+ right-side band. Plugin-panel windows create a plain frameless `BrowserWindow`
+ with no native traffic lights, so they are unaffected.
+- Renderer + shared constant only: no protocol, storage, host, permission, or
+ migration change, and no new default.
+- See `04-ux/08-component-spec.md`, `04-ux/09-interaction-patterns.md`, and
+ E2E-LAYOUT-three-column-width-priority.
+
+## 2026-09-16 — The work-panel header's buttons are one group
+
+- The work-panel header read as two clusters: the action group inside the header
+ (`+` and maximize, 4px apart) and the viewport-fixed collapse toggle outside
+ it. The separator between them was compounded from four declarations on
+ `.work-panel-actions` — `margin-right: 8px`, `padding-right: 8px`, a 1px
+ `--ds-border-subtle` divider, and a separate `--ds-work-panel-toggle-gap: 20px`
+ lane token — for a real 37px gap plus a hairline rule, so the same three
+ 28px squares in the same 46px row looked like two unrelated clusters.
+- One token now spaces the whole row. `--ds-work-panel-control-gap: 4px`
+ replaces `--ds-work-panel-toggle-gap` and is the header's flex gap (tab strip
+ to action group), the `.work-panel-actions` gap (`+` to maximize), and — spent
+ by the header's right padding as
+ `calc(size + inset + control-gap)`, 44px — the gap from the action group to
+ the fixed collapse toggle. `.work-panel-actions` states spacing only: the
+ divider, inset, and margin are gone.
+- The lane still reserves the whole toggle, and the `+` trigger still clears the
+ toggle by 36px inside the lane (4px + the 28px maximize control + 4px), so the
+ `WORK_PANEL_HEADER_PROBE` 24px assertion and E2E-152's hit-region contract
+ still hold.
+- Renderer only: no protocol, storage, host, permission, or migration change,
+ and no new default. See `04-ux/08-component-spec.md` §5.2,
+ `04-ux/07-ui-design-system.md` §4.3, and
+ E2E-LAYOUT-three-column-width-priority.
+
+## 2026-09-16 — The work-panel controls are quiet icons, not filled seats
+
+- The work-panel header's `+` and maximize controls were painted with a
+ `--ds-tile` seat of their own, and the viewport-fixed collapse toggle added
+ `--ds-tile-deep` plus `--ds-raised-shadow` while `aria-pressed="true"`. In the
+ light theme that turned a row of three 28px controls into filled squares, with
+ the toggle reading as a raised circular pill floating over the panel header —
+ nothing like the top-left dock toggle and new-task controls beside them.
+- `+` and maximize now join the shared chrome-control group in `chrome.css` —
+ the same rule that seats the topbar's dock toggle, the viewport-fixed panel
+ toggle, and the preview/route-band lane actions — so they take one geometry
+ (28px square, `--radius-md`, `flex: 0 0`), one transparent seat, the semantic
+ `--ds-bg-hover` wash on pointer, and the `opacity: 0.4` disabled state. Their
+ duplicated rules in `work-panel.css` are gone; the partial keeps only the
+ action group's spacing.
+- The toggle's pressed state drops the fill and the raised shadow and keeps the
+ engaged ink, so the open state is the glyph swap plus `--ds-text-primary`.
+ `aria-pressed` still carries the state to assistive technology, and
+ `.app-work-panel-toggle` keeps its viewport-fixed ownership and `no-drag`
+ carve-out.
+- Keyboard focus is unchanged: the global `:focus-visible` outline applies as it
+ does to every other chrome icon control, so removing the retired
+ `:focus-visible` background wash costs no focus affordance.
+- Renderer only: no geometry, gap, inset, protocol, storage, host, permission, or
+ migration change, and no new token. See `04-ux/08-component-spec.md` §2.3 and
+ §5.2, `04-ux/07-ui-design-system.md` §4.3, and
+ E2E-LAYOUT-three-column-width-priority.
+
+## 2026-09-17 — Builtin subagents can be switched off (D434)
+
+- Settings > Agent > Subagents listed the five shipped defaults as read-only
+ rows while the user's own documents had an enablement switch, so one delegate
+ could not be turned off at all: copying a builtin and disabling the copy left
+ the shipped definition in the catalog, because disabled user documents are
+ filtered out before the loader merges and so shadowed nothing.
+- Every Built-in row now carries the same switch. The handle is stored in
+ `<data>/agent-capabilities/subagent-builtins.json`, a file of its own because
+ the user-document scan prunes state for ids it can never see, and host-core
+ exposes it through `agents.disabledBuiltins` / `agents.setBuiltinEnabled`.
+ Electron main hands the disabled handles to `loadSubagentDefinitions`, which
+ drops them from the delegation catalog while `subagent/catalog` still returns
+ the builtin, flagged `enabled: false`, in its new `builtins` list.
+- A switched-off builtin keeps its row, dimmed, so the switch is the way back
+ on. A user document of the same handle keeps working and keeps shadowing the
+ shipped definition, reveal and delete stay absent because a builtin is not a
+ file, and an unavailable host contributes no exclusions. See ADR 0270,
+ `04-ux/06-settings-ia.md` §2, `03-runtime/01-ipc-protocol.md` §12c, and
+ E2E-SUBAGENT-settings-lists-builtin-defaults.
+
+## 2026-09-17 — Judge a public-network address on the route the request will dial (D436)
+
+- The skill market's main-process guard classified the target host with a
+ *local* resolver while `net.fetch` dials through Chromium's proxy stack
+ (ADR 0177). Under a TUN / fake-IP resolver that answer is a synthesized
+ `198.18.0.0/15` address for a connection the app never makes, so every
+ catalog source was refused as "blocked by the app's address check"
+ (issue #419).
+- Each hop now asks the session that carries `net.fetch`
+ (`Session.resolveProxy`) for its own decision, and the shared
+ `classifyProxyRoute` reduces that answer to `proxied` / `direct` / `unknown`.
+ On a `proxied` route `isAcceptableResolvedAddress` tolerates only the
+ resolver-artifact class (`benchmark`); every real internal class and an
+ unanswered resolver still refuse. A `direct` route keeps the pre-change
+ semantics byte for byte, a `DIRECT` entry anywhere in the list is read as
+ `unknown` because Chromium may fall back to it, and `unknown` stays strict.
+- Refusals and the market's `failureDetails` now carry `route`, so a fake-IP
+ refusal on a direct route reads apart from one on an unreadable route.
+- The MCP market keeps its pinned Node HTTPS guard (ADR 0245) and is unchanged;
+ a fake-IP environment still refuses its sources.
+- See ADR 0272, `05-security/01-security.md` §4.1,
+ `03-runtime/09-logging-and-observability.md`, and
+ `06-delivery/04-e2e-test-plan.md` E2E-SKILL-MARKET-NET-BOUNDARY.
+
+## 2026-09-17 — The dock question card is a composer plate (#360, D437)
+
+- The asktool question card is mounted in the transparent composer dock
+ (`Composer.tsx` renders it as a direct `.composer-stack` child, and the
+ transcript mount is gone), yet it still painted the in-flow `--ds-tile` wash:
+ a 3.5% ink mix with no shadow. On the light page that leaves a `#f7f7f7`
+ panel with white option rows next to the composer plate below it, which is
+ how #360 item 1 ("选择交互面板缺少背景色") reads. The dock rule's own comment
+ already claimed the card "uses the same decision surface as Plan and Goal
+ approval", while `.plan-approval-bar` in that exact slot paints
+ `--ds-bg-composer` with `--ds-shadow-composer` (`04-ux/03-permission-ux.md`
+ §9, `04-ux/08-component-spec.md` §11.5).
+- `.composer-stack > .asktool-card` now paints that plate: `--ds-bg-composer`
+ with `--ds-shadow-composer` (light `#ffffff`, dark
+ `color-mix(in oklab, #212121 96%, transparent)` with the composer shadow).
+- Its controls move to the plate's inlaid tier, the layer `.plan-approval-split`
+ already uses on that same plate: `.asktool-option` and
+ `.asktool-custom-input` drop `--ds-raised` and `--ds-raised-shadow` for
+ `--ds-tile-deep`, and the hover/selected mix is rebased on `--ds-tile-deep`.
+ Without that flip the rows would be white on white in the light palette,
+ where `--ds-raised` and `--ds-bg-composer` are both `#ffffff`. The 15 px
+ option mark keeps `--ds-tile-deep` — the sidebar checkbox's mark — which
+ still reads against the inlaid row exactly as it does against the sidebar.
+- Renderer only: no protocol, storage, host, permission, migration, or
+ preference change, and no new default. Both layers are existing tokens in
+ both palettes, so a contributed theme moves the plate and the rows with
+ `--ds-bg-composer` / `--ds-tile-deep`. See
+ `04-ux/11-asktool-question-card.md`, `04-ux/07-ui-design-system.md` §6.4, and
+ E2E-078.
+
+## 2026-09-17 — A git checkout is a Create project source (D438)
+
+- The Create project dialog only collected a project name and local folders
+ (ADR 0233), and the home switcher's Clone git project entry renders inside the
+ hero of a project-bound session. A fresh installation therefore had to open an
+ unrelated local folder before any repository could be cloned.
+- The dialog now owns a source selector with two equal peers: This computer and
+ Git repository. The git source keeps the one name field (seeded from the
+ repository name until the user types), adds a repository URL field and one
+ clone destination row, and parses URLs with the switcher's `parseGitCloneUrl`
+ rules, so private, loopback, link-local, credential-bearing, and malformed
+ remotes keep Create disabled (ADR 0247).
+- Main exposes additive `project/cloneCheckout({ url, parentPath })`: it clones
+ into the explicit parent folder and returns `{ path, name }` without touching
+ the active workspace and without opening a picker. `project/clone` keeps its
+ native-picker behavior for the home switcher.
+- Project creation is unchanged: both sources call one project-slice helper,
+ `project-group/create` still writes the only durable record, and a checkout
+ becomes the primary root of the same logical group (ADR 0233).
+- Renderer plus one narrow main-process capability: no protocol, schema, host
+ RPC, permission, storage, or preference change. See ADR 0273,
+ `03-runtime/01-ipc-protocol.md` §9, `04-ux/08-component-spec.md`, and E2E-258.
+
+## 2026-09-16 — Draggable chat content width (D439)
+
+- The centered conversation band, empty-home stack, and composer share one
+ preferred max width, default 760px, persisted as
+ `AppSettings.chatContentMaxWidth`. Dual edge handles (invisible at rest;
+ a short primary-ink capsule on hover, slightly stronger while dragging)
+ change that width together so the column stays centered. Drag floor is 560px.
+
+- The live used width is `min(available pane minus 24px gutters, preferred)`,
+ so a squeezed sidebar or work panel compresses the band without rewriting
+ the preference. The collapsed-sidebar 640px ceiling is removed.
+- Assistant, tool, and decision rows follow the band. User plates stay
+ `min(82%, 600px)`. Renderer only. See ADR 0277, E2E-208, and
+ E2E-CHAT-content-width-handles.
+
+## 2026-09-17 — Session and project rows delete on the second click (D441)
+
+- The sidebar's session item and both project menus (sidebar and Projects index)
+ removed the row on the first click of Delete. Every other destructive row
+ action — the settings provider rows, vendor accounts, and the capability
+ tables — arms first and relabels the control, so the two most destructive
+ actions were the only ones that fired on a single click.
+- `hooks/use-armed-delete.ts` now owns that pattern for the whole renderer: one
+ `ARMED_DELETE_MS` (3200ms) expiry and one `useArmedDelete()`. The capability
+ pages keep importing it from `AgentCapabilityLayout`, which re-exports the
+ shared hook instead of holding a second copy with a timeout of its own, so the
+ pattern cannot drift between the settings rows and the two menus.
+- A session item arms on `session.id`; both project menus arm on a
+ `project:`-prefixed key, so a session and a project can never share an arm. An
+ armed item carries `data-armed="true"`, a danger wash, and the label
+ `nav.deleteTaskConfirm` / `project.deleteMenuConfirm` ("Delete?" / "确认删除?")
+ in all eight catalogs. The menu stays open between the two clicks, and an
+ outside press, Escape, or the expiry clears the arm without removing anything.
+- Amends D431 for the idle case: a project whose turn is still live still opens
+ `ProjectDeleteDialog`, which names those sessions and stops them before it
+ deletes, and the host's 1008 / `CONFLICT` refusal is still mapped to
+ `project.deleteRunningBlocked` on both paths. A project with no live turn is
+ removed by the same store action the dialog used, with the same success toast,
+ so its second click is the confirmation the user already gave.
+- The number is D441 because D438 was already claimed twice — by the
+ window-toggle merge (#360, D438 with the D439 rebind) and by the
+ Git-checkout decision (ADR 0273), which this log flags to move to D440.
+ This entry does not rewrite another decision's text.
+- Renderer only: no protocol, storage, host, permission, or migration change,
+ and no new default. The folder on disk is still never touched. See
+ `04-ux/09-interaction-patterns.md`, D421, D431,
+ `06-delivery/04-e2e-test-plan.md`
+ E2E-PROJECT-delete-removes-project-and-owned-sessions, and
+ `apps/desktop/test/two-step-delete.test.mjs`.
+
+## 2026-09-16 — The sidebar list rhythm is 1px / 2px / 8px
+
+- The sidebar's session lists had no rhythm to read. Rows and group headers sat
+ flush inside a group (a 0 gap), two project groups sat 2px apart, and the only
+ air was the 4px above a section label. Adjacent 28px rows painted rounded
+ hover fills that touched, so two rows read as one block, a collapsed group sat
+ as far from its neighbour as an expanded group with ten rows under it, and a
+ section label was closer to the rows above it than to the rows it introduces.
+- The lists now state one ladder: rows sit 1px apart, a project group header and
+ a section label sit 2px above their first row, a sidebar section sits 8px
+ below the one above it, and an expanded project group carries an 8px tail.
+- That tail belongs to the expanded group itself, so the spacing is decided by
+ the preceding group alone: an expanded group is followed by 8px whether the
+ next group is expanded or collapsed, and a collapsed group by 1px either way.
+ The scroller's own gap stays a uniform 1px and the difference lives in the
+ group body's inset, which leaves with the rows. Collapsing a group therefore
+ cannot fork the spacing on a neighbour's state, and cannot snap its own tail.
+- The dated labels inside a project group are ordinary rows of that rhythm
+ rather than a second level of groups: they keep no state, no disclosure, and
+ no `aria-expanded`, and their own inset becomes a symmetric 4px instead of 6px
+ above and 2px below, so a label no longer outweighs the 1px row gap it sits in.
+- `space-0.25` (1px) joins the spacing scale as the hairline step for dense list
+ rhythms; the settings rail already used 1px between its navigation items. The
+ section-gap rule no longer claims the sidebar, which has its own rhythm.
+- Two row budgets follow the pitch: the pinned body still shows eight rows
+ (233px, was 224px) and the standalone Sessions body still shows five (146px,
+ was 140px), because the 28px row grid no longer fits its own gaps inside the
+ old numbers.
+- Renderer only: no protocol, storage, host, permission, or migration change.
+ See `04-ux/07-ui-design-system.md` §6.1 and §13, and
+ `04-ux/08-component-spec.md` §6.2 and §6.6.
+
+## 2026-09-16 — The sidebar project group folds as one grid row
+
+- The rhythm above shipped with the group fold animating `max-height: 2000px →
+ 0` over the 300ms slow duration, plus a separate 200ms opacity fade and a
+ padding transition. A `max-height` curve spends most of its length above the
+ content, so the visible move was a short snap at the end, and the shorter
+ opacity curve emptied the group roughly two thirds of the way through: the
+ rows disappeared first and the empty box closed afterwards. Collapsing a
+ project read as two separate animations.
+- The group body is now a one-row grid whose row animates `1fr` → `0fr` over the
+ 200ms normal duration. Every frame is a real fraction of the group's measured
+ height, so the fold is a single continuous motion, and `opacity` stays 1 for
+ the whole fold — the rows leave by being clipped, not by fading.
+- The body is three layers: the grid, a clip with `min-height: 0` and
+ `overflow: hidden`, and the list that owns the 1px row gap and the fixed
+ 2px / 7px inset. The inset has to sit inside the clip, because vertical
+ padding on the animating box holds a `0fr` row open and leaves the group's
+ tail behind after its rows are gone.
+- A folded group keeps its rows mounted inside the `0fr` row, so it is `inert`
+ as well as `aria-hidden` and leaves the tab order. Under
+ `prefers-reduced-motion: reduce` the fold keeps both endpoints and runs in a
+ near-zero duration.
+- The scroll budgets, the indent, the pinned and standalone lists, and the
+ shared `.sidebar-session-group-body` flex column are unchanged; only the
+ project body folds as a grid.
+- Renderer only: no protocol, storage, host, permission, or migration change.
+ See `04-ux/08-component-spec.md` §6.2 and
+ `06-delivery/04-e2e-test-plan.md` E2E-LAYOUT-sidebar-project-group-fold.
+
+## 2026-09-17 — Sidebar selection is distinct from workspace context
+
+- Project headers and project, pinned and standalone conversation rows share
+ one row-level hover surface, radius and transition. Project title buttons
+ stay transparent; selected conversation paint takes precedence over hover.
+- A project is a workspace/disclosure control, not a separate selected page.
+ The current workspace keeps its dot and all existing workspace behavior but
+ no persistent row fill, including when no conversation is selected. The
+ renderer marks that context with `data-current-workspace`, not an `active`
+ project class. Session selection remains chat-page-aware and follows the
+ destination immediately while a switch is pending.
+- Folding a selected conversation does not transfer selection to its project.
+ Keyboard focus retains its outline, action buttons retain local feedback,
+ window blur releases hover without clearing selection, and drop-target paint
+ takes precedence over hover.
+- Renderer presentation only: no persistence, workspace activation, permissions
+ or protocol changes. See `04-ux/01-ui-ia.md`, `04-ux/08-component-spec.md`,
+ `04-ux/09-interaction-patterns.md` §9.1c and
+ E2E-LAYOUT-sidebar-row-states in `06-delivery/04-e2e-test-plan.md`.
+
+## 2026-09-17 — Settings shares sidebar material and restores layout without entrance
+
+- Main and settings navigation now share `sidebar-surface`: the same opaque
+ color/image fallback on Windows/Linux and the existing native vibrancy plus
+ tint/sheen on macOS. Settings wrapper ancestry allows that native material
+ through, while its content pane and content-column titlebar remain opaque.
+ Only the inner settings content animates, not the navigation backing.
+- Built-in settings rail colors no longer diverge from the sidebar. Legacy
+ `--ds-settings-rail-bg` remains an optional shared fallback; a canonical
+ `--ds-bg-sidebar` override wins. No theme or native-window API changes.
+- Sidebar mounting no longer implies expansion. A dedicated transition hook
+ distinguishes visible collapsed-state changes from route restoration. Only
+ real collapse/expand changes animate; settings navigation cancels unfinished
+ phases, and returning restores the retained width/state without replaying
+ `sidebar-in`. Animation-end guards, scoped timeout cleanup, auto-restore and
+ reduced motion remain supported. Boot presentation uses the existing splash
+ reveal instead of a second sidebar width animation.
+- No changes to item indentation, widths, workspace state, data or permissions.
+ See `04-ux/06-settings-ia.md`, `04-ux/07-ui-design-system.md`,
+ `04-ux/08-component-spec.md` and E2E-LAYOUT-sidebar-settings in
+ `06-delivery/04-e2e-test-plan.md`.
+
+## 2026-09-17 — A route surface stops holding a stacking context after its entrance
+
+- The plugin install consent modal — and the plugin detail sheet with it — painted
+ under the opaque 46px titlebar band, so the band was not covered by the modal's
+ scrim and the band's controls stayed clickable. A route page is authored inside
+ `.route-surface`, whose entrance animation carried
+ `animation-fill-mode: both`: the fill kept the finished entrance "in effect"
+ for as long as the page was mounted, and therefore kept the surface a stacking
+ context, so an overlay rendered inside the page could not paint above the
+ chrome.
+- `.route-surface` and `.settings-content-enter` no longer carry `forwards` /
+ `both` on their entrance (`apps/desktop/src/styles/chat-shell.css`). The
+ entrance ends on the element's own state, so the fill was redundant; without it
+ the surface stops holding a stacking context once the entrance finishes, and an
+ overlay authored inside a route page paints above the titlebar band again. The
+ keyframes stay opacity-only and the entrance still plays.
+- The plugin detail sheet keeps reserving `--ds-toolbar-height` at its top
+ (`apps/desktop/src/styles/plugins.css`), because on Windows/Linux the
+ renderer-drawn window controls own that top-right corner at `z-index: 200` and
+ stay above any overlay's z-index.
+- The plugin overlays returned to `z-dialog` (40) from their off-scale `80` and
+ `60` (`plugins.css`, and the release-notes overlay with them): once the route
+ surface stopped trapping them they competed in the root stacking context, and
+ at 80 they covered the leaf popups (60) and toasts (50) a dialog raises from
+ inside itself — the install dialog's "copied" toast among them. A source test
+ pins that relationship now.
+- Renderer only: no IPC, storage, schema, protocol, or plugin-SDK change, and no
+ new default. See `04-ux/07-ui-design-system.md` §9,
+ `apps/desktop/test/settings-dialog-overlay.test.mjs`, and
+ `06-delivery/04-e2e-test-plan.md` E2E-LAYOUT-three-column-width-priority (its
+ four overlay assertions live in `scripts/e2e-three-column-layout.mjs`).
+- Not done, and recorded as a follow-up: true modality — inertness, focus
+ containment, shortcut stand-down — needs these overlays on the browser's top
+ layer (`<dialog>.showModal()`). That is blocked until the popups, tooltips, and
+ toasts they open, which are portaled to `document.body`, also move to the top
+ layer, because top-layer content paints above them and makes them unusable; an
+ attempt was withdrawn for exactly that reason.
+
+## 2026-09-18 — Prompt enhancement ships a substantive rewrite with user-overridable templates (D447)
+
+- The default enhancement prompt moves from one conservative sentence to a
+ structured system prompt plus a templated user message: role, analysis,
+ rewrite principles, an explicit do-not list, language-following rules that
+ forbid language meta notes, a length brake (about twice the draft; no 800-character cap), and an output contract. The old
+ `If the draft is already good, return it with at most minor polish` clause is
+ removed: it made the action look inert on short drafts, which is the reported
+ complaint.
+- Two constraints the old prompt lacked are now explicit: code, commands, file
+ paths, identifiers, API names, and other proper nouns must be reproduced
+ exactly, and the answer must not open with a language meta note such as
+ "The draft is in Chinese". Both are default-value decisions, not
+ implementation details, because they change what every user receives.
+- The user template becomes an `AppSettings` override
+ (`promptEnhancementUserTemplate`) with its default in
+ `packages/shared/src/prompt-enhancement.ts`; a blank override means "use the
+ default", and editing the field back to the exact default text clears the
+ override instead of freezing a copy. Storing the default text as a user value
+ was rejected: a later improvement to the default would then never reach those
+ users.
+- The system prompt stays built in and is not user-editable. It carries rules
+ the spec and E2E scenario assert, so a stored override could silently remove
+ one; host-core drops such a value if an older build wrote it. Editing the
+ system prompt remains a source change with a spec update.
+- The user template carries `{{draft}}`. host-core rejects a non-blank user
+ template without it, and each template must stay within
+ `PROMPT_ENHANCEMENT_TEMPLATE_MAX_LENGTH`; main falls back to the default if an
+ unusable value ever reaches the runtime. One matching pair of wrapping
+ quotation marks is stripped from the model's answer.
+- The settings surface is one row with a `Use a custom template` switch and the
+ subagent rows' edit icon button, opening an editor sheet, rather than inline
+ textareas or a row of labelled actions: the AI settings tab stays compact and
+ the row reads as one control cluster. The switch, not the text, decides whether
+ a stored template applies, so turning it off preserves the user's text. It is
+ enabled only once a usable template exists and saving one turns it on, because
+ an always-enabled switch would choose between two identical states before any
+ template was written.
+- `promptEnhancementProviderId` / `promptEnhancementModelId` let the rewrite run
+ on a model other than the conversation's. An unresolvable pin falls back to
+ the Composer's current model with a warning rather than failing the action.
+- The enhancement model and reasoning level move to Settings -> Models, in a
+ dedicated `Enhancement prompt` card below Defaults, whose model row is titled
+ `Default model` like the Defaults card's row (the card heading separates them). Both are decisions about which model
+ runs the rewrite, and the model page already owns the one model picker a user
+ learns; the prompt card keeps only the prompt. The enhancement-model row reuses
+ the default-model row's anchored menu rather than introducing a second picker.
+- The enhancement reasoning row lists only the levels the selected model actually
+ supports, resolved the same way a turn resolves them (binding `thinkingLevels`,
+ then the live catalog, then the provider default), and is disabled when the
+ model supports none. An earlier revision offered the full canonical ladder
+ regardless of model, which is wrong for a model without reasoning. Switching
+ model re-clamps and rewrites the stored level, so a persisted level is always
+ runnable.
+- The enhancement reasoning level becomes configurable and defaults to `off`; it
+ never inherits the conversation's effort. A rewrite rarely benefits from
+ reasoning, and reasoning is the slow path, so "follow the session" would
+ silently opt every enhancement on a reasoning model into the slowest setting.
+ The level is clamped by the resolved model's capabilities.
+- One enhancement request is bounded by a 60-second ceiling: expiry aborts the
+ in-flight call (best-effort) and races the promise so the renderer is released,
+ then fails with `TIMEOUT` instead of retrying on the session model. The
+ provider retry budget can already spend about a minute, the renderer has no
+ cancel, and a hidden second attempt would double the wait. This is a behavior
+ change for a slow provider: the action now fails visibly instead of hanging.
+- No IPC method, process boundary, storage ownership, or security boundary
+ changes; the existing `prompt/enhance` payload is unchanged. See
+ `04-ux/12-prompt-enhancement.md` §3 and §5, ADR 0121, and
+ `06-delivery/04-e2e-test-plan.md` E2E-259.
+
+## 2026-09-19 — Restore resizable sidebar width with collapse-below-threshold (D451)
+
+- Amend D408 / ADR 0238 and restore ADR 0141: the expanded sidebar is again a
+ renderer-owned `240px..520px` column (default `275px`). The right-edge handle
+ previews width from the pointer-down position, persists on release, and
+ supports ArrowLeft/ArrowRight (16px), Home, and End. Escape, cancellation,
+ lost capture, and unmount restore the press-time width.
+- A pointer width below `160px` collapses the sidebar immediately as a user
+ action. The preferred expanded width is not overwritten. Keyboard resize never
+ collapses; `Cmd/Ctrl+B` remains the keyboard fold.
+- The live maximum is the three-column remainder after MainChat's 450px floor
+ and an occupying work panel's requested width, so a user-chosen sidebar width
+ does not trip D408's yield. Work-panel growth and window shrink still collapse
+ the expanded sidebar at that threshold.
+- Renderer only: existing `pi.desktop.sidebarWidth` preference, no IPC or native
+ window change. See ADR 0290 and E2E-168.
+
+## 2026-09-19 — MCP catalogs are bounded by protocol guards, not truncated (D452)
+
+- Amend D176 / ADR 0038: the per-server `tools/list` bound stops being a silent
+ truncation at 64 tools and 8 pages. The client now follows pagination to the
+ last page under Codex-parity protocol guards — 2048 tools, 100 pages, a cursor
+ that repeats or is malformed, and 30s for the whole traversal — and a server
+ that breaks one loses its handshake instead of contributing a prefix of its
+ catalog.
+- The cap was never the prompt's protection: MCP tools reach the model as
+ deferred on-demand entries behind `ToolSearch`, and the prompt block that
+ advertises them is capped independently, so a 300-tool server costs nothing
+ until one of its tools is activated.
+- `plugin.mcp.tools.truncated` is gone. A refusal is audited as
+ `plugin.mcp.connect` / `mcp.connect` with the guard's error code and message,
+ and reaches the user as the status message of a user-configured server.
+- See ADR 0038 and E2E-024K; `apps/desktop/test/plugin-mcp.test.mjs` covers the
+ whole catalog, each guard, and the old truncation as a failing baseline.
+
+## 2026-09-19 — The Voice settings card is removed (ADR 0291)
+
+- Settings → AI no longer carries a speech section: `VoiceSettingsCard` and
+ `features/settings/voice-settings.tsx`, the AI destination's
+ `settings.speechTitle` / `settings.speechTranscribe` / `settings.speechSynthesize`
+ search keywords, the `.settings-speech-*` styles, the thirteen
+ `settings.speech*` keys in all eight shipped locale catalogs, and the seven
+ unreferenced `chat.transcribe*` / `chat.speak*` keys written for those
+ withdrawn Composer controls are gone.
+- The host capability stays: `speech/getStatus`, `speech/transcribe`,
+ `speech/synthesize`, `AppSettings.speech` validation, the two built-in
+ protocols, the `speech.adapter.register` plugin permission, and the renderer
+ API bridge are unchanged. A binding is written by a caller through the host
+ settings API, and plugins and IPC calls are its only consumers.
+- Already withdrawn, and repaired here in the docs: ADR 0281 item 5's Composer
+ transcription and draft-speech entry point — its mic and read-aloud controls
+ were removed on 2026-09-18 (`344ef4ec2`, PR #555) — and the Composer speech
+ controls `04-ux/08-component-spec.md` §2.5 described. The copy written for them
+ is retired with them.
+- Renderer only: no IPC channel, storage schema, host RPC, permission, or Rust
+ change, and no stored binding is dropped. See ADR 0291,
+ `04-ux/06-settings-ia.md`, `03-runtime/20-speech.md`, E2E-008e.
+
+## 2026-09-19 — SSH bootstrap for remote hosts (D453)
+
+- The desktop installs and pairs a `pi-host` on a machine the user already
+ reaches over SSH using the system `ssh` client, so `~/.ssh/config`, the agent,
+ and jump hosts apply unchanged and the app holds no SSH secret; `BatchMode=yes`
+ makes a host that needs an interactive password or passphrase fail with a
+ typed error instead of hanging behind an invisible prompt.
+- The desktop resolves the bundle for the remote platform at its own version,
+ holds the SHA-256 the release publishes, and refuses an unpublished target
+ (`linux-x64` only today) before any download. The uploaded script downloads,
+ verifies, and installs the bundle under the remote `$HOME`; no executable
+ bytes cross the SSH channel.
+- The script runs under `umask 077` and echoes `PI_HOST_READY` /
+ `PI_HOST_PAIRING_TOKEN`, so the single-use pairing token exists only in a work
+ file and on the SSH channel, never in a world-readable path or a URL
+ (security §3.4). `PI_HOST_READY.version` must equal the desktop's; a mismatch
+ is `HOST_VERSION_MISMATCH` (D375) and is checked before a forward exists.
+- A paired host now stores an SSH descriptor (`metadata.transport = "ssh"`)
+ instead of a URL, because the local forward port is not stable across
+ launches; the tunnel manager re-establishes `ssh -N -L` on every launch and
+ adopts the bootstrap's own live forward so pairing opens exactly one tunnel.
+ The descriptor is re-validated on every registry read, and a malformed one
+ degrades to "not an SSH host" rather than spawning `ssh` with garbage
+ arguments.
+- `pi-desktop/remoteHost/bootstrap` joins `list` / `pair` / `remove`, and the
+ `connection/pair` exchange was factored into one `exchangePairingToken` used
+ by the pasted-URL path and the bootstrap path alike.
+- Not in this slice: the terminal work-panel client (Stage 5), the reverse tool
+ relay (Stage 6), the resync watchdog, non-Linux and Windows remote targets,
+ and provider configuration over the SSH channel — a freshly bootstrapped host
+ still fails `turn/start` closed with `MODEL_NOT_CONFIGURED` until a provider is
+ configured on it. See ADR 0292, `06-delivery/07-remote-control-rollout.md` §7,
+ and `05-security/02-remote-control-security.md` §3.4.
+
+## 2026-09-19 — SSH password authentication for the bootstrap (D454)
+
+- ADR 0292 kept the app free of SSH secrets and made `BatchMode=yes` the
+ enforcer, which is the right default but leaves a machine whose only
+ credential is a password unreachable from the app — the user has to install a
+ key from a terminal first, which is the detour the bootstrap exists to
+ remove. A password may now be supplied *instead of* a key, per host, and it
+ is opt-in: with no password the argv and every other behaviour are unchanged.
+- The secret reaches the `ssh` client through OpenSSH's askpass helper
+ (`remote/ssh-askpass.ts`): `SSH_ASKPASS` points at a generated `/bin/sh`
+ script and `SSH_ASKPASS_REQUIRE=force` makes it apply without a terminal, so
+ the password is never an `ssh` argument or an environment value. Its
+ confidentiality rests on modes — a `0700` directory, a `0600` secret, a `0700`
+ helper — and the material is deleted once no child can still be prompting
+ (after an exec child closes, after a forward's port is up, or on `dispose`),
+ so nothing lingers between operations.
+- `BatchMode=yes` becomes `BatchMode=no` only for a password target, together
+ with `NumberOfPasswordPrompts=1` and `PubkeyAuthentication=no`: the helper
+ answers every prompt with the same secret, so a retry could only repeat a
+ wrong password, and repeated failures are what trip a server's own lockout.
+ Default identities are skipped so an encrypted local key cannot consume that
+ single prompt as a passphrase; password mode in Settings replaces a key.
+- The password is persisted encrypted through the same OS-keychain
+ `EncryptionPort` the device token uses, as a new optional
+ `encryptedSshSecret` in `remote-hosts.json`; the descriptor gains
+ `auth: "password"` and nothing else, so a key descriptor keeps exactly its
+ previous shape and the file's `version` stays `1`. A password that will not
+ decrypt costs the secret, not the paired host, because the device token is
+ independent of it.
+- The renderer never sees it: `RemoteHostSummary` is unchanged and the secret
+ travels beside `RemoteHostSshMetadata` (plaintext, persisted metadata) rather
+ than inside it. `assertSshPassword` rejects a line break with
+ `INVALID_ARGUMENT` before any remote command runs, because OpenSSH reads the
+ helper's answer only up to the first break; Windows is refused with
+ `HOST_BOOTSTRAP_FAILED` and a remedy, because its OpenSSH cannot execute a
+ shell-script helper. A host recorded as password-authenticated with no usable
+ secret is not opened at all, which surfaces as the host being offline.
+- Settings gains an authentication mode on the SSH form with a masked password
+ field and a reveal toggle, and the copy that promised no password was ever
+ stored is replaced in all eight shipped locales. See ADR 0293,
+ `05-security/02-remote-control-security.md` §3.4 and gate 21,
+ `02-architecture/05-remote-agent-control.md` §5.2,
+ E2E-REMOTE-HOST-ssh-password-authentication.
+
+## 2026-09-20 — Project archive is a list + inspector (D455)
+
+- Decision D455 revises D267's expanding rows for Settings → Project archive.
+ The quiet intro and toolbar stay; the single expanding list becomes compact
+ rows with a full-width inspector under the selected row (ADR 0294).
+- Clicking a row selects it and keeps Settings open. Double-click, Enter, or
+ the inspector Open action activates the project and returns to chat. Archive
+ and close still keep the destination open (D133 / D267).
+- Folders, chats (latest first, batches of eight), and the existing menu live
+ in the inspector. Archived records stay grouped and visible.
+- Presentation only: no IPC, storage, or host protocol change. See
+ `04-ux/06-settings-ia.md` and E2E-038.
+
+## 2026-09-20 — Prompt-enhancement model card moves to Settings → AI
+
+- Amend ADR 0121 and the 2026-09-18 D447 placement: the Enhancement prompt card
+ (default model + reasoning) leaves Settings → Models and sits on Settings → AI
+ immediately below Prompt enhancement, so the template and the rewrite model for
+ the same Composer action live on one destination. The card keeps its own title
+ because the model picker still needs title / current value / control. Settings
+ search indexes those rows on the AI tab. Presentation only: no IPC, storage, or
+ host-protocol change. See `04-ux/06-settings-ia.md` and
+ `04-ux/12-prompt-enhancement.md` §5.
+
+## 2026-09-20 — Prompt enhancement is one Settings → AI card
+
+- Amend the same-day two-card placement: the Enhancement prompt card is folded
+ into Prompt enhancement on Settings → AI. The custom-template switch, default
+ model, and reasoning rows share one heading. Settings search still indexes
+ `promptEnhancementModelTitle` so "增强提示词" finds the AI tab. Presentation
+ only: no IPC, storage, or host-protocol change.
+
+## 2026-09-20 — Session thinking-parameter omission (D456)
+
+- Composer, session storage, and host validation accept `thinkingLevel: omit`
+ next to the seven canonical levels. Binding chips and catalog capability
+ lists stay canonical; `omit` is a client selector, not a published level.
+- Runtime clamping keeps `omit` on a reasoning model. Agent bookkeeping stays
+ `off` and the parent stream uses the same low-level omit path as subagents,
+ so adapters send no thinking field. Explicit `off` still disables thinking.
+- The Composer reasoning menu prepends `omit` whenever the selected model
+ exposes enabled canonical levels, and the chip renders the canonical string.
+ Schema v19 rebuilds `sessions` so the CHECK includes `omit`.
+ See ADR 0295 and E2E-203a.
+
+## 2026-09-19 — Drain poison outbox entries; accept steering into a delivery turn (D597)
+
+- Decision D597 amends ADR 0041, ADR 0239, ADR active-turn-steering, and D444.
+ A host append whose error message carries a `PERMISSION_DENIED:` prefix is a
+ permanent, message-level rejection. The Electron outbox drops that row and
+ keeps draining so one poison head cannot fill the 1024-entry cap. Substring
+ matches such as `PLUGIN_PERMISSION_DENIED` still pause, as do other host
+ failures.
+- Steering into a claimed collaboration delivery turn is extra human input in
+ that session. It is exempt from the delivery content/attachment contract, does
+ not inherit the delivery's agent origin, and has any client-supplied
+ `session_message` stripped. Steering that names another session is still
+ `PERMISSION_DENIED`.
+- See `03-runtime/04-data-storage.md`, `03-runtime/06-host-rpc-protocol.md`,
+ E2E-SESSION-outbox-poison-does-not-drop-history.
+
+## 2026-09-20 — Project archive reads as an inset grouped card list
+
+- Revise D455's presentation only: the destination stays one column with the
+ detail under the selected row and no side-by-side pane, but the index is now
+ an inset grouped list in the iOS sense. Each row reads left to right as
+ identity (color glyph, name, one status tag, shortened monospace path) and
+ right to left as detail (session count, relative last-active time, disclosure
+ indicator). Rows stay tiles separated by the row gap, never by rules.
+- The selected row is the header of its own card, so the detail panel repeats no
+ name, path, or status tag: it opens with an action bar (New task, Open while
+ the project is not the live workspace, overflow menu), then the read-only
+ folder and branch facts and the sessions count, then the chats. The overflow
+ menu keeps its items, its ordering, and its two-step delete.
+- Arrow-key selection walks the rendered order (section order with the active
+ sort) instead of the index build order and moves real focus to the row it
+ selected, and the handler yields to the open card so Enter inside the detail
+ stays that control's own action. Row element ids are encoded, so two paths
+ that differ only in separators can no longer collide. An empty index shows the
+ pending indicator until the host listing settles instead of "no projects yet",
+ and the expanded card and the disclosure indicator honor reduced motion.
+- Clicking the row whose card is open closes it again, through one shared
+ toggle. Selection and the open card are separate states, so the current row
+ keeps its ring while its card is closed and the disclosure indicator turns
+ down only while the card is really open. Moving the selection with the arrow
+ keys always opens the row it landed on.
+ Presentation only: no IPC, storage, host-protocol, or
+ activation-semantics change. See `04-ux/06-settings-ia.md`,
+ `04-ux/07-ui-design-system.md`, and ADR 0294.
+
+## 2026-09-20 — Project archive opens closed and keeps no page-level prose
+
+- The destination renders no description line: the toolbar is the first thing
+ under the page title, the same shape as the agent capability and Import
+ destinations. The `project.archiveSubtitle` key is retired from every catalog
+ rather than left behind unused.
+- Nothing is expanded until the user clicks a row. Selection and the open card
+ were two states; they collapse into one, so a closed index highlights nothing,
+ `aria-expanded` and the rotating disclosure indicator describe the open card
+ only, and a row whose project leaves the list (a search that no longer matches
+ it) closes with it. `resolveSelectedPath`, which always resolved a selection
+ (the live workspace first, then the first row), is removed together with the
+ auto-expansion it existed to serve.
+- Presentation only: no IPC, storage, host-protocol, or activation-semantics
+ change. Search still matches session titles and keeps the owning project in
+ the index. See `04-ux/06-settings-ia.md`.
++
++## 2026-09-20 — The menu root carries the reasoning slider (#417, D458)
+
+ - The Composer's Reasoning level selection lived only inside a vertical radio
+ list one submenu deep. Issue #417 asked for a Codex-desktop-style slider
+ while keeping the existing click-to-list interaction.
+ - The combined model × reasoning menu root now shows a native range input with
+ one stop per enabled level plus a clickable tick label per stop, directly
+ beneath the Reasoning level entry. Dragging the slider or clicking a tick
+ commits the level immediately through the same `configureActiveSession`
+ path and leaves the menu where it is, so quick adjustments never cost a
+ submenu trip. The Reasoning level entry itself still opens the classic
+ radio list, which keeps its radio semantics, trailing check,
+ Up/Down/Enter/Left contract, and root-return behavior.
+ - The slider owns its arrow/Home/End/Enter keys while focused, so those keys
+ adjust the level instead of driving menu navigation, while Escape still
+ closes the menu. A drag can emit one commit per crossed stop, so commits
+ serialize behind a promise chain and a local drag lead keeps the controlled
+ input from snapping back while the store confirmation lands; a binding with
+ a single enabled level hides the slider entirely.
-- Level values remain untranslated canonical strings, and the seven-level
- ladder, provider filtering, and clamping rules are unchanged. Renderer only:
- no protocol, storage, host, permission, or migration change. See
- `04-ux/08-component-spec.md`, `04-ux/07-ui-design-system.md`, and E2E-050.
++- Level values remain untranslated canonical strings, including session
++ `omit` (D456) when the binding exposes enabled canonical levels. The
++ seven-level ladder, provider filtering, and clamping rules are unchanged.
++ Renderer only: no protocol, storage, host, permission, or migration change.
++ See `04-ux/08-component-spec.md`, `04-ux/07-ui-design-system.md`, and E2E-050.
diff --cc docs/zh-CN/spec/08-meta/decisions-log.md
index 780747edd,5797416d2..dcee6cf7b
--- a/docs/zh-CN/spec/08-meta/decisions-log.md
+++ b/docs/zh-CN/spec/08-meta/decisions-log.md
@@@ -4245,292 -4213,9 +4245,299 @@@ that amendment are retired by ADR 0268
- 权限、realpath 包含、拒绝名单、声明范围与运行时同意这四类闸门都没有改动,插件 API 表面也未变化:`pi.workspace.get` 仍然以可见工作区及其项目组作答。
- 见 ADR 0266、`07-plugins/03-plugin-api.md` §3、`07-plugins/13-plugin-permissions-matrix.md` §6 与 E2E-PLUGIN-fs-root-follows-the-calling-session。
-## 2026-09-16 —— 菜单根层直接承载推理滑块(#417,D433)
+## 2026-09-16 —— 引用、批注与侧边聊天已移除(ADR 0268)
+
+- 引用、文本选区浮层、响应批注(评论编辑器、悬浮批注索引、源标记、composer 批注附件)与渲染器拥有的侧边聊天已从所有界面移除。消息操作行保留 Copy、Edit、Delete、Fork、Retry 与 Regenerate;composer 保留草稿、芯片、智能 Stop 与会话级草稿槽;工作面板保留其余标签类型;`session.fork` 与 Fork 操作不变。
+- 发送路径不再拼装 `# Response annotations:` 块,显示层还原函数 `requestTextWithoutAnnotations` 一并删除,因此移除之前已存入会话的提示词在转录、编辑种子与队列预览中都按存储原文显示。
+- 永久退役且不得复用:`D-LOCAL-message-quotes`、`D-LOCAL-selection-overlay`、`D-LOCAL-response-annotations`、`D-native-sidechat-stream`,以及 E2E-CHAT-quote-prefill、E2E-CHAT-selection-markdown、E2E-CHAT-selection-side-chat、E2E-CHAT-annotation-attachments、E2E-CHAT-annotation-session-state、E2E-CHAT-annotation-source-index、E2E-CHAT-annotation-ack-and-steering、E2E-CHAT-side-chat-fork、E2E-CHAT-side-chat-stream、E2E-CHAT-side-chat-add-to-main、E2E-CHAT-side-chat-promote、E2E-CHAT-side-chat-close、E2E-SESSION-native-side-chat-fork-survives-close。
+- 未改动宿主协议(v11)、存储 schema(v15)、IPC 通道、权限与 Rust 侧。见 ADR 0268。
+
+## 2026-09-16 —— 没有文字的控件声明自己的正方形几何
+
+- `.icon-btn` 与带文字的胶囊按钮共用,宽度来自内容 —— 图形加左右各 8px 内边距。于是每一处只有图标的使用都变成了"高大于宽":侧边栏收起控件与输入框的添加按钮渲染为 31×28,`.composer-right` 内的增强与撤销控件为 35×28,设置里的服务商操作按钮因 14px 图形而为 30×28。同一个功能在会话顶栏早就是 28×28 的正方形,也就是同一个功能存在两种尺寸。
+- 这些控件现在声明 `.icon-btn-square`:把两个轴都固定到新增的 `--ds-control-size`(28px)标记,保留 `flex: 0 0` 以免拥挤的工具条把控件压回非正方形,并去掉侧向内边距(在全局 `border-box` 下,那会给 15px 的图形只留 12px 内容区)。只有图标的控件现在与顶栏开关、工作面板操作、发送/停止控件一直以来的正方形保持一致。
+- `.composer-right .icon-btn` 不再设置水平内边距。带文字的模型/思考胶囊自己用 `!important` 设置内边距,所以那条声明只会把它旁边的纯图标控件撑宽;增强控件在加载态仍保留自己的带文字几何。
+- 仅渲染层:无协议、存储、宿主、权限或迁移改动。见 `04-ux/07-ui-design-system.md` §11.1 与 `04-ux/08-component-spec.md` §3.7。
+
+## 2026-09-16 —— 每个 chrome 图标控件共用一套几何
+
+- 预览态与路由带上的动作按钮(`.title-nav-btn`)此前渲染为 22px 的方块,使用 `--radius-2xs` 与 `--ds-tile` 底色,而它们的同级控件是 28px:会话顶栏里同一个侧边栏开关、视口固定的工作面板开关,以及工作面板自身的操作。同一个控件、同一个 46px 带内,却有两种尺寸和两种形状。
+- 这些动作按钮现在采用共享的 chrome 控件几何(`.ct-icon-btn` 组):由 `--ds-work-panel-toggle-size` 得到的 28px 正方形、`flex: 0 0` 以免拥挤的带把它们挤扁、`--radius-md`、透明底座加语义化 hover 底色,以及其它 chrome 控件统一使用的 15px 图形。`.title-nav-btn` 只保留按压反馈与 active 色调。
+- 预览态动作组的车道宽度改为由它所预留的控件推导:`--ds-preview-action-lane-width: calc(2 * var(--ds-work-panel-toggle-size) + 4px + 8px)`,这样面板头部的预留与按钮本身不会再各自漂移。
+- 仅渲染层:无协议、存储、宿主、权限或迁移改动。见 `04-ux/08-component-spec.md` §2。
+
+## 2026-09-16 —— macOS 交通灯预留量只有一个来源(D433)
+
+- 渲染层为 macOS 交通灯留出的窗口模式引导内缩,原本是一个手抄的 `76px`:散在 `apps/desktop/src/styles/chrome.css` 与 `apps/desktop/src/styles/work-panel.css` 里的五处声明 —— `.main-titlebar-left`(`64px`,即该值减去行自身的 12px 内边距)、`.conversation-topbar.ct-collapsed`(`--ct-lead-inset`)、`.sidebar-header`、`.window-chrome-row:not(.sidebar-expanded)`,以及预览态的 `.work-panel-header`(`calc(76px + var(--ds-preview-action-lane-width))`)—— 每一处还各有一个 `[data-fullscreen="true"]` 分身。它们谁都没有和主进程交给 Electron 的 `trafficLightPosition` 建立关联,因此任一侧单独改动都会与另一侧漂移。
+- 原生几何现在只有一个归属地 `packages/shared/src/window-chrome.ts`:`MAC_TRAFFIC_LIGHT_POSITION`(`{x:16,y:16}`)与 `MAC_TRAFFIC_LIGHT_CLUSTER_WIDTH_DIP`(`60`),并由 `MAC_TRAFFIC_LIGHT_EDGE_DIP`(`16 + 60 = 76`)给出灯簇右缘。主进程用这些常量放置按钮,渲染层在启动时把右缘注入 `--ds-traffic-light-edge`。所有消费点都读 `--ds-window-lead-inset`,它由 `chrome.css` 针对 `:root[data-platform="darwin"]` 组合一次:`--ds-traffic-light-edge` + `--ds-traffic-light-gap`(`12px`)= `88px`。
+- 按钮此前紧贴绿灯右缘,间隙为 0。现在灯簇右缘与第一个 shell 控件之间保留了 `12px` 呼吸空间,这也是窗口模式从 `76px` 变为 `88px` 的原因。
+- 逐个选择器的 `[data-fullscreen="true"]` 覆盖规则已删除。全屏会隐藏按钮,同一个 token 的 `[data-fullscreen="true"]` 规则一次性把所有消费点的预留量降为普通的 `8px` 留白。
+- Windows 与 Linux 行为不变:`--ds-window-lead-inset` 保持 `0px` 默认值,这两个平台仍使用右侧 120px 带内由渲染层绘制的控件。插件面板窗口创建的是普通无框架 `BrowserWindow`,没有原生交通灯,因此不受影响。
+- 仅渲染层 + 共享常量:无协议、存储、宿主、权限或迁移改动,也没有新增默认值。
+- 见 `04-ux/08-component-spec.md`、`04-ux/09-interaction-patterns.md` 与 E2E-LAYOUT-three-column-width-priority。
+
+## 2026-09-16 —— 工作面板头部的按钮现在是一组
+
+- 工作面板头部此前读起来是两簇:头部内部的动作组(`+` 与最大化,相距 4px),以及头部之外视口固定的折叠开关。它们之间的分隔由 `.work-panel-actions` 上的四条声明叠加而成 —— `margin-right: 8px`、`padding-right: 8px`、1px 的 `--ds-border-subtle` 分隔线,以及另一个车道 token `--ds-work-panel-toggle-gap: 20px` —— 实际间距 37px 外加一条细线,于是同一个 46px 行内同样的三个 28px 方块看起来像两簇毫不相干的控件。
+- 现在整行由同一个 token 控制间距。`--ds-work-panel-control-gap: 4px` 取代了 `--ds-work-panel-toggle-gap`,同时是头部的 flex 间距(标签条到动作组)、`.work-panel-actions` 的间距(`+` 到最大化),以及头部右侧内边距以 `calc(size + inset + control-gap)`(44px)形式花费的、动作组到固定折叠开关的间距。`.work-panel-actions` 只声明间距:分隔线、内缩与外边距都已移除。
+- 车道仍然为整个开关预留空间,`+` 触发按钮在车道内与开关之间仍有 36px(4px + 28px 的最大化控件 + 4px),因此 `WORK_PANEL_HEADER_PROBE` 的 24px 断言与 E2E-152 的命中区域契约依然成立。
+- 仅渲染层:无协议、存储、宿主、权限或迁移改动,也没有新增默认值。见 `04-ux/08-component-spec.md` §5.2、`04-ux/07-ui-design-system.md` §4.3 与 E2E-LAYOUT-three-column-width-priority。
+
+## 2026-09-16 —— 工作面板的控件是安静的图标,而不是填充的底座
+
+- 工作面板头部的 `+` 与最大化控件此前各有一个 `--ds-tile` 底座,视口固定的折叠开关在 `aria-pressed="true"` 时又叠加 `--ds-tile-deep` 与 `--ds-raised-shadow`。在浅色主题下,这一行三个 28px 控件读起来就是三个填充方块,开关更像一颗悬浮在面板头部之上的抬升圆形胶囊 —— 与旁边左上角的侧边栏开关、新任务控件完全不是同一种语言。
+- `+` 与最大化现在加入 `chrome.css` 中的共享 chrome 控件组 —— 也就是为顶栏侧边栏开关、视口固定的面板开关与预览态/路由带动作组提供底座的同一条规则 —— 因此它们共用一套几何(28px 方形、`--radius-md`、`flex: 0 0`)、同一个透明底座、指针悬停时的语义化 `--ds-bg-hover` 淡色,以及 `opacity: 0.4` 的禁用状态。它们在 `work-panel.css` 中重复的规则已删除,该分部只保留动作组的间距。
+- 开关的按下状态去掉填充与抬升阴影,保留被激活的墨色,因此打开状态就是图形切换加 `--ds-text-primary`。`aria-pressed` 仍向辅助技术传达状态,`.app-work-panel-toggle` 继续拥有视口固定定位与 `no-drag` 排除区。
+- 键盘焦点不变:全局 `:focus-visible` 轮廓与其他 chrome 图标控件一致地生效,因此移除已废弃的 `:focus-visible` 背景淡色不会损失任何焦点提示。
+- 仅渲染层:几何、间距、内缩、协议、存储、宿主、权限与迁移均无改动,也没有新增 token。见 `04-ux/08-component-spec.md` §2.3 与 §5.2、`04-ux/07-ui-design-system.md` §4.3 与 E2E-LAYOUT-three-column-width-priority。
+
+## 2026-09-17 —— 内置子智能体可以关闭(D434)
+
+- 设置 > 智能体 > 子智能体把五个随应用发布的默认项列为只读行,而用户自建的文档带启用开关,于是有一个委派对象完全无法关闭:复制一个内置项再停用副本,随应用发布的定义仍留在目录里,因为被停用的用户文档在加载器合并前就被过滤掉,也就没有遮蔽任何东西。
+- 每个内置行现在都带同一个开关。句柄存放在 `<data>/agent-capabilities/subagent-builtins.json` —— 一个独立文件,因为用户文档扫描会清理它永远看不到的 id 的状态 —— 并由 host-core 通过 `agents.disabledBuiltins` / `agents.setBuiltinEnabled` 暴露。Electron 主进程把被关闭的句柄交给 `loadSubagentDefinitions`,由它把它们从委派目录中剔除,而 `subagent/catalog` 仍会在其新增的 `builtins` 列表中返回该内置项,并标记 `enabled: false`。
+- 被关闭的内置项保留自己的行并变暗,因此这个开关就是重新打开的入口。同名的用户文档继续生效并继续遮蔽随应用发布的定义,在文件夹中显示与删除仍然没有,因为内置不是文件;宿主不可用时也不会贡献任何排除项。见 ADR 0270、`04-ux/06-settings-ia.md` §2、`03-runtime/01-ipc-protocol.md` §12c 与 E2E-SUBAGENT-settings-lists-builtin-defaults。
+
+## 2026-09-17 —— 按请求实际会走的线路判定公网地址(D436)
+
+- 技能市场的主进程守卫此前用*本地*解析器判定目标主机,而 `net.fetch` 走的是 Chromium 的代理栈(ADR 0177)。在 TUN / fake-IP 解析器下,那个答案是应用永远不会建立的连接的合成地址(`198.18.0.0/15`),于是每个目录源都被判为「被应用的地址校验阻止」(issue #419)。
+- 现在每一跳都向承载 `net.fetch` 的会话询问它自己的判定(`Session.resolveProxy`),共享的 `classifyProxyRoute` 把该答案归为 `proxied` / `direct` / `unknown`。在 `proxied` 线路上,`isAcceptableResolvedAddress` 只容忍解析器自身产物的那一类(`benchmark`);所有真实内网类别与「解析器没有应答」仍然拒绝。`direct` 线路与改动前逐字一致;列表里任何位置出现 `DIRECT` 都按 `unknown` 处理(Chromium 可能回退到它),而 `unknown` 走严格路径。
+- 拒绝与市场的 `failureDetails` 现在都带 `route`,因此「直连线路上的 fake-IP 拒绝」与「读不出线路的拒绝」在诊断里可以区分。
+- MCP 市场仍使用自己的地址钉定 Node HTTPS 守卫(ADR 0245),本次不变;fake-IP 环境下它的源仍会被拒绝。
+- 见 ADR 0272、`05-security/01-security.md` §4.1、`03-runtime/09-logging-and-observability.md` 与 `06-delivery/04-e2e-test-plan.md` 的 E2E-SKILL-MARKET-NET-BOUNDARY。
+
+## 2026-09-17 —— dock 内的问题卡是 composer 板(#360,D437)
+
+- asktool 问题卡挂在透明的 composer dock 里(`Composer.tsx` 把它渲染为 `.composer-stack` 的直接子节点,成绩单内的挂载已移除),但它仍在绘制流动层的 `--ds-tile` 洗色:3.5% 墨色混合、没有阴影。在浅色页面上这留下一块 `#f7f7f7` 面板加白色选项行,紧邻下方的 composer 板 —— 这正是 #360 第 1 项(“选择交互面板缺少背景色”)读到的样子。该 dock 规则自己的注释早已声称这张卡“使用与 Plan/Goal 批准相同的决策表面”,而同一槽位里的 `.plan-approval-bar` 绘制的是 `--ds-bg-composer` 加 `--ds-shadow-composer`(`04-ux/03-permission-ux.md` §9、`04-ux/08-component-spec.md` §11.5)。
+- `.composer-stack > .asktool-card` 现在绘制那块板:`--ds-bg-composer` 加 `--ds-shadow-composer`(浅色 `#ffffff`,深色 `color-mix(in oklab, #212121 96%, transparent)` 配合 composer 阴影)。
+- 它的控件移到该板的内嵌层 —— 也就是 `.plan-approval-split` 在同一块板上已经使用的层:`.asktool-option` 与 `.asktool-custom-input` 去掉 `--ds-raised` 与 `--ds-raised-shadow`,改用 `--ds-tile-deep`,悬停/选中混合也以 `--ds-tile-deep` 为基底。不做这次翻转,浅色主题下选项行会白上加白,因为该调色板里 `--ds-raised` 与 `--ds-bg-composer` 都是 `#ffffff`。15 px 的选项标记保留 `--ds-tile-deep` —— 与侧边栏复选框同一枚标记 —— 它与内嵌行之间的对比,和它与侧边栏之间的对比完全一致。
+- 仅渲染层:无协议、存储、宿主、权限、迁移或偏好改动,也没有新增默认值。两层在两种调色板里都是既有 token,因此贡献主题可以分别用 `--ds-bg-composer` / `--ds-tile-deep` 移动板与行。见 `04-ux/11-asktool-question-card.md`、`04-ux/07-ui-design-system.md` §6.4 与 E2E-078。
+
+## 2026-09-17 —— 呼出与隐藏窗口合并为一个开关键(#360,D438)
+
+- issue #360 第 3 项要求把「呼出窗口」与「隐藏/关闭窗口」两个全局快捷键合并成一个键。
+ D384 当年给的恰好是相反的安排 —— `summonWindow`(`Mod+Shift+W`)作为
+ `closeWindow`(`Mod+W`)的「对称键」,并由 `04-ux/09-interaction-patterns.md` §1.1
+ 记载 —— 因此 D438 取代 D384 的这一半;同一条决策里的插件 Plan 安全动作选项不受影响。
+ 编号跳过 D435 与 D437,因为其它在途工作已先占用。
+- 快捷键目录现在只保留 `window` 组里的一个 `toggleWindow`;`closeWindow` 与
+ `summonWindow` 已从 `KEYBOARD_SHORTCUT_IDS` 移除,因此两个退役组合键都不再被任何
+ 东西占用:它们既不是随应用发布的默认值,也不会注册到 `globalShortcut`,既不是设置行,
+ 也不是菜单加速键,而被释放出来的 `Mod+Shift+W` 可以重新交给插件使用。D439 后来把
+ 开关键自己的默认值从 D438 选的 `Mod+W` 挪开;合并后的 id、切换语义与下面的迁移规则
+ 都不受这次改键影响。
+- 按下这个键是一次判定,而不是一次关闭。`windowToggleAction` 对可见且在前台的窗口执行
+ `Window.hide()`,其余情况显示并获得焦点(已隐藏、已最小化、被其它应用挡在后面都算
+ 「不可见」)。`Window.hide()` 就是隐藏的全部路径,所以 Windows/Linux 的关闭行为询问、
+ 其中的「退出」选项、`window-all-closed` 与 `before-quit` 都不会被触达,没有窗口被销毁,
+ 应用继续运行;托盘图标、同一个键或 macOS 的应用激活都能把窗口调回来。
+ `windowControl("close")` 仍是窗口自己的关闭按钮,依旧走关闭行为。
+- 已持久化的 `settings.keybindings` 仍可能写着这两个已退役的 id,两个进程遵循同一条规则:
+ `migrateKeybindingOverrides` 在读取时就折叠映射 —— Electron 主进程在注册加速键和构建
+ 菜单之前,渲染层 store 在任何消费方看到它之前 —— 因此没有任何表面会按退役 id 行事。
+ 规则有序且幂等:已存在的 `toggleWindow` 覆盖原样胜出;否则第一个带*绑定值*的退役项胜出,
+ `closeWindow` 优先,因为隐藏才是开关键的主要职责;只有在没有绑定值竞争时,
+ 仅写入 `null` 的退役项才被尊重,所以明确的「未绑定」不会被随应用发布的默认值顶替;
+ 与自身退役默认值相同的存储值不携带任何意图(设置界面会删除等于发布默认值的覆盖项),
+ 因此 `Mod+W`/`Mod+Shift+W` 这类值会被丢弃而不是被复活。存储本身不做改写:折叠后的映射
+ 由下一次快捷键保存写入,旧版本读到新映射时只是忽略不认识的 id。
+- 窗口可见性键在 macOS、Windows 与 Linux 上都是受支持的全局快捷键,因此按一个键来记录:
+ 菜单标签与设置行在全部八套语言包里本地化,快捷键卡片显示唯一的一行「窗口」,
+ 而不是两行互相矛盾的行。
+- 见 ADR 0211(已修订)、`04-ux/09-interaction-patterns.md` §1.1 与 §1.4、
+ `04-ux/06-settings-ia.md`(快捷键选项卡)、`07-plugins/03-plugin-api.md`、
+ `07-plugins/04-plugin-security.md`、`03-runtime/01-ipc-protocol.md`
+ (`NATIVE_MENU_ACTIONS`)、E2E-072 与
+ `apps/desktop/test/window-toggle-shortcut.test.mjs`。
+
+## 2026-09-17 — Git 检出成为新建项目的来源(D438)
+
+- 新建项目对话框此前只收集项目名称与本地文件夹(ADR 0233),而首页「克隆 Git 项目」入口只在绑定项目的会话 hero 中渲染。全新安装因此必须先打开一个无关的本地文件夹才能克隆仓库。
+- 对话框现在拥有两种对等来源:此电脑与 Git 仓库。Git 来源保留同一个名称字段(在用户输入前用仓库名预填),增加仓库地址输入框和一个克隆保存位置行,并复用切换器的 `parseGitCloneUrl` 规则,因此私网、回环、链路本地、带凭据与非法远程都会让创建按钮保持禁用(ADR 0247)。
+- 主进程新增可加的 `project/cloneCheckout({ url, parentPath })`:它克隆到显式指定的父目录并返回 `{ path, name }`,不更改当前工作空间、也不弹出选择器。`project/clone` 为首页切换器保留原有的原生选择器行为。
+- 项目创建语义不变:两种来源调用同一个项目 slice 助手,`project-group/create` 仍写入唯一的持久记录,检出目录成为同一逻辑项目组的主要根(ADR 0233)。
+- 渲染器加一条窄的主进程能力:协议、schema、host RPC、权限、存储与偏好均无变化。见 ADR 0273、`03-runtime/01-ipc-protocol.md` §9、`04-ux/08-component-spec.md` 与 E2E-258。
+
+## 2026-09-16 —— 可拖拽的对话内容宽度(D439)
+
+- 居中的对话带、空首页和输入框共用一个首选最大宽度,默认 760px,持久化为
+ `AppSettings.chatContentMaxWidth`。左右边缘各一条手柄(静止不可见;悬停显示短胶囊,拖拽时略加长加深)同步改这个宽度,列保持居中。拖拽下限 560px。
+
+- 实际宽度是 `min(可用窗格减去两侧 24px, 首选值)`,侧栏或工作区挤压时自适应压缩,不改写偏好。收起侧栏不再把内容带到 640px。
+- 助手/工具/决策行跟随内容带;用户气泡仍是 `min(82%, 600px)`。仅渲染器。见 ADR 0277、E2E-208、E2E-CHAT-content-width-handles。
+
+## 2026-09-17 —— 窗口开关键避开 macOS 的关闭窗口组合键(#360,D439)
+
+- D438 把两个键合并到了 `Mod+W`,但这个键不能作为*系统级*全局加速键的默认值:
+ macOS 把 `Cmd+W` 用于自己的「关闭窗口」命令,全局占用它等于从所有其它应用程序
+ 手里把这个组合键抢走,而不只是关闭本窗口。因此 `Mod+W` 正是开关键唯一不能持有的键。
+- 快捷键目录现在把 `toggleWindow` 发布在 `Alt+Shift+W` 上 —— 不含平台修饰键,因此在
+ macOS、Windows 与 Linux 上是同一个组合键 —— 它与任何发布默认值、保留的编辑组合键
+ 以及平台命令都不冲突。合并本身、隐藏/显示语义、以及退役的
+ `closeWindow`/`summonWindow` 覆盖项的折叠规则,完全保持 D438 定义的样子。
+- 在 macOS 上 `Mod+W` 现在也拒绝交给插件(`isReservedKeybinding`),因此即使应用不再
+ 使用它,平台仍然独占它自己的这个组合键。
+- 只重复「本版本发布默认值」或「已被取代的默认值」的 `toggleWindow` 存储值不携带用户
+ 意图,折叠时会丢弃:曾经持久化过那个短命 `Mod+W` 默认值的配置会迁移到
+ `Alt+Shift+W`,而不是把 macOS 的组合键冻结住;真实改绑(`Ctrl+Alt+T`)与明确的
+ 「未绑定」(`null`)原样保留,退役项的自定义值也仍然优先于被丢弃的旧默认值。
+- 编号取 D439,因为 D435 与 D437 已被其它在途工作占用。**注意**:本日志当前有两处
+ `D438` —— 本文件上方的窗口开关键合并决策(#360,重绑前)与紧随其后的 Git 检出决策
+ (ADR 0273)。后者是在开关键 D438 合入之后才追加的,编号需要由其作者改到 D440 或
+ 之后的可用号;本条不代为改写他人决策正文。
+- 见 ADR 0211(再次修订)、`04-ux/09-interaction-patterns.md` §1.1 与 §1.4、
+ `04-ux/06-settings-ia.md`(快捷键选项卡)、`07-plugins/03-plugin-api.md`、
+ `07-plugins/04-plugin-security.md`、E2E-072 与
+ `apps/desktop/test/window-toggle-shortcut.test.mjs`。
+
+## 2026-09-17 —— 会话与项目行在第二次点击时才删除(D441)
+
+- 侧边栏的会话菜单项与两个项目菜单(侧边栏与项目索引)此前在第一次点击「删除」时就移除该行。应用内其他所有破坏性行操作 —— 设置里的模型服务行、厂商账户行以及能力表格 —— 都先武装再改写控件标签,于是最不能撤销的两个动作反而是唯一单击即生效的。
+- 这一模式现在由 `hooks/use-armed-delete.ts` 为整个渲染层拥有:同一个 `ARMED_DELETE_MS`(3200ms)失效时间与同一个 `useArmedDelete()`。能力页面继续从 `AgentCapabilityLayout` 导入它,而该布局改为再导出这个共享 hook,不再保留一份带自己超时的副本,因此这一模式不会在设置行与两个菜单之间漂移。
+- 会话菜单项以 `session.id` 作为武装键;两个项目菜单则以 `project:` 前缀的键武装,因此会话与项目永远不会共用一次武装。被武装的菜单项带 `data-armed="true"`、危险色淡底,并在八种语言里都把标签换成 `nav.deleteTaskConfirm` / `project.deleteMenuConfirm`("Delete?" / "确认删除?")。两次点击之间菜单保持打开;点击外部、按 Escape 或武装超时都会解除武装且不移除任何内容。
+- 这是对 D431 在空闲场景下的修订:仍有运行中轮次的项目依然打开 `ProjectDeleteDialog`,由它指明这些会话并先停止它们再删除;宿主的 1008 / `CONFLICT` 拒绝在两条路径上仍映射为 `project.deleteRunningBlocked`。没有运行中轮次的项目由对话框原本使用的同一个 store 动作移除,并发出同样的成功 toast,因此它的第二次点击就是用户已经给出的确认。
+- 编号取 D441:D438 已被两处占用 —— 窗口开关键合并(#360,D438 与后续的
+ D439 重绑)与 Git 检出决策(ADR 0273),后者本日志已标明要改到 D440。本条不
+ 代为改写他人决策正文。
+- 仅渲染层:无协议、存储、宿主、权限或迁移改动,也没有新增默认值。磁盘上的文件夹仍永远不被触碰。见 `04-ux/09-interaction-patterns.md`、D421、D431、`06-delivery/04-e2e-test-plan.md` 的 E2E-PROJECT-delete-removes-project-and-owned-sessions,以及 `apps/desktop/test/two-step-delete.test.mjs`。
+
+## 2026-09-16 —— 侧边栏列表节奏为 1px / 2px / 8px
+
+- 侧边栏的会话列表原本没有可供阅读的节奏。行与分组标题在一个分组内紧贴(0 间隙),两个项目分组相距 2px,唯一的留白是分区标签上方的那 4px。相邻的 28px 行绘制的圆角悬停填充彼此相接,于是两行读起来像一整块,折叠的分组与相邻分组的距离,和一个展开后带十行的分组一样远,而分区标签距离它上方的行,比距离它所引出的行更近。
+- 这些列表现在陈述同一条阶梯:行与行之间相隔 1px,项目分组标题与分区标签位于其首行上方 2px,侧边栏分区位于其上方分区之下 8px,展开的项目分组带有一段 8px 的尾部。
+- 该尾部属于展开的分组本身,因此间距仅由前一个分组决定:展开的分组之后是 8px,无论下一个分组是展开还是折叠,折叠的分组之后则是 1px,两种情况都一样。滚动容器自身的间隙保持统一的 1px,差异存在于分组主体的内缩量中,它会随行一起消失。因此折叠一个分组既不会让间距取决于相邻分组的状态,也不会让它自己的尾部突然跳变。
+- 项目分组内的日期标签是该节奏中的普通行,而不是第二层分组:它们不保留状态、不保留展开披露,也没有 `aria-expanded`,并且它们自身的内缩量改为对称的 4px,而不再是上方 6px、下方 2px,于是它们不再盖过 1px 的行间隙。
+- `space-0.25`(1px)作为密集列表节奏的发丝级步进加入间距比例;设置栏在其导航项之间本来就已经使用 1px。节间隙规则不再声称适用于侧边栏,侧边栏有自己的节奏。
+- 两个行预算随该节距变化:固定主体仍显示八行(233px,原为 224px),独立的会话主体仍显示五行(146px,原为 140px),因为 28px 的行网格已无法把自身的间隙容纳进旧的数字里。
+- 仅渲染层:无协议、存储、宿主、权限或迁移改动。见 `04-ux/07-ui-design-system.md` §6.1 与 §13,以及 `04-ux/08-component-spec.md` §6.2 与 §6.6。
+
+## 2026-09-16 —— 侧边栏项目分组以单行网格折叠
+
+- 上述节奏上线时,分组折叠使用的是 300ms 慢速时长上的 `max-height: 2000px → 0`,外加一段独立的 200ms opacity 淡出与 padding 过渡。`max-height` 的曲线大部分长度都落在内容高度之上,于是可见的位移只是末尾的一小段跳变;而更短的 opacity 曲线在约三分之二处就把分组清空了:行先消失,空盒子随后才合上。折叠一个项目读起来像是两段彼此分离的动画。
+- 分组主体现在是一个单行网格,其行在 200ms 的正常时长内从 `1fr` 动画到 `0fr`。每一帧都是该分组实测高度的真实比例,因此折叠是一次连续运动,并且整个折叠过程中 `opacity` 始终为 1 —— 行是被裁剪掉的,不是淡出的。
+- 主体由三层组成:网格层、带 `min-height: 0` 与 `overflow: hidden` 的裁剪层,以及持有 1px 行间隙与固定 2px / 7px 内缩量的列表层。内缩量必须位于裁剪层内部,因为动画盒上的垂直内边距会把 `0fr` 行撑开,并在行消失后留下分组的尾部。
+- 折叠的分组仍把行挂载在该 `0fr` 行内,因此它同时是 `inert` 与 `aria-hidden`,并离开 Tab 顺序。在 `prefers-reduced-motion: reduce` 下,折叠保留两端状态并以接近零的时长完成。
+- 滚动预算、缩进、固定与独立列表,以及共享的 `.sidebar-session-group-body` 弹性列都保持不变;只有项目主体以网格折叠。
+- 仅渲染层:无协议、存储、宿主、权限或迁移改动。见 `04-ux/08-component-spec.md` §6.2 与 `06-delivery/04-e2e-test-plan.md` 的 E2E-LAYOUT-sidebar-project-group-fold。
+
+## 2026-09-17 —— 侧边栏选中态与工作区上下文分离
+
+- 项目标题与项目、置顶、独立会话行共享整行悬停背景、圆角和过渡;标题按钮透明,会话选中背景优先于悬停,不再叠加第二层背景。
+- 项目是工作区和折叠控件,不是独立选中的页面。当前工作区保留圆点及业务行为,但不再绘制持久选中背景,没有选中会话时也不例外。上下文由 `data-current-workspace` 标记,不再使用项目的 `active` 类。
+- 会话选中仍以聊天页及正在切换的目标为准;折叠分组不转移选中态。焦点轮廓、操作按钮反馈、窗口失焦释放和拖拽目标优先级保持独立。
+- 仅改变渲染表现,不改变持久化、工作区激活、权限或协议。见 `04-ux/01-ui-ia.md`、`04-ux/08-component-spec.md`、`04-ux/09-interaction-patterns.md` §9.1c 及 `06-delivery/04-e2e-test-plan.md` 的 E2E-LAYOUT-sidebar-row-states。
+
+## 2026-09-17 —— 设置共享侧栏材质,返回直接恢复布局
+
+- 主侧栏与设置导航共享 `sidebar-surface`:Windows/Linux 共享不透明颜色和背景图,macOS 共享现有原生 vibrancy、tint 与 sheen。设置外壳允许材质透出,右侧内容与顶部条保持不透明;仅内容内部播放入场动画。
+- 旧 `--ds-settings-rail-bg` 作为共享颜色的可选回退保留,显式 `--ds-bg-sidebar` 优先;不修改主题或原生窗口 API。
+- 侧栏挂载不再等同于展开。专用过渡 hook 只响应可见主界面的折叠状态变化,设置导航取消未完成阶段,返回恢复既有宽度和状态,不重播 `sidebar-in`。动画事件防护、超时清理、自动恢复及减少动态效果仍保留;首次显示由原有启动揭示处理,不再叠加侧栏宽度动画。
+- 不改变 item 缩进、宽度、工作区状态、数据或权限。见 `04-ux/06-settings-ia.md`、`04-ux/07-ui-design-system.md`、`04-ux/08-component-spec.md` 及 `06-delivery/04-e2e-test-plan.md` 的 E2E-LAYOUT-sidebar-settings。
+
+## 2026-09-17 —— 路由表面在入场动画结束后不再持有堆叠上下文
+
+- 插件安装同意模态框 —— 以及随后的插件详情抽屉 —— 原本绘制在不透明的 46px 标题栏带之下,因此该栏没有被模态遮罩覆盖,栏内控件仍然可点击。路由页面挂载在 `.route-surface` 内,而它的入场动画带有 `animation-fill-mode: both`:填充让已结束的入场动画在页面挂载期间始终「生效」,从而让该表面持续成为堆叠上下文,页面内渲染的浮层因此无法绘制到窗口 chrome 之上。
+- `.route-surface` 与 `.settings-content-enter` 的入场动画不再声明 `forwards` / `both` 填充(`apps/desktop/src/styles/chat-shell.css`)。入场动画的终点就是元素自身的状态,因此该填充本是多余的;去掉之后,入场结束时表面不再持有堆叠上下文,路由页面内的浮层重新绘制在标题栏带之上。关键帧仍然只有 opacity,入场动画照常播放。
+- 插件详情抽屉保留顶部的 `--ds-toolbar-height` 预留(`apps/desktop/src/styles/plugins.css`):在 Windows/Linux 上该右上角归渲染器绘制的窗口控件所有(`z-index: 200`),它们位于任何浮层的 z-index 之上。
+- 插件浮层从刻度外的 `80` 与 `60` 归回到 `z-dialog`(40)(`plugins.css`,发行说明浮层一并处理):路由表面不再困住它们之后,它们就在根堆叠上下文中参与比较,而在 80 上会盖住对话框自身弹出的叶子级弹出层(60)与 toast(50)—— 其中包括安装对话框的「已复制」提示。现在有源测试钉住这一关系。
+- 仅渲染层:无 IPC、存储、schema、协议或插件 SDK 改动,也没有新增默认值。见 `04-ux/07-ui-design-system.md` §9、`apps/desktop/test/settings-dialog-overlay.test.mjs`,以及 `06-delivery/04-e2e-test-plan.md` 的 E2E-LAYOUT-three-column-width-priority(其四条浮层断言位于 `scripts/e2e-three-column-layout.mjs`)。
+- 未做、留作后续的事项:真正的模态 —— 不可交互化、焦点收束、快捷键让位 —— 需要这些浮层进入浏览器顶层(`<dialog>.showModal()`)。在它们打开的弹出菜单、工具提示与 toast(portal 到 `document.body`)同样迁入顶层之前,这一步无法进行,因为顶层内容会绘制在它们之上并使其不可用;此前的一次尝试正因此被撤回。
+
+## 2026-09-19 —— MCP 目录由协议护栏约束,而不是被截断 (D452)
+
+- 修订 D176 / ADR 0038:每服务器的 `tools/list` 上限不再是「64 个工具、8 页」的静默截断。客户端现在在 Codex 同级的协议护栏下跟进分页直到最后一页 —— 2048 个工具、100 页、重复或畸形游标、整轮遍历 30 秒 —— 突破任一护栏的服务器会失去它的握手,而不是贡献其目录的一个前缀。
+- 该上限从来不是对提示词的保护:MCP 工具以 `ToolSearch` 之后的延迟按需条目到达模型,宣传它们的提示词区块另有独立上限,因此一个 300 个工具的服务器在被激活之前不产生任何成本。
+- `plugin.mcp.tools.truncated` 已移除。拒绝会以 `plugin.mcp.connect` / `mcp.connect` 记入审计并带上护栏的错误码与消息,对用户自建的服务器则显示为其状态消息。
+- 见 ADR 0038 与 E2E-024K;`apps/desktop/test/plugin-mcp.test.mjs` 覆盖完整目录、各项护栏,以及把旧的截断行为作为失败基线。
+
+## 2026-09-19 —— 移除设置页面的语音卡片(ADR 0291)
+
+- 设置 → AI 不再有语音区块:`VoiceSettingsCard` 与 `features/settings/voice-settings.tsx`、AI 目的地的 `settings.speechTitle` / `settings.speechTranscribe` / `settings.speechSynthesize` 搜索关键词、`.settings-speech-*` 样式、八种出厂语言各十三条 `settings.speech*` 文案,以及为已撤回 Composer 控件所写、无任何引用的七个 `chat.transcribe*` / `chat.speak*` 文案全部删除。
+- 宿主能力保留:`speech/getStatus`、`speech/transcribe`、`speech/synthesize`、`AppSettings.speech` 校验、两个内置协议、`speech.adapter.register` 插件权限与渲染器 API 桥接均未改动。绑定由调用方通过宿主设置接口写入,插件与 IPC 调用是其唯一消费方。
+- 早已撤回、本次一并修正文档:ADR 0281 第 5 条中的 Composer 转写与朗读入口(其麦克风与朗读控件已于 2026-09-18 在 `344ef4ec2`/PR #555 中移除),以及 `04-ux/08-component-spec.md` §2.5 描述的 Composer 语音控件;为它们写下的文案随之退役。
+- 仅渲染层:无 IPC 通道、存储 schema、宿主 RPC、权限或 Rust 改动,也不会丢弃已存绑定。见 ADR 0291、`04-ux/06-settings-ia.md`、`03-runtime/20-speech.md`、E2E-008e。
+
+## 2026-09-19 —— 远端主机的 SSH 引导(D453)
+
+- 桌面用系统 `ssh` 客户端在用户已能通过 SSH 到达的机器上安装并配对 `pi-host`,因此 `~/.ssh/config`、agent 与跳板机照常生效,应用不持有任何 SSH 密钥;`BatchMode=yes` 让需要交互式密码或口令短语的主机立即以带类型的错误失败,而不是把模态框吊在一个不可见的提示后面。
+- 桌面按远端平台、以自己的版本解析 `pi-host` 包,持有发布随附的 SHA-256,并在任何下载之前拒绝未发布的目标(目前只有 `linux-x64`)。上传的脚本在远端 `$HOME` 下下载、校验并安装该包;SSH 通道上不传输任何可执行字节。
+- 脚本以 `umask 077` 运行并回显 `PI_HOST_READY` / `PI_HOST_PAIRING_TOKEN`,因此一次性配对令牌只存在于工作文件和 SSH 通道上,既不落在全局可读路径,也不出现在 URL 中(安全规格 §3.4)。`PI_HOST_READY.version` 必须与桌面版本一致;不一致为 `HOST_VERSION_MISMATCH`(D375),并在建立转发之前就已检查。
+- 已配对主机的记录改存 SSH 描述符(`metadata.transport = "ssh"`)而非 URL,因为本地转发端口在每次启动间并不稳定;隧道管理器在每次启动时重新建立 `ssh -N -L`,并收编(adopt)引导自己打开的存活转发,使配对只建立一条隧道。描述符在每次读取注册表时都会重新校验,格式不合规时降级为「非 SSH 主机」,而不会用垃圾参数去 spawn `ssh`。
+- `pi-desktop/remoteHost/bootstrap` 加入 `list` / `pair` / `remove`,`connection/pair` 交换被抽成单一的 `exchangePairingToken`,粘贴 URL 与 SSH 引导两条路径共用。
+- 本次不做:终端工作面板客户端(Stage 5)、反向工具中继(Stage 6)、resync 看门狗、非 Linux 与 Windows 远端目标,以及经 SSH 通道下发 provider 配置 —— 刚引导好的主机在配置 provider 之前,`turn/start` 仍以 `MODEL_NOT_CONFIGURED` 关闭。见 ADR 0292、`06-delivery/07-remote-control-rollout.md` §7 与 `05-security/02-remote-control-security.md` §3.4。
+
+## 2026-09-20 —— 项目存档改为列表 + 检查器(D455)
+
+- 决策 D455 修订 D267 的展开行:设置 → 项目存档保留安静引导行和工具栏,把单一展开列表改成精简行,检查器在选中行下方铺满宽度(ADR 0294)。
+- 单击行会选中并留在设置页。双击、Enter 或检查器的打开操作激活项目并返回聊天。归档和关闭仍使该目的地保持打开(D133 / D267)。
+- 文件夹、对话(按最新活动、每批 8 条)和原有菜单放在检查器中。归档记录仍分组可见。
+- 仅演示层:无 IPC、存储或宿主协议改动。见 `04-ux/06-settings-ia.md` 与 E2E-038。
+
+## 2026-09-20 —— 提示词增强模型卡移到设置 → AI
+
+- 修订 ADR 0121 与 2026-09-18 D447 的放置:增强提示词卡(默认模型 + 思考强度)离开设置 → 模型,
+ 放到设置 → AI,紧挨提示词增强之后,让同一操作的模板与改写模型在同一目的地。该卡仍自带标题,
+ 因为模型选择器需要标题 / 当前值 / 控件。设置搜索在 AI 页索引这两行。仅演示层:无 IPC、存储或
+ 宿主协议改动。见 `04-ux/06-settings-ia.md` 与 `04-ux/12-prompt-enhancement.md` §5。
+
+## 2026-09-20 —— 提示词增强合成一张设置 → AI 卡
+
+- 修订同日的两卡放置:增强提示词卡并入设置 → AI 的提示词增强。自定义模板开关、默认模型与思考强度共用一个标题。设置搜索仍索引 `promptEnhancementModelTitle`,因此搜「增强提示词」仍会落到 AI。仅演示层:无 IPC、存储或宿主协议改动。
+
+## 2026-09-20 —— 会话思考参数不发送(D456)
+
+- Composer、会话存储和宿主校验在七个规范档位之外接受 `thinkingLevel: omit`。
+ 绑定芯片与目录能力列表保持规范档位;`omit` 是客户端选择,不是已发布档位。
+- 运行时钳位在推理模型上保留 `omit`。智能体记账仍为 `off`,父级流与子智能体
+ 共用低层 omit 路径,适配器不发送思考字段。显式 `off` 仍关闭思考。
+- Composer 推理菜单在所选模型有已启用规范档位时把 `omit` 放在最前,芯片渲染
+ 规范字符串。Schema v19 重建 `sessions` 以使 CHECK 包含 `omit`。见 ADR 0295 与 E2E-203a。
+
+## 2026-09-19 —— 丢弃 outbox 毒消息;接受投递回合内的 steering(D597)
+
+- 决策 D597 修订 ADR 0041、ADR 0239、ADR active-turn-steering 与 D444。
+ 宿主追加错误消息带 `PERMISSION_DENIED:` 前缀时是永久的、消息级拒绝。
+ Electron outbox 丢掉该行并继续排空,避免一条毒消息把 1024 上限填满。
+ `PLUGIN_PERMISSION_DENIED` 这类子串以及其他宿主失败仍暂停。
+- 向已认领的协作投递回合做 steering 是该会话里额外的人类输入:不受投递
+ 内容/附件契约约束,不继承投递来源,并清掉客户端带来的 `session_message`。
+ 指向另一会话的 steering 仍是 `PERMISSION_DENIED`。
+- 见 `03-runtime/04-data-storage.md`、`03-runtime/06-host-rpc-protocol.md`、
+ E2E-SESSION-outbox-poison-does-not-drop-history。
+
+## 2026-09-20 —— 项目档案呈现为内嵌分组卡片列表
+
+- 仅修订 D455 的呈现:该目的地仍为单列,详情在选中行下方,没有并排面板;
+ 但索引改为 iOS 意义上的内嵌分组列表。每行自左向右是身份(颜色字形、项目名、
+ 一个状态标签、缩短的等宽路径),自右向左是细节(会话计数、相对上次活动时间、
+ 展开指示器)。行仍以行间距分隔,从不使用分隔线。
+- 选中的行就是它自己卡片的表头,因此详情面板不重复名称、路径或状态标签:
+ 它先是操作栏(新任务、项目不是当前工作区时的「打开」、更多菜单),
+ 接着是只读的文件夹与分支信息、会话计数,最后是会话列表。更多菜单的条目、
+ 顺序与两步删除保持不变。
+- 方向键选中改为沿渲染顺序(分组顺序 + 当前排序)移动,而不是索引构建顺序,并把真实
+ 焦点移到该行;该处理器会让位于展开的卡片,因此详情内的 Enter 仍是该控件自身的操作。
+ 行元素 id 经过编码,只靠分隔符区分的两条路径不会再撞车。索引为空时在宿主列表返回前
+ 显示等待指示器,而不是「暂无项目」;展开的卡片与展开指示器遵循减少动效设置。
+- 再次单击已展开卡片的那一行会收起卡片,走同一个共享切换函数。选中与卡片展开是
+ 两个独立状态:当前行在卡片收起时仍保留选中环,展开指示器只在卡片真正展开时
+ 转向下方。用方向键移动选中时总会展开落点所在的那一行。
+ 仅演示层:无 IPC、存储、宿主协议或激活语义改动。见 `04-ux/06-settings-ia.md`、
+ `04-ux/07-ui-design-system.md` 与 ADR 0294。
+
+## 2026-09-20 —— 项目档案默认收起,且不再带页面级说明文字
+
+- 该目的地不再呈现说明行:工具栏是页面标题下的第一个元素,形态与智能体能力页面和
+ 导入目的地一致。`project.archiveSubtitle` 键从全部语言目录中退役,而不是留作未使用。
+- 用户单击某一行之前不展开任何内容。选中与卡片展开原本是两个状态,现合并为一个:
+ 收起的索引不高亮任何行,`aria-expanded` 与旋转的展开指示器只描述展开的卡片,
+ 项目从列表中消失(搜索不再匹配)时卡片随之关闭。`resolveSelectedPath`
+ (总会解析出一个选中项:优先当前工作区、其次首行)随它所服务的自动展开一并移除。
+- 仅演示层:无 IPC、存储、宿主协议或激活语义改动。搜索仍匹配会话标题,并让所属项目
+ 留在索引中。见 `04-ux/06-settings-ia.md`。
++
++## 2026-09-20 —— 菜单根层直接承载推理滑块(#417,D458)
+
+ - Composer 的推理等级此前只能在一个子菜单里的竖向单选列表中切换。Issue #417 希望参考 Codex 桌面版做成滑动条,同时保留原有的「点击值标签进入下拉列表」交互。
+ - 合并后的「模型 × 推理」菜单根层现在直接展示一个原生 range 输入,每个已启用等级一个刻度,并配有可点击的刻度标签,位置就在「推理等级」条目正下方。拖动滑块或点击刻度都会通过同一条 `configureActiveSession` 路径立即提交等级,并停留在菜单原处,因此临时调整不必再往子菜单里跑一趟。「推理等级」条目本身仍然打开经典单选列表,保留其单选语义、末尾勾选、上/下/Enter/左键契约与返回根层的行为。
+ - 滑块在获得焦点时自行掌管方向键/Home/End/Enter,因此这些按键用于调整等级而不再驱动菜单导航,Escape 仍然关闭菜单。一次拖动可能每穿过一个刻度就提交一次,因此提交串接在一条 promise 链上;同时用一个本地拖动前导值,避免受控输入在 store 确认回写之前被弹回。当绑定只启用了一个等级时,滑块整体隐藏。
-- 等级值仍是未翻译的规范字符串,七级阶梯、提供方过滤与钳制规则均未改动;仅渲染层:无协议、存储、宿主、权限或迁移改动。见 `04-ux/08-component-spec.md`、`04-ux/07-ui-design-system.md` 与 E2E-050。
++- 等级值仍是未翻译的规范字符串,在绑定暴露已启用规范档位时也包括会话级 `omit`(D456)。七级阶梯、提供方过滤与钳制规则均未改动;仅渲染层:无协议、存储、宿主、权限或迁移改动。见 `04-ux/08-component-spec.md`、`04-ux/07-ui-design-system.md` 与 E2E-050。