From 2c1411f5bb26ffc404c4ad361ea38916cb543958 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 7 Oct 2026 18:26:53 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge --- apps/desktop/electron/handoff-result.test.ts | 1 + apps/desktop/electron/remote-update-marker-programs.test.ts | 2 ++ apps/desktop/electron/windows-remote-lifecycle.test.ts | 2 ++ apps/desktop/src/app/shell/butterbar.tsx | 2 ++ .../src/components/assistant-ui/catalog-advanced-dialog.tsx | 2 ++ 5 files changed, 9 insertions(+) diff --git a/apps/desktop/electron/handoff-result.test.ts b/apps/desktop/electron/handoff-result.test.ts index c201f0d483534..ed33ad49c14db 100644 --- a/apps/desktop/electron/handoff-result.test.ts +++ b/apps/desktop/electron/handoff-result.test.ts @@ -144,6 +144,7 @@ test('line 2 moved by the heartbeat inside the run still correlates its result', const home = tempHome() const now = Math.floor(Date.now() / 1000) const started_at = now - 900 + const result = { ok: false, exit_code: 3, diff --git a/apps/desktop/electron/remote-update-marker-programs.test.ts b/apps/desktop/electron/remote-update-marker-programs.test.ts index f95bf968d459c..b80c2511354a4 100644 --- a/apps/desktop/electron/remote-update-marker-programs.test.ts +++ b/apps/desktop/electron/remote-update-marker-programs.test.ts @@ -65,6 +65,7 @@ test.skipIf(!powershell)( try { writeFileSync(script, `${WINDOWS_MARKER_JUDGE_PS}\n${PS_DRIVER}`) + const { stdout } = await execFile(powershell!, [ '-NoProfile', '-ExecutionPolicy', @@ -73,6 +74,7 @@ test.skipIf(!powershell)( script, corpusPath ]) + const verdicts = Object.fromEntries( stdout .trim() diff --git a/apps/desktop/electron/windows-remote-lifecycle.test.ts b/apps/desktop/electron/windows-remote-lifecycle.test.ts index 6b56cc2fd2243..8dd81df005241 100644 --- a/apps/desktop/electron/windows-remote-lifecycle.test.ts +++ b/apps/desktop/electron/windows-remote-lifecycle.test.ts @@ -268,9 +268,11 @@ test('Windows gates keep a dead marker while the checkout lock or a lease byte i } const deleteAt = spawnScript.indexOf('[IO.File]::Delete($marker)') + const guardAt = spawnScript.indexOf( 'if($verdict -eq "CLEAR" -and (Test-CheckoutLockHeld $checkoutRoots)){$verdict="HELD"}' ) + assert.ok(guardAt > 0 && guardAt < deleteAt, 'the checkout probe must precede the dead-marker delete') assert.match( probeScript, diff --git a/apps/desktop/src/app/shell/butterbar.tsx b/apps/desktop/src/app/shell/butterbar.tsx index 08176b56a7114..4f0d954204460 100644 --- a/apps/desktop/src/app/shell/butterbar.tsx +++ b/apps/desktop/src/app/shell/butterbar.tsx @@ -17,10 +17,12 @@ export function Butterbar() { const items = useStore($butterbarItems) const [activeId, setActiveId] = useState(null) const [paused, setPaused] = useState(false) + const index = Math.max( 0, items.findIndex(item => item.id === activeId) ) + const item = items[index] const multiple = items.length > 1 diff --git a/apps/desktop/src/components/assistant-ui/catalog-advanced-dialog.tsx b/apps/desktop/src/components/assistant-ui/catalog-advanced-dialog.tsx index a368b8610ba81..6f1cf4b1e815d 100644 --- a/apps/desktop/src/components/assistant-ui/catalog-advanced-dialog.tsx +++ b/apps/desktop/src/components/assistant-ui/catalog-advanced-dialog.tsx @@ -109,10 +109,12 @@ function CatalogAdvancedForm({ entry, fields, kind, onCancel, onInstall }: Catal const profiles = useStore($profiles) const [agentHalf, setAgentHalf] = useState(true) const [desktopHalf, setDesktopHalf] = useState(entry.hasDesktopHalf) + // Empty when the chat's home is no named profile: the install then goes to the chat's own home. const [targetProfile, setTargetProfile] = useState( entry.targetProfile ? normalizeProfileKey(entry.targetProfile) : '' ) + const [enable, setEnable] = useState(true) const [force, setForce] = useState(false) const [pin, setPin] = useState(entry.sha ?? '')