feat(panel): 3-tier update modes, topbar update prompt, and Gemini Hydrogen & Helix support (v1.4.4)

This commit is contained in:
fish
2026-11-11 23:41:45 +09:00
parent 4f151273a8
commit 3b2f19150e
31 changed files with 1024 additions and 175 deletions
@@ -9,6 +9,7 @@ import { h, patchAttr, patchClasses, patchText } from '../../core/domPatch.js';
import { createSvgIcon, patchSvgIcon } from '../../icons/SvgIcon.js';
import {
fetchTelemetry,
normalizeClientUpdateMode,
telemetryStore,
triggerPluginUpdate,
} from '../../store/telemetryStore.js';
@@ -175,9 +176,13 @@ export const TopSessionHeader = defineComponent({
const aggregated = actConv?.aggregated;
const cloudStatus = telemetry?.cloudStatus;
const hasUpdate = Boolean(cloudStatus?.updateAvailable);
patchAttr(updateBtn, 'hidden', !hasUpdate);
if (hasUpdate && !isHeaderUpdating) {
const updateMode = normalizeClientUpdateMode(
telemetry?.settings?.pluginUpdateMode,
telemetry?.settings?.autoUpdatePlugin
);
const showUpdate = Boolean(cloudStatus?.updateAvailable) && updateMode !== 'off';
patchAttr(updateBtn, 'hidden', !showUpdate);
if (showUpdate && !isHeaderUpdating) {
patchText(
updateBtnText,
cloudStatus?.latestPluginVersion