Command center: source the System Prompt card from the brain so inline edits reflect on save
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
89c147b742
commit
6b91da6022
@@ -231,7 +231,7 @@ export function ClawCommandCenter({
|
|||||||
|
|
||||||
{/* BRAIN */}
|
{/* BRAIN */}
|
||||||
<div style={colStyle}>
|
<div style={colStyle}>
|
||||||
<SystemPromptCard prompt={agent.systemPrompt} clawId={agent.id} onSaved={onToolsChanged} />
|
<SystemPromptCard prompt={brain?.system_prompt ?? agent.systemPrompt} clawId={agent.id} onSaved={onToolsChanged} />
|
||||||
<AnatomyCard tint="#ff8a7a" label="HOW I OPERATE · AGENTS.md" icon={<Workflow size={15} />} collapsible>
|
<AnatomyCard tint="#ff8a7a" label="HOW I OPERATE · AGENTS.md" icon={<Workflow size={15} />} collapsible>
|
||||||
<EditableSection clawId={agent.id} field="agent_md" value={brain?.agent_md ?? ""} onSaved={onToolsChanged} placeholder="AGENTS.md — how this agent operates (workflow, rules)…">
|
<EditableSection clawId={agent.id} field="agent_md" value={brain?.agent_md ?? ""} onSaved={onToolsChanged} placeholder="AGENTS.md — how this agent operates (workflow, rules)…">
|
||||||
{brain?.agent_md ? <MarkdownText text={brain.agent_md} baseSize={13.5} /> : <span style={{ fontFamily: mono, fontSize: 11.5, color: "#6a6a72" }}>No AGENTS.md yet — click ✎ to define how this agent operates.</span>}
|
{brain?.agent_md ? <MarkdownText text={brain.agent_md} baseSize={13.5} /> : <span style={{ fontFamily: mono, fontSize: 11.5, color: "#6a6a72" }}>No AGENTS.md yet — click ✎ to define how this agent operates.</span>}
|
||||||
|
|||||||
Reference in New Issue
Block a user