实现 Codex 风格上下文压缩时间线交互

This commit is contained in:
2026-08-15 08:43:33 +08:00
parent 953b0f491e
commit fd9b5b46a9
13 changed files with 2044 additions and 73 deletions

View File

@@ -737,6 +737,31 @@ html[data-ui-language='ru'] {
will-change: opacity, transform;
}
@keyframes context-compaction-shimmer {
from {
background-position: 100% 50%;
}
to {
background-position: -100% 50%;
}
}
.context-compaction-shimmer {
color: transparent;
background-image: linear-gradient(
100deg,
hsl(var(--muted-foreground) / 0.58) 25%,
hsl(var(--foreground) / 0.78) 50%,
hsl(var(--muted-foreground) / 0.58) 75%
);
background-position: 100% 50%;
background-size: 200% 100%;
background-clip: text;
animation: context-compaction-shimmer 2.4s linear infinite;
-webkit-background-clip: text;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
@@ -770,4 +795,10 @@ html[data-ui-language='ru'] {
transform: scaleY(1);
}
.context-compaction-shimmer {
color: hsl(var(--muted-foreground));
background-image: none;
animation: none;
}
}