Merge pull request #262 from mvanhorn/fix/191-blank-screen-prompt-template

fix(ui): prevent blank screen when prompt template is emptied
This commit is contained in:
Dotta
2026-03-07 21:20:46 -06:00
committed by GitHub

View File

@@ -441,7 +441,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
"promptTemplate",
String(config.promptTemplate ?? ""),
)}
onChange={(v) => mark("adapterConfig", "promptTemplate", v || undefined)}
onChange={(v) => mark("adapterConfig", "promptTemplate", v ?? "")}
placeholder="You are agent {{ agent.name }}. Your role is {{ agent.role }}..."
contentClassName="min-h-[88px] text-sm font-mono"
imageUploadHandler={async (file) => {