unconscious: don't load standard context — prompts are self-contained

Unconscious agent definitions already include {{tool: memory_render
core-personality}} etc. Loading standard context via reload_for_model
duplicated those nodes. Now they get empty system_prompt and
personality — everything comes from the agent definition.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-12 01:25:18 -04:00
parent bc73ccc1da
commit b646221787

View file

@ -273,15 +273,9 @@ impl Unconscious {
return; return;
} }
}; };
let (system_prompt, personality) = match crate::config::reload_for_model(&app, &app.prompts.other) { // Unconscious agents have self-contained prompts — no standard context.
Ok(r) => r, let system_prompt = String::new();
Err(e) => { let personality = Vec::new();
dbglog!("[unconscious] config: {}", e);
auto.steps = orig_steps;
self.agents[idx].auto = auto;
return;
}
};
let client = crate::agent::api::ApiClient::new(base_url, api_key, model); let client = crate::agent::api::ApiClient::new(base_url, api_key, model);
let agent = crate::agent::Agent::new( let agent = crate::agent::Agent::new(