diff --git a/package.json b/package.json index 461b7969fe..ef5b895512 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted ai.openclaw.ios'", "lint": "oxlint --type-aware", "lint:all": "pnpm lint && pnpm lint:swift", - "lint:fix": "pnpm format:fix && oxlint --type-aware --fix", + "lint:fix": "oxlint --type-aware --fix && pnpm format:fix", "lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)", "mac:open": "open dist/OpenClaw.app", "mac:package": "bash scripts/package-mac-app.sh", diff --git a/src/agents/system-prompt.ts b/src/agents/system-prompt.ts index 5be6fba127..b1fde37325 100644 --- a/src/agents/system-prompt.ts +++ b/src/agents/system-prompt.ts @@ -58,7 +58,9 @@ function buildUserIdentitySection(ownerLine: string | undefined, isMinimal: bool } function buildTimeSection(params: { userTimezone?: string }) { - if (!params.userTimezone) return []; + if (!params.userTimezone) { + return []; + } return [ "## Current Date & Time", `Time zone: ${params.userTimezone}`, diff --git a/src/routing/resolve-route.ts b/src/routing/resolve-route.ts index bfa187e573..cd46a1660c 100644 --- a/src/routing/resolve-route.ts +++ b/src/routing/resolve-route.ts @@ -221,7 +221,9 @@ export function resolveAgentRoute(input: ResolveAgentRouteInput): ResolvedAgentR : null; if (parentPeer && parentPeer.id) { const parentPeerMatch = bindings.find((b) => matchesPeer(b.match, parentPeer)); - if (parentPeerMatch) return choose(parentPeerMatch.agentId, "binding.peer.parent"); + if (parentPeerMatch) { + return choose(parentPeerMatch.agentId, "binding.peer.parent"); + } } if (guildId) {