fix prompts_dir default, silence function pointer cast warning

prompts_dir now defaults to ~/.consciousness/prompts instead of
hardcoded repo path. Function pointer cast goes through *const ()
to silence the compiler warning.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-02 20:49:54 -04:00
parent 1af8fb2a9d
commit e91449b905
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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);
}
}