fix(panel): auto-provision Desktop argv.json and surface CDP bridge diagnostics for 2.33.0+ (Refs #26)

This commit is contained in:
fish
2026-11-18 20:11:31 +09:00
parent a954a98080
commit 935eb001ca
16 changed files with 1319 additions and 33 deletions
@@ -41,6 +41,7 @@ import {
saveSettingsPatch,
} from '../../store/telemetryStore.js';
import { getVisibleMonitorView, uiStore } from '../../store/uiStore.js';
import { BridgeStatusNotice } from '../../components/settings/BridgeStatusNotice.js';
import { CollapsibleSection } from '../../components/settings/CollapsibleSection.js';
import { EditableSlotList } from '../../components/settings/EditableSlotList.js';
import { buildStructurePreviewTelemetry } from '../../components/settings/structurePreviewMock.js';
@@ -119,6 +120,8 @@ export const SettingsStructureTab = defineComponent({
let rawStepTokenComboText = DEFAULT_CLIENT_STEP_TOKEN_COMBO_FORMAT;
let draftStepColumns = [...DEFAULT_CLIENT_STEP_COLUMNS];
let latestSettings = null;
let latestWindowBridge = null;
let latestHostPlatform = 'win32';
function isStructureVisible() {
const st = uiStore.getState();
@@ -329,6 +332,8 @@ export const SettingsStructureTab = defineComponent({
},
});
const mountBridgeNotice = BridgeStatusNotice({});
const mountSection = CollapsibleSection({
collapsible: false,
icon: 'dock',
@@ -362,6 +367,7 @@ export const SettingsStructureTab = defineComponent({
mountPreviewCanvas,
h('div', { className: 'settings-divider' }),
h('div', { className: 'form-row' }, [mountModeLabelEl, windowMountSelect.el]),
mountBridgeNotice.el,
h('div', { className: 'form-row' }, [
h('div', { className: 'settings-inline-row' }, [
popoverWidthLabelEl,
@@ -394,6 +400,11 @@ export const SettingsStructureTab = defineComponent({
modelValue: draftWindowMountMode,
options: getMountModeOptions(),
});
mountBridgeNotice.refs.update({
visible: draftWindowMountMode !== 'sidebar',
windowBridge: latestWindowBridge,
hostPlatform: latestHostPlatform,
});
popoverWidthModeToggle.setProps({
modelValue: draftPopoverWidthMode,
options: getPopoverWidthModeOptions(),
@@ -983,9 +994,15 @@ export const SettingsStructureTab = defineComponent({
stepsSection.el,
]);
function renderSettings(settings) {
function renderSettings(
settings,
windowBridge = latestWindowBridge,
hostPlatform = latestHostPlatform
) {
if (!settings) return;
latestSettings = settings;
if (windowBridge !== undefined) latestWindowBridge = windowBridge;
if (hostPlatform) latestHostPlatform = hostPlatform;
draftWindowMountMode = normalizeClientWindowMountMode(
settings.windowMountMode,
settings.enableWindowOverlay
@@ -1087,6 +1104,7 @@ export const SettingsStructureTab = defineComponent({
onCleanup(() => {
unsubUi();
mountBridgeNotice.destroy();
capsulePreviewWidget.destroy();
hoverPreviewHost.destroy();
overviewPreviewHost.destroy();
@@ -1115,6 +1133,7 @@ export const SettingsStructureTab = defineComponent({
refs: {
thirdNavBar,
capsulePreviewWidget,
mountBridgeNotice,
hoverPreviewHost,
overviewPreviewHost,
stepTablePreview,