Ship Assistent 0.14.0: chat sessions, ask-only hops, and context compression.

Per-chat Generate session with sparse deltas; drop Cards/Civitai/wanted hops; rolling history summary via the same Ollama model with a budget chip and /compress.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 06:19:04 +03:00
co-authored by Cursor
parent d29436c944
commit 9ac24a828b
35 changed files with 5640 additions and 5652 deletions
+469 -45
View File
@@ -118,15 +118,15 @@
}
.sa-chats-drawer {
flex: 0 0 var(--sa-chats-drawer-width, 16rem);
width: var(--sa-chats-drawer-width, 16rem);
flex: 0 0 var(--sa-chats-drawer-width, 17.5rem);
width: var(--sa-chats-drawer-width, 17.5rem);
display: flex;
flex-direction: column;
gap: 0.35rem;
gap: 0.45rem;
min-height: 0;
border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
padding: 0.45rem 0.5rem;
border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
background: color-mix(in srgb, #000 22%, transparent);
padding: 0.55rem 0.4rem 0.55rem 0.45rem;
overflow: hidden;
transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.2s ease;
}
@@ -140,12 +140,54 @@
align-items: center;
justify-content: space-between;
gap: 0.35rem;
font-size: 0.82rem;
padding: 0.15rem 0.35rem 0.1rem;
}
.sa-chats-drawer-label {
font-size: 0.72rem;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
opacity: 0.55;
}
.sa-chats-drawer-actions {
display: inline-flex;
gap: 0.2rem;
gap: 0.1rem;
}
.sa-chats-icon-btn {
appearance: none;
border: 0;
background: transparent;
color: inherit;
width: 1.65rem;
height: 1.65rem;
border-radius: 0.4rem;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0.55;
}
.sa-chats-icon-btn:hover {
opacity: 1;
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-chats-search-wrap {
position: relative;
margin: 0 0.2rem;
}
.sa-chats-search-ico {
position: absolute;
left: 0.55rem;
top: 50%;
transform: translateY(-50%);
opacity: 0.4;
pointer-events: none;
}
.sa-layout {
@@ -555,8 +597,8 @@
box-shadow: none;
border-radius: 0;
border: none;
border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
background: color-mix(in srgb, #000 22%, transparent);
}
.sa-chats-panel-head {
@@ -570,51 +612,67 @@
appearance: none;
width: 100%;
box-sizing: border-box;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, #000 28%, transparent);
border: 1px solid transparent;
background: color-mix(in srgb, currentColor 7%, transparent);
color: inherit;
border-radius: 0.35rem;
padding: 0.35rem 0.5rem;
border-radius: 0.5rem;
padding: 0.42rem 0.55rem 0.42rem 1.7rem;
font: inherit;
font-size: 0.82rem;
font-size: 0.8rem;
}
.sa-chats-search:focus {
outline: 1px solid color-mix(in srgb, #6cf 55%, currentColor);
outline: none;
border-color: color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-chats-panel-hint {
font-size: 0.72rem;
opacity: 0.65;
line-height: 1.35;
display: none;
}
.sa-chats-list {
overflow: auto;
display: flex;
flex-direction: column;
gap: 0.25rem;
gap: 0.1rem;
min-height: 0;
padding: 0.15rem 0.15rem 0.4rem;
flex: 1;
}
.sa-chats-empty {
font-size: 0.82rem;
opacity: 0.65;
padding: 0.5rem 0.25rem;
font-size: 0.8rem;
opacity: 0.5;
padding: 0.85rem 0.55rem;
line-height: 1.4;
}
.sa-chat-row {
display: flex;
align-items: stretch;
gap: 0.2rem;
border-radius: 0.4rem;
border: 1px solid transparent;
background: color-mix(in srgb, currentColor 5%, transparent);
align-items: center;
gap: 0;
border-radius: 0.5rem;
border: 0;
background: transparent;
position: relative;
}
.sa-chat-row-active {
border-color: color-mix(in srgb, #6cf 45%, currentColor);
background: color-mix(in srgb, #6cf 12%, transparent);
background: color-mix(in srgb, currentColor 11%, transparent);
}
.sa-chat-row-active::before {
content: '';
position: absolute;
left: 0.35rem;
top: 50%;
transform: translateY(-50%);
width: 0.35rem;
height: 0.35rem;
border-radius: 50%;
background: #f59e0b;
box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 25%, transparent);
}
.sa-chat-row-main {
@@ -625,27 +683,60 @@
text-align: left;
flex: 1;
min-width: 0;
padding: 0.4rem 0.5rem;
padding: 0.48rem 0.45rem 0.48rem 0.55rem;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 0.12rem;
display: grid;
grid-template-columns: 1.1rem 1fr auto;
align-items: center;
gap: 0.45rem;
border-radius: 0.5rem;
}
.sa-chat-row-active .sa-chat-row-main {
padding-left: 1.05rem;
}
.sa-chat-row-main:hover {
background: color-mix(in srgb, currentColor 7%, transparent);
}
.sa-chat-row-active .sa-chat-row-main:hover {
background: transparent;
}
.sa-chat-row-ico {
width: 1.05rem;
height: 1.05rem;
opacity: 0.45;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.sa-chat-row-active .sa-chat-row-ico {
opacity: 0.75;
}
.sa-chat-row-title {
font-size: 0.85rem;
font-weight: 600;
font-size: 0.84rem;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.sa-chat-row-meta {
.sa-chat-row-active .sa-chat-row-title {
font-weight: 600;
}
.sa-chat-row-when {
font-size: 0.72rem;
opacity: 0.7;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.42;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
padding-right: 0.15rem;
}
.sa-chat-row-del {
@@ -653,16 +744,28 @@
border: 0;
background: transparent;
color: inherit;
opacity: 0.55;
opacity: 0;
cursor: pointer;
padding: 0 0.55rem;
font-size: 1.1rem;
width: 1.55rem;
height: 1.55rem;
border-radius: 0.35rem;
font-size: 0.95rem;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-right: 0.15rem;
}
.sa-chat-row:hover .sa-chat-row-del {
opacity: 0.45;
}
.sa-chat-row-del:hover {
opacity: 1;
opacity: 1 !important;
color: #f66;
background: color-mix(in srgb, #f66 12%, transparent);
}
.sa-live-dot {
@@ -1213,6 +1316,180 @@
border-color: color-mix(in srgb, #f2777a 45%, transparent);
}
.sa-ctx-wrap {
position: relative;
display: inline-flex;
align-items: center;
}
.sa-ctx-chip {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.72rem;
font-variant-numeric: tabular-nums;
padding: 0.15rem 0.5rem;
border-radius: 0.75rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, currentColor 6%, transparent);
cursor: pointer;
white-space: nowrap;
color: inherit;
line-height: 1.2;
}
.sa-ctx-chip:hover {
border-color: color-mix(in srgb, currentColor 45%, transparent);
}
.sa-ctx-dot {
width: 0.4rem;
height: 0.4rem;
border-radius: 50%;
background: color-mix(in srgb, #6ea8fe 80%, currentColor);
flex-shrink: 0;
}
.sa-ctx-ok {
border-color: color-mix(in srgb, #6ee7a8 35%, transparent);
}
.sa-ctx-warn {
color: color-mix(in srgb, #e3b341 85%, currentColor);
border-color: color-mix(in srgb, #e3b341 45%, transparent);
}
.sa-ctx-hot {
color: color-mix(in srgb, #f2777a 85%, currentColor);
border-color: color-mix(in srgb, #f2777a 50%, transparent);
}
.sa-ctx-compressing {
color: color-mix(in srgb, #6ea8fe 85%, currentColor);
border-color: color-mix(in srgb, #6ea8fe 50%, transparent);
}
.sa-ctx-panel {
position: absolute;
top: calc(100% + 0.35rem);
right: 0;
z-index: 40;
width: min(22rem, 78vw);
padding: 0.65rem 0.75rem 0.75rem;
border-radius: 0.55rem;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: color-mix(in srgb, #1a1d24 92%, transparent);
box-shadow: 0 0.6rem 1.4rem color-mix(in srgb, #000 45%, transparent);
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.sa-ctx-panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.4rem;
font-size: 0.85rem;
}
.sa-ctx-bar {
height: 0.35rem;
border-radius: 0.25rem;
background: color-mix(in srgb, currentColor 12%, transparent);
overflow: hidden;
}
.sa-ctx-bar-fill {
height: 100%;
width: 0%;
background: color-mix(in srgb, #6ee7a8 70%, currentColor);
transition: width 0.2s ease;
}
.sa-ctx-bar-fill[data-level="warn"] {
background: color-mix(in srgb, #e3b341 75%, currentColor);
}
.sa-ctx-bar-fill[data-level="hot"] {
background: color-mix(in srgb, #f2777a 75%, currentColor);
}
.sa-ctx-panel-body {
font-size: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
max-height: 14rem;
overflow: auto;
}
.sa-ctx-layer {
display: flex;
justify-content: space-between;
gap: 0.5rem;
opacity: 0.85;
}
.sa-ctx-layers-label,
.sa-ctx-meta,
.sa-ctx-see {
opacity: 0.65;
font-size: 0.7rem;
margin-top: 0.15rem;
}
.sa-ctx-summary {
margin: 0.2rem 0 0;
padding: 0.4rem 0.45rem;
font-size: 0.7rem;
white-space: pre-wrap;
word-break: break-word;
max-height: 7rem;
overflow: auto;
border-radius: 0.35rem;
background: color-mix(in srgb, currentColor 8%, transparent);
border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.sa-ctx-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.sa-ctx-auto {
font-size: 0.75rem;
}
.sa-msg-compress {
margin: 0.35rem 0.55rem;
padding: 0.35rem 0.55rem;
border-radius: 0.45rem;
border: 1px dashed color-mix(in srgb, #6ea8fe 40%, transparent);
background: color-mix(in srgb, #6ea8fe 8%, transparent);
font-size: 0.8rem;
}
.sa-msg-compress > summary {
cursor: pointer;
font-weight: 600;
}
.sa-msg-compress-body {
margin-top: 0.4rem;
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.sa-msg-compress-row {
opacity: 0.8;
font-size: 0.72rem;
white-space: pre-wrap;
word-break: break-word;
}
.sa-card-row-wanted {
border-color: color-mix(in srgb, #e3b341 40%, transparent);
}
@@ -2481,3 +2758,150 @@
pointer-events: none;
opacity: 0.45;
}
/* Turn activity timeline (model commands + pipeline) */
.sa-activity {
align-self: stretch;
margin: 0.35rem 0 0.55rem;
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
border-radius: 0.65rem;
background:
linear-gradient(180deg,
color-mix(in srgb, currentColor 7%, transparent),
color-mix(in srgb, currentColor 3%, transparent));
overflow: hidden;
box-shadow: 0 1px 0 color-mix(in srgb, #fff 4%, transparent) inset;
}
.sa-activity-live {
border-color: color-mix(in srgb, #6af 35%, transparent);
}
.sa-activity-done {
opacity: 0.92;
}
.sa-activity-head {
display: flex;
align-items: center;
gap: 0.55rem;
width: 100%;
padding: 0.55rem 0.75rem;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.sa-activity-head:hover {
background: color-mix(in srgb, currentColor 5%, transparent);
}
.sa-activity-spin {
width: 0.7rem;
height: 0.7rem;
border-radius: 50%;
border: 1.5px solid color-mix(in srgb, currentColor 25%, transparent);
border-top-color: color-mix(in srgb, #8cf 90%, currentColor);
flex-shrink: 0;
}
.sa-activity-live .sa-activity-spin {
animation: sa-spin 0.7s linear infinite;
}
.sa-activity-done .sa-activity-spin {
border-color: color-mix(in srgb, #6c6 55%, transparent);
border-top-color: #6c6;
animation: none;
background: color-mix(in srgb, #6c6 35%, transparent);
}
.sa-activity-title {
flex: 1;
min-width: 0;
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sa-activity-chev {
opacity: 0.45;
font-size: 0.75rem;
transition: transform 0.15s ease;
}
.sa-activity-collapsed .sa-activity-chev {
transform: rotate(-90deg);
}
.sa-activity-collapsed .sa-activity-steps {
display: none;
}
.sa-activity-steps {
display: flex;
flex-direction: column;
gap: 0.15rem;
padding: 0 0.55rem 0.6rem 0.75rem;
}
.sa-activity-step {
display: grid;
grid-template-columns: 1.1rem 1fr;
gap: 0.45rem;
align-items: start;
padding: 0.28rem 0.35rem;
border-radius: 0.4rem;
}
.sa-activity-step.sa-activity-running {
background: color-mix(in srgb, #6af 10%, transparent);
}
.sa-activity-step.sa-activity-done {
opacity: 0.85;
}
.sa-activity-step.sa-activity-skip {
opacity: 0.45;
}
.sa-activity-step.sa-activity-error {
background: color-mix(in srgb, #c44 12%, transparent);
}
.sa-activity-icon {
font-size: 0.78rem;
line-height: 1.35;
opacity: 0.7;
text-align: center;
}
.sa-activity-running .sa-activity-icon {
opacity: 1;
color: color-mix(in srgb, #8cf 80%, currentColor);
}
.sa-activity-label {
font-size: 0.86rem;
line-height: 1.35;
}
.sa-activity-detail {
margin-top: 0.1rem;
font-size: 0.78rem;
line-height: 1.35;
opacity: 0.62;
word-break: break-word;
}
@keyframes sa-spin {
to { transform: rotate(360deg); }
}