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:
parent
1af8fb2a9d
commit
e91449b905
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue