From e3ab0e174cbb68a4505ae88839aaec2414ed2e53 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Mar 2026 00:12:20 -0700 Subject: [PATCH] style(core): normalize rebase fallout --- src/cron/isolated-agent.test-setup.ts | 2 +- src/infra/bonjour.ts | 1 - ui/src/ui/storage.ts | 10 ++++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/cron/isolated-agent.test-setup.ts b/src/cron/isolated-agent.test-setup.ts index 17093bda0a5..c70ea583f68 100644 --- a/src/cron/isolated-agent.test-setup.ts +++ b/src/cron/isolated-agent.test-setup.ts @@ -1,6 +1,6 @@ import { vi } from "vitest"; -import { signalOutbound, telegramOutbound } from "../../test/channel-outbounds.js"; import { parseTelegramTarget } from "../../extensions/telegram/src/targets.js"; +import { signalOutbound, telegramOutbound } from "../../test/channel-outbounds.js"; import { loadModelCatalog } from "../agents/model-catalog.js"; import { runEmbeddedPiAgent } from "../agents/pi-embedded.js"; import { runSubagentAnnounceFlow } from "../agents/subagent-announce.js"; diff --git a/src/infra/bonjour.ts b/src/infra/bonjour.ts index e7ed5adf7f1..2b500986f33 100644 --- a/src/infra/bonjour.ts +++ b/src/infra/bonjour.ts @@ -1,4 +1,3 @@ -import type { CiaoService, Responder } from "@homebridge/ciao"; import { logDebug, logWarn } from "../logger.js"; import { getLogger } from "../logging.js"; import { ignoreCiaoCancellationRejection } from "./bonjour-ciao.js"; diff --git a/ui/src/ui/storage.ts b/ui/src/ui/storage.ts index fcd9c4469c8..aea47188bd3 100644 --- a/ui/src/ui/storage.ts +++ b/ui/src/ui/storage.ts @@ -194,7 +194,10 @@ export function loadSettings(): UiSettings { try { // First check for legacy key (no scope), then check for scoped key const scopedKey = settingsKeyForGateway(defaults.gatewayUrl); - const raw = storage?.getItem(scopedKey) ?? storage?.getItem(SETTINGS_KEY_PREFIX + "default") ?? storage?.getItem("openclaw.control.settings.v1"); + const raw = + storage?.getItem(scopedKey) ?? + storage?.getItem(SETTINGS_KEY_PREFIX + "default") ?? + storage?.getItem("openclaw.control.settings.v1"); if (!raw) { return defaults; } @@ -266,7 +269,10 @@ function persistSettings(next: UiSettings) { let existingSessionsByGateway: Record = {}; try { // Try to migrate from legacy key or other scopes - const raw = storage?.getItem(scopedKey) ?? storage?.getItem(SETTINGS_KEY_PREFIX + "default") ?? storage?.getItem("openclaw.control.settings.v1"); + const raw = + storage?.getItem(scopedKey) ?? + storage?.getItem(SETTINGS_KEY_PREFIX + "default") ?? + storage?.getItem("openclaw.control.settings.v1"); if (raw) { const parsed = JSON.parse(raw) as PersistedUiSettings; if (parsed.sessionsByGateway && typeof parsed.sessionsByGateway === "object") {