mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:24:31 +00:00
fix: resolve format/build failures
This commit is contained in:
@@ -55,7 +55,9 @@ function resolveAgentIdByWorkspace(
|
||||
): string[] {
|
||||
const list = listAgentEntries(cfg);
|
||||
const ids =
|
||||
list.length > 0 ? list.map((entry) => normalizeAgentId(entry.id)) : [resolveDefaultAgentId(cfg)];
|
||||
list.length > 0
|
||||
? list.map((entry) => normalizeAgentId(entry.id))
|
||||
: [resolveDefaultAgentId(cfg)];
|
||||
const normalizedTarget = normalizeWorkspacePath(workspaceDir);
|
||||
return ids.filter(
|
||||
(id) => normalizeWorkspacePath(resolveAgentWorkspaceDir(cfg, id)) === normalizedTarget,
|
||||
@@ -134,10 +136,7 @@ export async function agentsSetIdentityCommand(
|
||||
}
|
||||
|
||||
const fileTheme =
|
||||
identityFromFile?.theme ??
|
||||
identityFromFile?.creature ??
|
||||
identityFromFile?.vibe ??
|
||||
undefined;
|
||||
identityFromFile?.theme ?? identityFromFile?.creature ?? identityFromFile?.vibe ?? undefined;
|
||||
const incomingIdentity: IdentityConfig = {
|
||||
...(nameRaw || identityFromFile?.name ? { name: nameRaw ?? identityFromFile?.name } : {}),
|
||||
...(emojiRaw || identityFromFile?.emoji ? { emoji: emojiRaw ?? identityFromFile?.emoji } : {}),
|
||||
|
||||
Reference in New Issue
Block a user