diff --git a/crates/rhema-claw/src/config.rs b/crates/rhema-claw/src/config.rs index 3e73bcc..209f26e 100644 --- a/crates/rhema-claw/src/config.rs +++ b/crates/rhema-claw/src/config.rs @@ -210,7 +210,7 @@ impl ClawConfig { /// The default config path: `/rhema/claw.yaml`, the same /// base the stored rhema config lives under. pub fn default_path() -> Result { - Ok(rhema_config::Config::dir()?.join("claw.yaml")) + Ok(rhema_config::Home::discover()?.config.join("claw.yaml")) } /// The state dir: `$XDG_STATE_HOME/rhema/claw`, else diff --git a/crates/rhema-claw/src/main.rs b/crates/rhema-claw/src/main.rs index aabb6ec..1f21bcf 100644 --- a/crates/rhema-claw/src/main.rs +++ b/crates/rhema-claw/src/main.rs @@ -169,11 +169,11 @@ fn mock_backends() -> Arc { /// the keyless llama-cpp backend is always constructible — and a /// dispatch against an unreachable provider fails loudly per turn. fn resolve_backends(config: &ClawConfig) -> Result, ClawError> { - let stored = match rhema_config::Config::load() { + let stored = match rhema_config::Settings::load() { Ok(stored) => stored, Err(err) => { eprintln!("warning: ignoring unreadable rhema config: {err}"); - rhema_config::Config::default() + rhema_config::Settings::default() } }; let profile = stored.effective(None); @@ -205,7 +205,7 @@ fn resolve_backends(config: &ClawConfig) -> Result