Repair repo Face state identity

This commit is contained in:
Meta Vens 2026-05-18 15:04:15 +01:00
commit beca3dec6d
8 changed files with 126 additions and 13 deletions

View file

@ -555,6 +555,11 @@ export function registerVoidbotTools(
const typedState = await loadVoidSelfStateTypedDocuments({
canonicalPath: resolved.faceStatePath,
identity: {
agentId: resolved.identity.id,
publicName: resolved.identity.displayName,
publicDescription: resolved.identity.description,
},
});
const rendered = buildVoidSelfStateContext(typedState, {
sourcePath: resolved.faceStatePath,
@ -609,7 +614,14 @@ export function registerVoidbotTools(
}
const result = await applyVoidSelfStateOperation(
{ canonicalPath: resolved.faceStatePath },
{
canonicalPath: resolved.faceStatePath,
identity: {
agentId: resolved.identity.id,
publicName: resolved.identity.displayName,
publicDescription: resolved.identity.description,
},
},
input.operation,
);