Add Studio run interrupt, confirm actions, and template-bound controls.

AbortController cancels message/reroll streams; undo/reroll use in-place confirm; runControls in skill templates gate UI by skillId.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-31 23:03:39 +08:00
parent 5bfe7a733f
commit 0f50c98cf3
7 changed files with 318 additions and 110 deletions

View File

@@ -789,6 +789,22 @@
background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg-secondary));
}
.studio-run-turn-btn.is-confirm-pending {
border-color: #f5576c;
background: color-mix(in srgb, #f5576c 12%, var(--color-bg-secondary));
color: #f5576c;
animation: studio-run-confirm-pulse 1.2s infinite;
}
@keyframes studio-run-confirm-pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.75;
}
}
.studio-run-stub-note {
margin: 0;
font-size: 0.65rem;