feat: harden local shell, SFTP, and desktop session reliability
Finder-launched terminals now inherit a login PATH so tools like ollama resolve, destructive SFTP/editor actions require confirmation, and terminal search plus window dragging work again. SSH forwards and RDP sessions keep listeners and survive reconnect without FastPath crashes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
188f3556ed
commit
08696896f9
223 files changed
+13493
-3423
No files matched your search
@@ -18,31 +18,31 @@ const iconMap: Record<ToastType, typeof CheckCircle> = {
|
||||
info: Info,
|
||||
}
|
||||
|
||||
/** 类型 → 颜色样式映射 */
|
||||
/** 类型 → 颜色样式映射(theme tokens,浅色/深色都可读) */
|
||||
const colorMap: Record<ToastType, { bg: string; border: string; icon: string; text: string }> = {
|
||||
success: {
|
||||
bg: 'bg-green-900/40',
|
||||
border: 'border-green-700/60',
|
||||
icon: 'text-green-400',
|
||||
text: 'text-green-200',
|
||||
bg: 'bg-feedback-success-bg',
|
||||
border: 'border-feedback-success/35',
|
||||
icon: 'text-feedback-success',
|
||||
text: 'text-content-primary',
|
||||
},
|
||||
error: {
|
||||
bg: 'bg-red-900/40',
|
||||
border: 'border-red-700/60',
|
||||
icon: 'text-red-400',
|
||||
text: 'text-red-200',
|
||||
bg: 'bg-feedback-error-bg',
|
||||
border: 'border-feedback-error/35',
|
||||
icon: 'text-feedback-error',
|
||||
text: 'text-content-primary',
|
||||
},
|
||||
warning: {
|
||||
bg: 'bg-surface-basember-900/40',
|
||||
border: 'border-amber-700/60',
|
||||
icon: 'text-amber-400',
|
||||
text: 'text-amber-200',
|
||||
bg: 'bg-feedback-warning-bg',
|
||||
border: 'border-feedback-warning/35',
|
||||
icon: 'text-feedback-warning',
|
||||
text: 'text-content-primary',
|
||||
},
|
||||
info: {
|
||||
bg: 'bg-blue-900/40',
|
||||
border: 'border-blue-700/60',
|
||||
icon: 'text-blue-400',
|
||||
text: 'text-blue-200',
|
||||
bg: 'bg-feedback-info-bg',
|
||||
border: 'border-feedback-info/35',
|
||||
icon: 'text-feedback-info',
|
||||
text: 'text-content-primary',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user