This carries #727's reviewed part forward, without auto-approve (that comes as its own PR). Permission behaviour is the same as 1.2. - Windows Git Bash detection, never the WSL System32 bash. It can be overridden in Settings and is passed per spawn only. - GBK / system code page decoding of raw process output. - Folded tool steps that don't wrap at ~600px. - Select-to-quote, and copy/edit under the user bubble. - Instant send with the echo replacing the bubble in place, and retry when a send fails. - `/app` heals itself after sleep/wake. `frame-ancestors` is limited to loopback and Magpie's window. - Grayscale timeline polish: one-line tool rows, a task-list pill, a reply footer and code blocks. - Test fixes: - The `initializing` push is awaited. - `afterEach` waits for the thread store's writes. - `runtimeInfo().starting` is exposed, and the steer test waits on it. - "idle recycling" waits for closed. Run on mote (macOS) at 65ab7c94: - `npm ci`, `npm run check` and `build` are ok; `verify:build` gives 5/5 OK. - Full `vitest run` x5: 4 green (427 passed). One red, "send while running → queued", is a race that is on main too. - Cause: `setStatus(idle)` runs before `queue.shift()`. - A 300ms pause injected there makes it red 3/3 on main and on this head. - Filed on #585 with the cause and the repro. - Focused send-latency + manager runs: 12/12. `e2e:v1`: 25/25, with no pageerror or console error. - Broken by hand: - With the old steer wait and the mock send held 400ms, the test is red 3/3; the new wait passes 3/3. - With `recycleIdle` made a no-op, "idle recycling" goes red. - Playwright render: - Chromium and WebKit × zh/en × light/dark × 1280/420. - No gradients, no coloured left borders, no `<select>`, no page errors. - At 420 the page scrolls sideways (scrollWidth 480), the same as main. Not tried: Windows (Git Bash detection, GBK decoding) and a real agent, rather than the mock.
87 lines
4.4 KiB
CSS
87 lines
4.4 KiB
CSS
/* Design tokens — "option B": quiet neutrals, one accent.
|
||
Magpie passes its palette as --magpie-* (?tokens=). Its font always applies; its surface colors apply only while this page
|
||
shows the same light/dark as Magpie (html[data-host-colors], set by layout/theme.ts), so an explicit Light/Dark setting never mixes palettes.
|
||
The accent is deliberately monochrome: charcoal in light mode, light grey in dark mode. Magpie's accent tokens are ignored
|
||
(layout/applyMagpieTokens.ts drops them), so the page never picks up a hue. Only semantic colors (ok/warn/danger/info, diff) carry color.
|
||
Font sizes are 12/13/14 (+ 18 for empty-state titles), weights 400/500/600. */
|
||
:root {
|
||
--own-bg: #ffffff; --own-sb: #f8f8f7; --own-fg: #1f1f1f; --own-muted: #737373; --own-line: #ececec;
|
||
--bg: var(--own-bg);
|
||
--sb-bg: var(--own-sb);
|
||
--fg: var(--own-fg);
|
||
--muted: var(--own-muted);
|
||
--line: var(--own-line);
|
||
--meta: #a3a3a3;
|
||
--text: #262626;
|
||
--accent: #262626; /* charcoal: send, primary buttons, links, active marker, running dot */
|
||
--accent-2: #525252; /* dark grey: active bar, running dot */
|
||
--accent-fg: #ffffff;
|
||
--accent-soft: #f0f0f0; /* user bubble: light neutral grey */
|
||
--surface: color-mix(in oklab, var(--fg) 3%, var(--bg));
|
||
--surface-hover: color-mix(in oklab, var(--fg) 6%, var(--bg));
|
||
--chip-bg: #f4f5f5; --chip-line: #ececec; --pill-fg: #525252;
|
||
--search-bg: #efefee;
|
||
--tile-bg: color-mix(in oklab, var(--fg) 90%, var(--bg)); --tile-fg: var(--bg);
|
||
--badge-bg: color-mix(in oklab, var(--fg) 7%, var(--bg)); --badge-fg: color-mix(in oklab, var(--fg) 80%, var(--bg));
|
||
--run-bg: #f0f0f0; --run-fg: #404040;
|
||
--cp-line: color-mix(in oklab, var(--fg) 11%, var(--bg));
|
||
--cp-focus: #a3a3a3; /* neutral grey focus border */
|
||
--cp-ring: rgb(0 0 0 / .06);
|
||
--active-bg: #ffffff; --active-line: #e6e6e6;
|
||
--ok: #16a34a; --warn: #d97706; --danger: #dc2626; --info: #2563eb;
|
||
--code-bg: #f4f5f5; --code-line: #eaeceb; --code-fg: #404040;
|
||
--add-bg: #ecfdf3; --del-bg: #fef2f2;
|
||
--r-s: 6px; --r-m: 8px; --r-l: 12px; --r-full: 999px;
|
||
--font-ui: var(--magpie-font, "Segoe UI Variable Text", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif);
|
||
--font-mono: var(--magpie-code, "Cascadia Code", "Cascadia Mono", "JetBrains Mono", ui-monospace, Consolas, monospace);
|
||
/* UI chrome (sidebar, top bar, right panel, menus, dialogs) stays on this fixed scale; only the conversation follows
|
||
Settings → Chat font size (1.3 review). --fs-xs: badges, timestamps and tiny meta. */
|
||
--fs-xs: 11px; --fs-s: 12px; --fs-m: 13px; --fs-l: 14px;
|
||
--fs-hero: 18px;
|
||
--lh: 1.6;
|
||
--col: 720px;
|
||
/* Chat text size (Settings → Chat font size, 12–18, default 13): timeline, composer, tool output, diffs.
|
||
Code is 1px smaller, secondary rows (tool steps, thinking, notices) 1px smaller but never under 12px. */
|
||
--chat-fs: 13px;
|
||
--chat-fs-s: max(12px, calc(var(--chat-fs) - 1px));
|
||
--chat-code-fs: max(11.5px, calc(var(--chat-fs) - 1px));
|
||
--chat-lh: 1.7;
|
||
--row: 26px;
|
||
--shadow-pop: 0 8px 24px -6px rgb(0 0 0 / .16), 0 0 0 1px var(--line);
|
||
--term-bg: #ffffff;
|
||
--term-fg: #1e1e1e;
|
||
--ease: cubic-bezier(.2,.7,.2,1);
|
||
--dur-1: 120ms; --dur-2: 200ms;
|
||
color-scheme: light;
|
||
}
|
||
:root[data-theme="dark"] {
|
||
--own-bg: #1a1a1a; --own-sb: #151515; --own-fg: #ececec; --own-muted: #9b9b9b; --own-line: #2c2c2c;
|
||
--meta: #7c7c7c;
|
||
--text: #e2e2e2;
|
||
--accent: #e5e5e5; /* light grey / near-white */
|
||
--accent-2: #b3b3b3;
|
||
--accent-fg: #171717; /* dark icon/text on light accent */
|
||
--accent-soft: #2e2e2e;
|
||
--chip-bg: #252727; --chip-line: #323434; --pill-fg: #bdbdbd;
|
||
--search-bg: #242424;
|
||
--run-bg: #2e2e2e; --run-fg: #d4d4d4;
|
||
--cp-focus: #6b6b6b;
|
||
--cp-ring: rgb(255 255 255 / .07);
|
||
--active-bg: #242424; --active-line: #333333;
|
||
--info: #60a5fa;
|
||
--code-bg: #232323; --code-line: #303030; --code-fg: #d4d4d4;
|
||
--add-bg: rgb(22 163 74 / .16); --del-bg: rgb(220 38 38 / .16);
|
||
--shadow-pop: 0 8px 24px -6px rgb(0 0 0 / .5), 0 0 0 1px var(--line);
|
||
--term-bg: #0c0c0c;
|
||
--term-fg: #cccccc;
|
||
color-scheme: dark;
|
||
}
|
||
/* Same light/dark as Magpie: use its surfaces and text colors (card = content, bg = sidebar) */
|
||
:root[data-host-colors] {
|
||
--bg: var(--magpie-card, var(--magpie-bg, var(--own-bg)));
|
||
--sb-bg: var(--magpie-bg, var(--own-sb));
|
||
--fg: var(--magpie-fg, var(--own-fg));
|
||
--muted: var(--magpie-muted, var(--own-muted));
|
||
--line: var(--magpie-line, var(--own-line));
|
||
}
|