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:
Wes
2026-07-15 19:49:17 -06:00
committed by GitHub
parent 32957692eb
commit 202201f3aa
10 changed files with 77 additions and 107 deletions

View File

@@ -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();