style: apply oxfmt updates

This commit is contained in:
Peter Steinberger
2026-04-11 01:50:11 +01:00
parent bbdcf2963b
commit edb8f52c07
4 changed files with 10 additions and 15 deletions

View File

@@ -29,9 +29,8 @@ vi.mock("./commands-compact.runtime.js", () => ({
waitForEmbeddedPiRunEnd: vi.fn().mockResolvedValue(undefined),
}));
const { compactEmbeddedPiSession, resolveSessionFilePathOptions } = await import(
"./commands-compact.runtime.js"
);
const { compactEmbeddedPiSession, resolveSessionFilePathOptions } =
await import("./commands-compact.runtime.js");
function buildCompactParams(
commandBodyNormalized: string,

View File

@@ -1,3 +1,4 @@
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
import type { OpenClawConfig } from "../../config/config.js";
import { logVerbose } from "../../globals.js";
import {
@@ -5,7 +6,6 @@ import {
normalizeOptionalLowercaseString,
normalizeOptionalString,
} from "../../shared/string-coerce.js";
import { resolveSessionAgentId } from "../../agents/agent-scope.js";
import type { CommandHandler } from "./commands-types.js";
import { stripMentions, stripStructuralPrefixes } from "./mentions.js";

View File

@@ -208,9 +208,7 @@ export function resolveConversationBindingContext(
channel,
accountId,
conversationId: focusedConversationId,
...(focusedParentConversationId
? { parentConversationId: focusedParentConversationId }
: {}),
...(focusedParentConversationId ? { parentConversationId: focusedParentConversationId } : {}),
...(threadId ? { threadId } : {}),
};
}

View File

@@ -31,14 +31,12 @@ function resolveBindingForRequester(
requester: ConversationRef,
bindings: SessionBindingRecord[],
): SessionBindingRecord | null {
const matchingChannelAccount = bindings.filter(
(entry) => {
const conversation = normalizeConversationRef(entry.conversation);
return (
conversation.channel === requester.channel && conversation.accountId === requester.accountId
);
},
);
const matchingChannelAccount = bindings.filter((entry) => {
const conversation = normalizeConversationRef(entry.conversation);
return (
conversation.channel === requester.channel && conversation.accountId === requester.accountId
);
});
if (matchingChannelAccount.length === 0) {
return null;
}