consciousness/src/subconscious
ProofOfConcept 48beb8b663 Revert to tokio::sync::Mutex, fix lock-across-await bugs, move input ownership to InteractScreen
The std::sync::Mutex detour caught every place a MutexGuard lived
across an await point in Agent::turn — the compiler enforced Send
safety that tokio::sync::Mutex silently allows. With those fixed,
switch back to tokio::sync::Mutex (std::sync blocks tokio worker
threads and panics inside the runtime).

Input and command dispatch now live in InteractScreen (chat.rs):
- Enter pushes directly to SharedMindState.input (no app.submitted hop)
- sync_from_agent displays pending input with dimmed color
- Slash command table moved from event_loop.rs to chat.rs
- cmd_switch_model kept as pub fn for tool-initiated switches

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-05 21:13:48 -04:00
..
agents replace hardcoded personal names with config values 2026-04-02 19:45:35 -04:00
api.rs digest: modernize generate_digest() to use agent infrastructure 2026-04-04 18:19:21 -04:00
audit.rs agent: move oneshot execution from subconscious to agent module 2026-04-04 18:19:21 -04:00
consolidate.rs oneshot: simplify API surface 2026-04-04 18:19:21 -04:00
daemon.rs oneshot: simplify API surface 2026-04-04 18:19:21 -04:00
defs.rs remove dead transcript mining pipeline 2026-04-02 21:42:03 -04:00
digest.rs Revert to tokio::sync::Mutex, fix lock-across-await bugs, move input ownership to InteractScreen 2026-04-05 21:13:48 -04:00
learn.rs more reorg 2026-04-05 01:48:11 -04:00
mod.rs more reorg 2026-04-05 01:48:11 -04:00
prompts.rs delete dead load_prompt (orphaned by split_* removal) 2026-04-02 16:22:34 -04:00
subconscious.rs training: per-node scoring with graph weight updates 2026-04-05 01:18:47 -04:00