diff --git a/src/config.rs b/src/config.rs index d19db0d..9a10e24 100644 --- a/src/config.rs +++ b/src/config.rs @@ -136,7 +136,7 @@ impl Default for Config { ], llm_concurrency: 1, agent_budget: 1000, - prompts_dir: home.join("poc/consciousness/src/subconscious/prompts"), + prompts_dir: home.join(".consciousness/prompts"), agent_config_dir: None, api_base_url: None, api_key: None, diff --git a/src/subconscious/knowledge.rs b/src/subconscious/knowledge.rs index 4414ac9..e82fa4d 100644 --- a/src/subconscious/knowledge.rs +++ b/src/subconscious/knowledge.rs @@ -43,8 +43,8 @@ fn register_pid_cleanup(pid_path: &std::path::Path) { unsafe { drop(std::ffi::CString::from_raw(old)); } } unsafe { - libc::signal(libc::SIGTERM, pid_cleanup_handler as libc::sighandler_t); - libc::signal(libc::SIGINT, pid_cleanup_handler as libc::sighandler_t); + libc::signal(libc::SIGTERM, pid_cleanup_handler as *const () as libc::sighandler_t); + libc::signal(libc::SIGINT, pid_cleanup_handler as *const () as libc::sighandler_t); } }