mirror of
https://github.com/block/buzz.git
synced 2026-10-29 13:31:44 +00:00
fix(desktop): allow editing built-in agents (#1928)
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -6691,10 +6691,6 @@ async function handleUpdatePersona(args: {
|
||||
if (!persona) {
|
||||
throw new Error(`agent ${args.input.id} not found`);
|
||||
}
|
||||
if (persona.is_builtin) {
|
||||
throw new Error("Built-in agents cannot be edited.");
|
||||
}
|
||||
|
||||
persona.display_name = args.input.displayName.trim();
|
||||
persona.avatar_url = args.input.avatarUrl?.trim() || null;
|
||||
persona.system_prompt = args.input.systemPrompt.trim();
|
||||
|
||||
Reference in New Issue
Block a user