diff --git a/Cargo.toml b/Cargo.toml index c5fe278..ae2db3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,8 @@ rayon = "1" peg = "0.8" paste = "1" jobkit = { path = "/home/kent/jobkit", features = ["daemon", "console"] } -tokio = { version = "1", features = ["full"] } +tokio = { version = "1", features = ["full", "tracing"] } +console-subscriber = "0.4" reqwest = { version = "0.12", features = ["json"] } walkdir = "2" glob = "0.3" diff --git a/src/bin/poc-agent.rs b/src/bin/poc-agent.rs index df43697..6e7f5d8 100644 --- a/src/bin/poc-agent.rs +++ b/src/bin/poc-agent.rs @@ -45,6 +45,13 @@ fn compaction_threshold(app: &AppConfig) -> u32 { #[tokio::main] async fn main() { + let console_sock = dirs::home_dir() + .unwrap_or_default() + .join(".consciousness/agent-sessions/console.sock"); + let _ = std::fs::remove_file(&console_sock); + console_subscriber::ConsoleLayer::builder() + .server_addr(console_sock.as_path()) + .init(); let cli = cli::CliArgs::parse(); // Subcommands that don't launch the TUI