Auto-approve all (全部自动同意) ships in agent-console 1.3.1, split out of #727 (qingnian108).
The mode is off by default. In it, Codex runs with its sandbox off and Claude Code skips its checks. Cursor, OpenCode and dsh requests are answered allow-once by the console, never allow_always or acceptForSession. Each auto answer is saved with `auto: true` before the Agent goes on, and a banner shows while the mode is on. Plan confirmations and questions still ask. A 1.2 默认 of 全部放行 is not silently upgraded to real auto-approve. Pi keeps the `default` mode id ("Pi never asks"), so switching Agents before the first message never carries auto-approve into an Agent the user didn't pick.
Reviewed at 7e55c87ca merged onto main 20b89389:
- Linux (WSL2 Ubuntu 24.04): root `bun test packages/agent-console` 6/6; `bun scripts/check.mjs` OK; `npm run check` OK; vitest 461 passed / 17 skipped; `verify:build` 5/5 identical.
- Windows 11 (Edge): `e2e:v1` 29/29.
- Linux e2e stops at scenario 5 (steer timeout). It does the same on main 1.3.0, so it was filed as #753.
- Broken by hand:
- Pi's modeMap back to bypassPermissions: 2 tests red.
- The keeps line shown for every Agent: 1 test red.
- Pi's label branch removed: 1 test red.
- An earlier round at 049449612 on macOS checked the daemon behaviour with probes. This version is published from the dist branch; the package isn't on npm.
300 lines
21 KiB
CSS
300 lines
21 KiB
CSS
/* Conversation items (§8.6): user bubble, body, thinking, tool group, cards, turn end, Markdown */
|
|
|
|
/* User message: bubble on the right */
|
|
.um-row { display: flex; flex-direction: column; align-items: flex-end; margin: 4px 0 8px; }
|
|
.um {
|
|
position: relative; max-width: 78%;
|
|
background: var(--accent-soft); border-radius: 14px 14px 4px 14px; color: var(--fg);
|
|
padding: 6px 12px; font-size: var(--chat-fs); line-height: 1.6;
|
|
white-space: pre-wrap; word-break: normal; overflow-wrap: break-word;
|
|
}
|
|
/* Actions under the bubble, right-aligned. The whole row is the hover target (no gap to cross); hidden with opacity
|
|
so the buttons stay in the tab order, and shown while one has focus or on touch screens. */
|
|
.um-act { display: flex; gap: 2px; margin-top: 2px; height: 24px; opacity: 0; transition: opacity var(--dur-1); }
|
|
.um-row:hover .um-act, .um-act:focus-within { opacity: 1; }
|
|
@media (hover: none) { .um-act { opacity: 1; } }
|
|
.um-act .ibtn { width: 24px; height: 24px; color: var(--meta); }
|
|
.um-act .ibtn:hover, .um-act .ibtn:focus-visible { color: var(--fg); }
|
|
.um-act .ibtn.done, .te-act.done { color: var(--fg); }
|
|
.um-img { display: block; max-width: 200px; max-height: 140px; border-radius: var(--r-s); margin-bottom: 6px; cursor: zoom-in; }
|
|
.um-tag { font-size: var(--chat-fs-s); color: var(--muted); margin-top: 2px; }
|
|
/* 1.3 optimistic send: a bubble sent from this page fades in (opacity only: the row's box never moves, so the
|
|
virtual list's measurements and the overlap checks are unaffected); a failed one keeps its place, with 重试 */
|
|
.um-row.fresh .um { animation: um-in 140ms var(--ease, ease-out) both; }
|
|
@keyframes um-in { from { opacity: 0; } to { opacity: 1; } }
|
|
@media (prefers-reduced-motion: reduce) { .um-row.fresh .um { animation: none; } }
|
|
.um-row.failed .um { box-shadow: inset 0 0 0 1px var(--danger); }
|
|
.um-fail { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--chat-fs-s); color: var(--danger); }
|
|
.um-fail-t { display: inline-flex; align-items: center; gap: 4px; }
|
|
.um-fail-b { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line);
|
|
background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
|
|
.um-fail-b:hover, .um-fail-b:focus-visible { background: var(--surface-hover); }
|
|
|
|
/* Streaming cursor for the body */
|
|
.as { margin: 4px 0; }
|
|
.md.streaming::after { content: "▍"; color: var(--accent); animation: breathe 1s infinite; }
|
|
|
|
/* Markdown */
|
|
.md { font-size: var(--chat-fs); line-height: var(--chat-lh); color: var(--text); word-break: normal; overflow-wrap: break-word; }
|
|
.md p { margin: 0 0 0.6em; }
|
|
.md > :last-child { margin-bottom: 0; }
|
|
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent); }
|
|
.md a:hover { text-decoration: underline; }
|
|
.md pre {
|
|
position: relative; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--r-m);
|
|
padding: 10px 12px; overflow-x: auto; font-family: var(--font-mono); font-size: var(--chat-code-fs); line-height: 1.55;
|
|
}
|
|
.md code { font-family: var(--font-mono); font-size: var(--chat-code-fs); background: var(--code-bg); color: var(--code-fg); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--code-line); }
|
|
.md pre code { background: none; padding: 0; border: 0; color: inherit; font-size: inherit; }
|
|
.md ul, .md ol { margin: 0.45em 0; padding-left: 1.7em; }
|
|
.md li + li { margin-top: 0.15em; }
|
|
.md h1, .md h2, .md h3, .md h4 { margin: 0.95em 0 0.4em; font-weight: 600; line-height: 1.4; }
|
|
.md h1 { font-size: calc(var(--chat-fs) + 4px); }
|
|
.md h2 { font-size: calc(var(--chat-fs) + 2px); }
|
|
.md h3 { font-size: calc(var(--chat-fs) + 1px); }
|
|
.md h4 { font-size: var(--chat-fs); }
|
|
.md > h1:first-child, .md > h2:first-child, .md > h3:first-child, .md > h4:first-child { margin-top: 0.2em; }
|
|
.md blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
|
|
.md table { border-collapse: collapse; margin: 8px 0; }
|
|
.md th, .md td { border: 1px solid var(--line); padding: 4px 10px; font-size: var(--chat-fs-s); }
|
|
/* 1.3 code blocks: header (language · wrap · copy), numbered lines (a CSS counter per line block, so wrapped lines keep
|
|
the gutter), horizontal scroll unless wrapped */
|
|
.md .cb { margin: 0.5em 0 0.7em; border: 1px solid var(--code-line); border-radius: var(--r-m); background: var(--code-bg); overflow: hidden; }
|
|
.md .cb pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 2px 12px 10px; }
|
|
.cb-head { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px 0 12px; font-size: var(--fs-xs); color: var(--meta); user-select: none; -webkit-user-select: none; }
|
|
.cb-lang { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); }
|
|
.cb-acts { flex: none; display: inline-flex; gap: 2px; }
|
|
.cb-btn { width: 24px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-s); color: var(--meta); }
|
|
.cb-btn:hover, .cb-btn:focus-visible { background: var(--surface-hover); color: var(--fg); }
|
|
.cb-btn[aria-pressed="true"], .cb-btn.done { color: var(--fg); }
|
|
.md .cb pre code { display: block; min-width: max-content; }
|
|
.md .cb.wrap pre code { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.md .cb.numbered pre code { counter-reset: cb-line; }
|
|
.cb-l { display: block; min-height: 1.55em; }
|
|
.cb.numbered .cb-l { position: relative; padding-left: 3em; }
|
|
.cb.numbered .cb-l::before {
|
|
counter-increment: cb-line; content: counter(cb-line); position: absolute; left: 0; width: 2em; text-align: right;
|
|
color: var(--meta); opacity: .8; user-select: none; -webkit-user-select: none; font-variant-numeric: tabular-nums;
|
|
}
|
|
/* Syntax colours stay quiet and grayscale-leaning (the chrome has no hue): weight and tone, not a rainbow */
|
|
.md .hljs-keyword, .md .hljs-built_in, .md .hljs-selector-tag, .md .hljs-type { color: var(--fg); font-weight: 600; }
|
|
.md .hljs-string, .md .hljs-regexp, .md .hljs-attr, .md .hljs-symbol { color: color-mix(in oklab, var(--fg) 62%, var(--bg)); }
|
|
.md .hljs-comment, .md .hljs-quote { color: var(--meta); font-style: italic; }
|
|
.md .hljs-number, .md .hljs-literal { color: color-mix(in oklab, var(--fg) 75%, var(--bg)); }
|
|
.md .hljs-title, .md .hljs-title.function_, .md .hljs-section { color: var(--fg); }
|
|
.md .hljs-meta, .md .hljs-variable.language_ { color: var(--muted); }
|
|
|
|
/* Thinking (collapsed gray text) / todo */
|
|
.rs-item { margin: 4px 0 6px; }
|
|
.rs-head {
|
|
display: inline-flex; align-items: center; gap: 4px; min-height: 22px; max-width: 100%; padding: 0;
|
|
color: var(--meta); font-size: var(--chat-fs-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.rs-head:hover { color: var(--fg); }
|
|
.rs-head .caret { display: inline-block; transition: transform var(--dur-1); }
|
|
.rs-head .caret.open { transform: rotate(90deg); }
|
|
.rs-body { margin: 2px 0 6px 5px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: var(--chat-fs-s); line-height: 1.65; white-space: pre-wrap; }
|
|
/* 1.3 checklist (TodoWrite / turn/plan/updated / ACP plan entries): "2/3 任务" and one check row per step */
|
|
.ck { margin: 4px 0 8px; font-size: var(--chat-fs-s); border-radius: var(--r-m); transition: background var(--dur-2); }
|
|
.ck.flash { animation: ck-flash 1.2s var(--ease); }
|
|
@keyframes ck-flash { 0%, 40% { background: var(--surface-hover); } 100% { background: transparent; } }
|
|
.ck-head { display: flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 6px; color: var(--muted); white-space: nowrap; overflow: hidden; }
|
|
.ck-head svg { flex: none; color: var(--meta); }
|
|
.ck-n { font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 500; }
|
|
.ck-list { list-style: none; margin: 0; padding: 0; }
|
|
.ck-i { display: flex; align-items: flex-start; gap: 8px; padding: 2px 6px; line-height: 1.55; color: var(--muted); }
|
|
.ck-box { flex: none; width: 14px; height: calc(var(--chat-fs-s) * 1.55); display: inline-flex; align-items: center; justify-content: center; color: var(--meta); }
|
|
.ck-i.done .ck-box { color: var(--muted); }
|
|
.ck-i.done .ck-t { color: var(--meta); }
|
|
.ck-i.doing .ck-t { color: var(--fg); }
|
|
.ck-t { min-width: 0; overflow-wrap: anywhere; }
|
|
|
|
/* Tool group. Every line here is one line that can only clip, never wrap: 1.2 gave the summary a fixed 24px height
|
|
while a long "running" label squeezed it to a few characters, so the wrapped text spilled over the rows around it
|
|
(Nolan's Windows screenshot). min-height + nowrap + overflow hidden keep each line inside its own box at any width
|
|
and font size; the virtual list then measures the real height.
|
|
1.3 timeline polish (after Better Paseo): steps are flat one-line rows — type icon, command / path in the code font,
|
|
+N -M for edits, status at the right edge; only long runs fold into the summary row. Grayscale; red only for failures. */
|
|
.tg { margin: 2px 0 8px; min-width: 0; }
|
|
.tg-head {
|
|
display: flex; align-items: center; gap: 8px; width: 100%; min-height: 26px; padding: 0 6px; overflow: hidden; border-radius: var(--r-s);
|
|
color: var(--muted); font-size: var(--chat-fs-s); text-align: left; white-space: nowrap;
|
|
}
|
|
.tg-head:hover { color: var(--fg); background: var(--surface-hover); }
|
|
.tg-ic { width: 14px; flex: none; display: inline-flex; justify-content: center; color: var(--meta); }
|
|
.tg-head .caret { flex: none; color: var(--meta); transition: transform var(--dur-1); }
|
|
.tg-head .caret.open { transform: rotate(90deg); }
|
|
.tg-sum { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.tg-fail { flex: none; color: var(--danger); }
|
|
.tg-fail::before { content: "·"; margin-right: 6px; color: var(--meta); }
|
|
/* One line while a step runs: "正在运行:npm test…", cut with an ellipsis rather than wrapping */
|
|
.tg-run { display: flex; align-items: center; gap: 8px; min-height: 22px; padding-left: 6px; color: var(--muted); font-size: var(--chat-fs-s); min-width: 0; overflow: hidden; white-space: nowrap; }
|
|
.tg-run-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ts-noerr { color: var(--meta); font-size: var(--chat-fs-s); margin-bottom: 4px; }
|
|
.tg-list { margin: 0; padding: 0; }
|
|
.tg.open > .tg-list { margin: 2px 0 0 13px; padding-left: 6px; border-left: 1px solid var(--line); }
|
|
.ts-head {
|
|
display: flex; align-items: center; gap: 8px; width: 100%; min-height: 26px; padding: 0 6px; overflow: hidden;
|
|
border-radius: var(--r-s); font-size: var(--chat-fs-s); text-align: left; color: var(--muted); white-space: nowrap;
|
|
}
|
|
.ts-head:hover, .ts.open > .ts-head { background: var(--surface-hover); color: var(--fg); }
|
|
.ts-ic { width: 14px; flex: none; display: inline-flex; justify-content: center; color: var(--meta); }
|
|
.ts-head:hover .ts-ic { color: var(--muted); }
|
|
.ts-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.ts-title.mono { font-family: var(--font-mono); font-size: var(--chat-code-fs); }
|
|
.ts-think .ts-head { color: var(--meta); }
|
|
.ts-think .rs-body { margin-left: 28px; }
|
|
.ts-diff { flex: none; display: inline-flex; gap: 5px; font-family: var(--font-mono); font-size: var(--chat-code-fs); font-variant-numeric: tabular-nums; color: var(--meta); }
|
|
.ts-diff .add { color: var(--muted); }
|
|
.ts-meta { flex: none; color: var(--meta); font-variant-numeric: tabular-nums; }
|
|
.ts-meta.err { color: var(--danger); }
|
|
.ts-st { flex: none; width: 14px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; color: var(--meta); }
|
|
.ts-st.ok { color: var(--muted); }
|
|
.ts-st.fail { color: var(--danger); }
|
|
.ts.failed > .ts-head .ts-title { color: var(--fg); }
|
|
/* A small grey ring that turns (running step, in-progress checklist row) */
|
|
.spin {
|
|
display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%;
|
|
border: 1.5px solid color-mix(in oklab, var(--fg) 18%, transparent); border-top-color: var(--accent-2);
|
|
animation: ac-spin .8s linear infinite;
|
|
}
|
|
@keyframes ac-spin { to { transform: rotate(360deg); } }
|
|
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
|
|
.ts-out { margin: 2px 6px 6px 28px; }
|
|
.ts-out pre {
|
|
background: var(--code-bg); border-radius: var(--r-s); padding: 8px 10px;
|
|
font-family: var(--font-mono); font-size: var(--chat-code-fs); line-height: 1.5;
|
|
overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0;
|
|
}
|
|
.ts-more { font-size: var(--chat-fs-s); color: var(--accent); margin-bottom: 4px; }
|
|
|
|
/* diff (unified view, red/green backgrounds) */
|
|
.diff { margin: 2px 6px 6px 28px; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
|
|
.diff-path { padding: 4px 10px; font-size: var(--chat-code-fs); color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--font-mono); }
|
|
.diff-pre { margin: 0; padding: 6px 0; font-family: var(--font-mono); font-size: var(--chat-code-fs); line-height: 1.5; overflow-x: auto; }
|
|
.dh-head { display: block; color: var(--muted); padding: 0 10px; }
|
|
.dl { display: block; padding: 0 10px; white-space: pre-wrap; word-break: break-all; }
|
|
.dl.add { background: var(--add-bg); }
|
|
.dl.del { background: var(--del-bg); }
|
|
|
|
/* Cards (plan/permission/question/error) */
|
|
.card { margin: 8px 0; border-radius: 10px; padding: 12px 14px; }
|
|
.card.plan { border: 1px solid var(--line); }
|
|
.card.perm { border: 1px solid color-mix(in oklab, var(--warn) 30%, var(--bg)); background: color-mix(in oklab, var(--warn) 3%, var(--bg)); }
|
|
.card.perm.done { border-color: var(--line); opacity: .75; }
|
|
.card.ask { border: 1px solid color-mix(in oklab, var(--info) 45%, var(--bg)); }
|
|
.card.ask.done { border-color: var(--line); opacity: .75; }
|
|
.err-card { border: 1px solid color-mix(in oklab, var(--danger) 45%, var(--bg)); }
|
|
.err-line { color: var(--danger); font-size: var(--chat-fs); }
|
|
.perm-title { font-size: var(--chat-fs); font-weight: 500; }
|
|
.perm-cmd {
|
|
margin: 8px 0 0; background: var(--code-bg); border-radius: var(--r-s); padding: 8px 10px;
|
|
font-family: var(--font-mono); font-size: var(--chat-code-fs); white-space: pre-wrap; word-break: break-all;
|
|
}
|
|
.perm-path { margin-top: 6px; font-family: var(--font-mono); font-size: var(--chat-code-fs); color: var(--muted); }
|
|
.perm-btns { display: flex; gap: 8px; margin-top: 10px; }
|
|
.perm-done { margin-top: 8px; font-size: var(--chat-fs-s); color: var(--muted); }
|
|
.ask-q { margin-bottom: 10px; }
|
|
.ask-t { font-size: var(--chat-fs); font-weight: 500; margin-bottom: 6px; }
|
|
.ask-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
|
|
.ask-free { margin-top: 4px; }
|
|
.ask .btn.primary { margin-top: 4px; }
|
|
|
|
/* Notices */
|
|
.nt { margin: 8px 0; text-align: center; font-size: var(--chat-fs-s); color: var(--muted); }
|
|
.nt.warn { color: var(--warn); }
|
|
.nt.error { color: var(--danger); }
|
|
.nt-bash { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); line-height: 1.6; }
|
|
.nt-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
|
|
|
|
/* Turn end / reply footer (1.3): "Copy · model · 19:13 · 2m 59s" in one quiet line under the reply */
|
|
.te { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 2px 4px; margin: 6px 0 18px -6px; font-size: var(--chat-fs-s); color: var(--meta); min-width: 0; }
|
|
.te-m { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; height: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; max-width: 100%; }
|
|
.te-m > span { overflow: hidden; text-overflow: ellipsis; }
|
|
.te-m svg { flex: none; }
|
|
.te-act {
|
|
height: 24px; min-width: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
|
|
padding: 0 6px; border-radius: var(--r-s); color: var(--meta); white-space: nowrap;
|
|
}
|
|
.te-act:hover { background: var(--surface-hover); color: var(--fg); }
|
|
.te-files { color: var(--accent); font-size: inherit; margin-left: 6px; } /* chat-sized in a turn-end row, chrome-sized in dialogs */
|
|
.te-files:hover { text-decoration: underline; }
|
|
|
|
/* Empty state */
|
|
.empty-wrap {
|
|
min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
padding-bottom: 14vh;
|
|
}
|
|
.cp-hero-t { font-size: var(--fs-hero); font-weight: 600; }
|
|
.cp-hero-s { margin-top: 6px; font-size: var(--fs-s); color: var(--muted); }
|
|
.empty-actions { margin-top: 16px; }
|
|
.workspace-empty { padding-bottom: 10vh; }
|
|
|
|
/* queue list */
|
|
.q-list { max-width: var(--col); margin: 0 auto 6px; display: flex; flex-direction: column; gap: 4px; }
|
|
.q-item {
|
|
display: flex; align-items: center; gap: 8px; padding: 4px 10px;
|
|
background: var(--surface); border-radius: var(--r-s); font-size: var(--fs-s);
|
|
}
|
|
.q-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.q-item .ibtn { width: 20px; height: 20px; }
|
|
|
|
/* 1.2: local addresses in chat open in the Preview tab (same look as other links, monochrome) */
|
|
a.ac-local { cursor: pointer; }
|
|
.ts-out pre a.ac-local, .md pre a.ac-local { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); text-underline-offset: 2px; }
|
|
.md code a.ac-local { color: inherit; }
|
|
|
|
/* Path chips (Files panel → composer), also in the sent bubble */
|
|
.mention {
|
|
display: inline-flex; align-items: center; gap: 4px; max-width: 260px; height: 22px; padding: 0 6px;
|
|
border-radius: var(--r-s); background: var(--chip-bg); border: 1px solid var(--chip-line); color: var(--pill-fg);
|
|
font-size: var(--fs-s); font-family: var(--font-mono); white-space: nowrap; vertical-align: middle;
|
|
}
|
|
.mention svg { flex: none; }
|
|
.mention-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
.um-mentions { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; white-space: normal; }
|
|
.um .mention { background: color-mix(in oklab, var(--fg) 5%, var(--accent-soft)); }
|
|
|
|
/* 1.3 "添加到对话" button over a text selection (portaled, fixed). Grayscale, like the rest of the chrome. */
|
|
.qs-pop {
|
|
position: fixed; z-index: 60; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
|
|
border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: var(--fs-s);
|
|
box-shadow: 0 4px 14px rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .08); white-space: nowrap; cursor: pointer;
|
|
user-select: none; -webkit-user-select: none;
|
|
}
|
|
.qs-pop:hover { background: var(--surface-hover); }
|
|
.qs-pop svg { flex: none; color: var(--muted); }
|
|
.um-quote {
|
|
display: block; margin: 2px 0 6px; padding-left: 8px; border-left: 2px solid color-mix(in oklab, var(--fg) 30%, transparent);
|
|
color: var(--muted); font-size: var(--chat-fs-s); max-height: 7.5em; overflow: hidden;
|
|
}
|
|
|
|
/* 1.3 全部自动同意 (#727 review): the daemon's own approvals, one foldable row per run of tool calls, in the same flat
|
|
one-line style as the tool rows (icon slot · text · right-edge meta; clip, never wrap). Only the shield is amber. */
|
|
.apv { margin: 0 0 8px; min-width: 0; }
|
|
.apv-head {
|
|
display: flex; align-items: center; gap: 8px; width: 100%; min-height: 26px; padding: 0 6px; overflow: hidden; border-radius: var(--r-s);
|
|
color: var(--muted); font-size: var(--chat-fs-s); text-align: left; white-space: nowrap;
|
|
}
|
|
.apv-head:hover, .apv.open > .apv-head { color: var(--fg); background: var(--surface-hover); }
|
|
.apv-head .caret { flex: none; color: var(--meta); transition: transform var(--dur-1); }
|
|
.apv-head .caret.open { transform: rotate(90deg); }
|
|
.apv-ic { width: 14px; flex: none; display: inline-flex; justify-content: center; color: var(--auto-fg, var(--warn)); }
|
|
.apv-n { flex: none; }
|
|
.apv-peek { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--meta); font-family: var(--font-mono); font-size: var(--chat-code-fs); }
|
|
.apv-peek::before { content: "·"; margin-right: 8px; font-family: var(--font-ui); }
|
|
.apv-list { margin: 2px 0 0 13px; padding-left: 6px; border-left: 1px solid var(--line); }
|
|
.apv-row {
|
|
display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 6px; min-width: 0; overflow: hidden; white-space: nowrap;
|
|
border-radius: var(--r-s); color: var(--muted); font-size: var(--chat-fs-s);
|
|
}
|
|
.apv-row:hover { background: var(--surface-hover); color: var(--fg); }
|
|
.apv-cmd, .apv-path, .apv-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.apv-cmd, .apv-path { font-family: var(--font-mono); font-size: var(--chat-code-fs); }
|
|
.apv-meta { flex: none; margin-left: auto; color: var(--meta); font-size: var(--fs-xs); }
|
|
/* 1.3 upgrade notice (#727 review 3): told once that 全部自动同意 now really applies to Cursor / OpenCode / dsh */
|
|
.nt-auto {
|
|
text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); line-height: 1.6; color: var(--text);
|
|
}
|
|
.nt-auto-h { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
|