consciousness/src
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
..
agent Revert to tokio::sync::Mutex, fix lock-across-await bugs, move input ownership to InteractScreen 2026-04-05 21:13:48 -04:00
bin split out src/mind 2026-04-04 02:46:32 -04:00
claude poc-daemon: subscribe to channel notifications, drop config.rs 2026-04-05 12:58:46 -04:00
cli deps: remove faer (224 transitive crates) 2026-04-05 06:39:47 -04:00
hippocampus deps: remove faer (224 transitive crates) 2026-04-05 06:39:47 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind Revert to tokio::sync::Mutex, fix lock-across-await bugs, move input ownership to InteractScreen 2026-04-05 21:13:48 -04:00
subconscious Revert to tokio::sync::Mutex, fix lock-across-await bugs, move input ownership to InteractScreen 2026-04-05 21:13:48 -04:00
thalamus supervisor: PID file to prevent duplicate daemon spawns 2026-04-05 13:30:56 -04:00
user Revert to tokio::sync::Mutex, fix lock-across-await bugs, move input ownership to InteractScreen 2026-04-05 21:13:48 -04:00
config.rs training: per-node scoring with graph weight updates 2026-04-05 01:18:47 -04:00
lib.rs user: InteractScreen extracted, all screens use ScreenView trait 2026-04-05 18:57:54 -04:00
main.rs deps: remove faer (224 transitive crates) 2026-04-05 06:39:47 -04:00
session.rs move Claude Code-specific code from thalamus/ to claude/ 2026-04-03 19:26:24 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00