consciousness/src/mind
Kent Overstreet b94e056372 unconscious/subconscious: use Option<AutoAgent> instead of placeholder
Previously, spawning an agent used std::mem::replace with an empty-name
AutoAgent as placeholder. This caused ghost stats entries under "" when
those placeholders accidentally got their stats logged.

Now uses Option<AutoAgent> with .take() - the type honestly represents
that the agent is unavailable while running. Panic recovery in
subconscious now properly recreates the agent from its definition.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-12 20:11:40 -04:00
..
identity.rs Drop redundant system prompt — all info is in memory nodes 2026-04-12 01:36:59 -04:00
log.rs Fast startup: mmap backward scan instead of reading full log 2026-04-09 13:09:26 -04:00
mod.rs Drop redundant system prompt — all info is in memory nodes 2026-04-12 01:36:59 -04:00
subconscious.rs unconscious/subconscious: use Option<AutoAgent> instead of placeholder 2026-04-12 20:11:40 -04:00
unconscious.rs unconscious/subconscious: use Option<AutoAgent> instead of placeholder 2026-04-12 20:11:40 -04:00