Initialize repo Face homes on first chat

This commit is contained in:
Meta Vens 2026-05-18 11:13:01 +01:00
commit 28e4fb6708
14 changed files with 468 additions and 0 deletions

View file

@ -395,10 +395,12 @@ export function registerVoidbotTools(
const identities = registry.identities.map((identity) => ({
id: identity.id,
repoName: identity.repoName,
repoPath: identity.repoPath ?? null,
displayName: identity.displayName,
roleId: identity.roleId ?? null,
mention: identity.roleId ? `<@&${identity.roleId}>` : null,
allowedChannelIds: identity.allowedChannelIds,
faceStatePath: resolveRepoFaceStatePath(identity, context.config.storageRoot),
hasAvatarUrl: Boolean(identity.avatarUrl),
description: identity.description ?? null,
}));