Command center: source the System Prompt card from the brain so inline edits reflect on save
ci / gates (push) Successful in 7s
ci / rust (push) Failing after 26s
ci / sandbox-k8s (push) Failing after 24s
ci / frontend (push) Failing after 47s
ci / e2e (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-26 13:35:23 -07:00
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>}