Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
revert(motion): 恢复扫光平滑缓动
david857566bca5e8
diff --git a/apps/desktop/src/renderer/styles/globals.css b/apps/desktop/src/renderer/styles/globals.cssindex fd1bd2a931..bfa0c45da0 100644--- a/apps/desktop/src/renderer/styles/globals.css+++ b/apps/desktop/src/renderer/styles/globals.css@@ -907,8 +907,7 @@ body.resizing-pane [data-ghost-webview] {width: 36%;border-radius: 2px;background: var(--text-tertiary);- /* steps(36):1.5s / 36 步 = 24fps(§14.4 低帧率原则,同 ghost-card-sweep)。 */- animation: session-card-prog 1.5s steps(36, end) infinite;+ animation: session-card-prog 1.5s ease-in-out infinite;}@keyframes session-card-prog {0% {@@ -1144,9 +1143,7 @@ body.resizing-pane [data-ghost-webview] {}}.ghost-card-sweep {- /* steps(53):2.2s / 53 步 ≈ 24fps(§14.4 低帧率原则)。常驻扫光锁到电影帧率,- 合成帧减半以上;轻微颗粒感与纸面质感相合,肉眼近似无损。 */- animation: ghost-card-sweep 2.2s steps(53, end) infinite;+ animation: ghost-card-sweep 2.2s ease-in-out infinite;}@media (prefers-reduced-motion: reduce) {.ghost-card-sweep {diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.mdindex 85e4db65fd..e458b933fc 100644--- a/docs/design-rules/DESIGN.md+++ b/docs/design-rules/DESIGN.md@@ -661,7 +661,6 @@ long duration to leak into any other hover or transition.- Every new `@keyframes` / `animate-*` class must be registered in the `prefers-reduced-motion` whitelist in `globals.css` (the global `* { transition: none }` does not catch keyframes).- Real-time direct-manipulation interactions (resizer drag, drag-follow) get **no easing** — following the hand IS the feedback.- Forbidden: pointless displacement, bouncing, parallax, looping decoration, `transition-all`, and typewriter per-character animation on streamed text (streaming already is the motion). Interactions stay fast and direct. (Per-**word** opacity fade-in on streamed text is **not** the typewriter — see the sanctioned stream-word-fade class below: the word is fully laid out and only its opacity ramps; ruled distinct on 2026-08-07.)-- **Low-frame-rate principle for persistent sweeps (2026-08-07)**: looping sweep/progress indicators (`ghost-card-sweep`, `session-card-bar`) use `steps(N, end)` easing tuned to ≈24fps (N = duration-in-seconds × 24) instead of smooth 60fps interpolation. Halves compositor work for animations that run for minutes, and the faint stepped cadence reads as paper grain rather than glass gloss — visually near-lossless. Apply to new persistent translate/sweep loops; do **not** apply to one-shot enters/exits or opacity breathing (steps on a 2-keyframe opacity fade collapses it into a blink).- **Cadenced running shimmer (2026-08-07)**: the running status bar's breathing (`status-bar-shimmer`) is **event-driven, not an infinite loop** — one 1.5s dip (1 → 0.45 → 1, `steps(18)`) plays per real sign of progress (status text change / token count advance; re-triggered via keyed remount in `RunningStatusBar`, back-to-back plays merge through an animation-end pending flag). Silence (long thinking, tool wait) holds steady full opacity. Semantics: *breathing = producing*, not *heartbeat = alive*. New loading/working indicators should prefer this cadenced pattern over a new infinite loop.#### Exception category: container transform (chip lifts off and grows)