feat(panel): add VS Code extension, Remote-SSH, and remote CLI support

- Auto-discover and provision standard VS Code / VS Code Insiders argv.json without touching Antigravity Desktop port files
- Add independent vsCodeMountMode (default: Input Box / composer, optional: Top Bar / dual; omit Sidebar Only in VS Code host)
- Support Remote-SSH endpoint isolation for VS Code Antigravity extension and instant conversation following via passive route watcher + /api/bridge-route-ping
- Add remote-cli-bridge to detect remote agy CLI usage-monitor plugin and auto-mount on Top Bar over on-demand SSH loopback tunnels (tier1Only), skipping hosts with neither plugin
- Optimize background CDP polling and remote idle polling cadence
- Update README.md / README.zh-CN.md and add regression tests
This commit is contained in:
2026-11-26 18:01:30 +08:00
parent 710b09275f
commit 13b84bfa86
18 changed files with 1953 additions and 170 deletions
@@ -4,7 +4,10 @@
* extracted from WindowOverlayShell.js.
*/
import { readInjectedWindowBridge } from '../../../shared/window-bridge-protocol.mjs';
import {
isVsCodeExtensionHost,
readInjectedWindowBridge,
} from '../../../shared/window-bridge-protocol.mjs';
import {
extractHostRouteCascadeId,
normalizeClientWindowMountMode,
@@ -781,12 +784,27 @@ export function isIdeExtensionChatFrame() {
export function resolveActiveDockTarget(options = undefined) {
const settings = telemetryStore.getState().telemetry?.settings;
const rawMode =
settings?.windowMountMode ??
readInjectedWindowBridge()?.mountMode;
const bridge = readInjectedWindowBridge();
const isVsCode = isVsCodeExtensionHost();
const forceTopbar = bridge?.forceTopbarMode === true;
const rawMode = forceTopbar
? 'dual'
: isVsCode
? settings?.vsCodeMountMode === 'dual'
? 'dual'
: bridge?.mountMode === 'dual' && settings?.vsCodeMountMode === undefined
? 'dual'
: 'composer'
: settings?.windowMountMode ?? bridge?.mountMode;
const mountMode =
options?.mountMode ||
normalizeClientWindowMountMode(rawMode, settings?.enableWindowOverlay);
(forceTopbar
? 'dual'
: isVsCode
? rawMode === 'dual'
? 'dual'
: 'composer'
: normalizeClientWindowMountMode(rawMode, settings?.enableWindowOverlay));
if (isIdeExtensionChatFrame()) {
if (mountMode !== 'composer') return null;
return findHostComposerAutoTarget(