consciousness/src/user
Kent Overstreet 01b07a7f28 mind: unify MindCommand, add command queue pattern
MindCommand replaces both Action and MindMessage — one type for
everything: turns, compaction, scoring, hotkeys, new session.

State methods return MindCommand values. The run loop collects
commands into a Vec, then drains them through run_commands().
Compact and Score now flow through the same command path as
everything else.

Removes execute(), MindMessage from event_loop. Mind's run loop
is now: select! → collect commands → run_commands().

mind/mod.rs: 957 → 516 lines.

Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
2026-04-05 03:34:43 -04:00
..
chat.rs split out src/mind 2026-04-04 02:46:32 -04:00
context.rs split out src/mind 2026-04-04 02:46:32 -04:00
event_loop.rs mind: unify MindCommand, add command queue pattern 2026-04-05 03:34:43 -04:00
mod.rs mind: split event loop — Mind and UI run independently 2026-04-05 02:11:32 -04:00
subconscious.rs agent: don't hold agent lock across I/O 2026-04-04 04:23:29 -04:00
thalamus.rs thalamus: interactive sampling parameter controls 2026-04-04 18:19:21 -04:00
ui_channel.rs split out src/mind 2026-04-04 02:46:32 -04:00
unconscious.rs split out src/mind 2026-04-04 02:46:32 -04:00