Ship Assistent 0.7.6: multi-chat history, UI polish, and race fixes.

Persist chats with Generate param snapshots, always open a new chat on start, and abort in-flight work on clear/switch so replies cannot land in the wrong chat.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-22 00:06:11 +03:00
co-authored by Cursor
parent 25c98b2d1d
commit 6d8aaefc38
6 changed files with 1260 additions and 140 deletions
+290 -7
View File
@@ -335,6 +335,83 @@
align-items: center;
}
.sa-live-params {
font-size: 0.75rem;
opacity: 0.78;
padding: 0.2rem 0.15rem 0.35rem;
letter-spacing: 0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-variant-numeric: tabular-nums;
}
.sa-more-wrap {
position: relative;
display: inline-flex;
align-items: center;
gap: 0.15rem;
}
.sa-more-menu {
position: absolute;
z-index: 40;
bottom: calc(100% + 0.25rem);
left: 0;
min-width: 11rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
padding: 0.35rem;
border-radius: 0.45rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #1a1a1a 92%, currentColor);
box-shadow: 0 8px 24px color-mix(in srgb, #000 45%, transparent);
}
#sa_clear_more_wrap .sa-more-menu {
left: auto;
right: 0;
bottom: auto;
top: calc(100% + 0.25rem);
}
.sa-more-item {
appearance: none;
border: 0;
background: transparent;
color: inherit;
text-align: left;
padding: 0.4rem 0.55rem;
border-radius: 0.3rem;
cursor: pointer;
font-size: 0.85rem;
}
.sa-more-item:hover {
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-mode-badge {
display: inline-flex;
align-items: center;
padding: 0.12rem 0.45rem;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: lowercase;
border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
background: color-mix(in srgb, currentColor 8%, transparent);
opacity: 0.92;
flex: 0 0 auto;
}
.sa-mode-badge.sa-mode-hot {
border-color: color-mix(in srgb, #f5a623 55%, currentColor);
background: color-mix(in srgb, #f5a623 18%, transparent);
}
.sa-chat-pane {
flex: 1 1 auto;
display: flex;
@@ -348,6 +425,7 @@
}
.sa-chat-header {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
@@ -355,6 +433,7 @@
padding: 0.5rem 0.75rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
background: color-mix(in srgb, currentColor 5%, transparent);
flex-wrap: wrap;
}
.sa-chat-title {
@@ -363,6 +442,144 @@
display: flex;
align-items: center;
gap: 0.45rem;
flex-wrap: wrap;
}
.sa-sessions-bar {
display: inline-flex;
align-items: center;
gap: 0.3rem;
margin-left: 0.15rem;
}
.sa-sessions-toggle {
font-size: 0.78rem !important;
padding: 0.18rem 0.5rem !important;
}
.sa-session-label {
font-size: 0.78rem;
font-weight: 500;
opacity: 0.75;
max-width: 10rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
border-radius: 0.3rem;
padding: 0.1rem 0.35rem;
}
.sa-session-label:hover {
opacity: 1;
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-chats-panel {
position: absolute;
z-index: 50;
top: calc(100% - 1px);
left: 0.5rem;
right: 0.5rem;
max-width: 26rem;
max-height: min(50vh, 22rem);
display: flex;
flex-direction: column;
gap: 0.35rem;
padding: 0.55rem;
border-radius: 0 0 0.5rem 0.5rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #161616 94%, currentColor);
box-shadow: 0 12px 28px color-mix(in srgb, #000 40%, transparent);
}
.sa-chats-panel-head {
font-size: 0.78rem;
font-weight: 650;
opacity: 0.85;
letter-spacing: 0.03em;
}
.sa-chats-panel-hint {
font-size: 0.72rem;
opacity: 0.65;
line-height: 1.35;
}
.sa-chats-list {
overflow: auto;
display: flex;
flex-direction: column;
gap: 0.25rem;
min-height: 0;
}
.sa-chats-empty {
font-size: 0.82rem;
opacity: 0.65;
padding: 0.5rem 0.25rem;
}
.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);
}
.sa-chat-row-active {
border-color: color-mix(in srgb, #6cf 45%, currentColor);
background: color-mix(in srgb, #6cf 12%, transparent);
}
.sa-chat-row-main {
appearance: none;
border: 0;
background: transparent;
color: inherit;
text-align: left;
flex: 1;
min-width: 0;
padding: 0.4rem 0.5rem;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 0.12rem;
}
.sa-chat-row-title {
font-size: 0.85rem;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-chat-row-meta {
font-size: 0.72rem;
opacity: 0.7;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-chat-row-del {
appearance: none;
border: 0;
background: transparent;
color: inherit;
opacity: 0.55;
cursor: pointer;
padding: 0 0.55rem;
font-size: 1.1rem;
line-height: 1;
}
.sa-chat-row-del:hover {
opacity: 1;
color: #f66;
}
.sa-live-dot {
@@ -818,9 +1035,18 @@
.sa-chips {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
gap: 0.35rem;
align-items: center;
overflow-x: auto;
overflow-y: hidden;
max-width: 100%;
padding-bottom: 0.15rem;
scrollbar-width: thin;
}
.sa-chips::-webkit-scrollbar {
height: 4px;
}
.sa-chip {
@@ -835,6 +1061,7 @@
letter-spacing: 0.02em;
cursor: pointer;
line-height: 1.3;
flex: 0 0 auto;
}
.sa-chip:hover {
@@ -1080,14 +1307,14 @@
.sa-card-row {
display: flex;
gap: 0.45rem;
align-items: flex-start;
gap: 0.55rem;
align-items: center;
}
.sa-card-row-thumb {
width: 2.4rem;
height: 2.4rem;
border-radius: 0.3rem;
width: 3.6rem;
height: 3.6rem;
border-radius: 0.35rem;
object-fit: cover;
flex: 0 0 auto;
background: color-mix(in srgb, currentColor 8%, transparent);
@@ -1099,12 +1326,68 @@
flex: 1;
}
.sa-card-row-name {
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sa-card-row-chat {
flex: 0 0 auto;
padding: 0.2rem 0.45rem !important;
font-size: 0.85rem;
}
.sa-btn-gen.sa-has-patch {
border-color: color-mix(in srgb, #3fb950 55%, currentColor);
box-shadow: inset 0 0 0 1px color-mix(in srgb, #3fb950 25%, transparent);
}
.sa-patch-details {
margin: 0.35rem 0 0.15rem;
}
.sa-patch-details > summary {
cursor: pointer;
font-size: 0.82rem;
opacity: 0.88;
user-select: none;
list-style: none;
}
.sa-patch-details > summary::-webkit-details-marker {
display: none;
}
.sa-patch-details > summary::before {
content: '▸ ';
opacity: 0.7;
}
.sa-patch-details[open] > summary::before {
content: '▾ ';
}
.sa-patch-details pre {
margin-top: 0.35rem;
max-height: 14rem;
overflow: auto;
}
.sa-patch-auto {
opacity: 0.95;
}
.sa-lora-chips {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
gap: 0.3rem;
align-items: center;
min-height: 0;
overflow-x: auto;
max-width: 100%;
scrollbar-width: thin;
}
.sa-lora-chip {