mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
fix(panel): auto-provision Desktop shortcuts and add out-of-job 1-click host relaunch for 2.33.0+
- Add cross-platform desktop launcher manager (backend/desktop-launcher-config.mjs): automatically appends --remote-debugging-port=0 to user Desktop (including OneDrive), Start Menu, Taskbar pinned, and Startup Antigravity.lnk shortcuts plus existing HKCU Run entries on Windows and XDG .desktop launchers on Linux, with clean rollback when switching back to Sidebar Only mode - Remove ineffective Desktop argv.json provisioning (Electron Desktop 2.33.0 does not read argv.json) while retaining ~/.antigravity-ide/argv.json for Antigravity IDE - Add POST /api/bridge/relaunch (with hot-reload POST /api/settings fallback) using Shell.Application (-Sta + UTF-8 BOM .ps1) on Windows to break out of the host Job Object, exit tray instances, clean up stale DevToolsActivePort files, sanitize host environment variables, and relaunch with --remote-debugging-port=0 (plus open -a / nohup support on macOS and Linux, and live running-process path discovery across drives) - Surface dismissible BridgeStatusNotice banner directly at the top of App.js alongside Settings tabs so users can activate topbar/composer mounting in one click Closes #26
This commit is contained in:
@@ -4181,11 +4181,20 @@ html[data-standalone="true"] .app-shell {
|
||||
font-size: var(--fs-md);
|
||||
}
|
||||
|
||||
/* --- CDP / 双栖桥接端口诊断与引导卡片 (.settings-bridge-notice) --- */
|
||||
/* --- CDP / 双栖桥接端口诊断与一键重拉卡片 (.settings-bridge-notice) --- */
|
||||
.app-bridge-banner-slot {
|
||||
padding: 0 var(--space-4) var(--space-2);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.app-bridge-banner-slot[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.settings-bridge-notice {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
align-items: stretch;
|
||||
gap: 5px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-radius: var(--radius-xs);
|
||||
@@ -4203,11 +4212,20 @@ html[data-standalone="true"] .app-shell {
|
||||
}
|
||||
|
||||
.settings-bridge-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
color: var(--metric-warn);
|
||||
}
|
||||
|
||||
.settings-bridge-head-main {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
color: var(--metric-warn);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.settings-bridge-notice.is-restart .settings-bridge-head,
|
||||
@@ -4228,6 +4246,13 @@ html[data-standalone="true"] .app-shell {
|
||||
color: var(--metric-warn);
|
||||
}
|
||||
|
||||
.settings-bridge-dismiss-btn {
|
||||
padding: 2px 4px;
|
||||
min-height: 20px;
|
||||
line-height: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.settings-bridge-desc {
|
||||
margin: 0;
|
||||
font-size: var(--fs-sm);
|
||||
@@ -4236,8 +4261,54 @@ html[data-standalone="true"] .app-shell {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.settings-bridge-copy-btn {
|
||||
.settings-bridge-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.settings-bridge-relaunch-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
min-height: calc(24px * var(--ui-font-scale, 1));
|
||||
padding: 2px var(--space-3);
|
||||
border-radius: var(--radius-xs);
|
||||
border: 1px solid var(--accent-primary-border);
|
||||
background: var(--accent-primary-soft);
|
||||
color: var(--accent-primary);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
max-width: 100%;
|
||||
transition:
|
||||
background-color var(--dur-instant) var(--ease-fast),
|
||||
opacity var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.settings-bridge-relaunch-btn:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--accent-primary) 20%, transparent);
|
||||
}
|
||||
|
||||
.settings-bridge-relaunch-btn:disabled {
|
||||
opacity: 0.65;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.settings-bridge-relaunch-btn[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.settings-bridge-relaunch-text {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.settings-bridge-copy-btn {
|
||||
min-height: calc(24px * var(--ui-font-scale, 1));
|
||||
padding: 2px var(--space-3);
|
||||
font-size: var(--fs-xs);
|
||||
|
||||
Reference in New Issue
Block a user