From b33adc8a1b545d81a6a6cb179a1e509a961b07ba Mon Sep 17 00:00:00 2001 From: Sheikh Limon Date: Tue, 10 Mar 2026 23:22:20 +0600 Subject: [PATCH] fix: improve keyring availability error detection (#7766) Signed-off-by: sheikhlimon --- crates/goose/src/config/base.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/goose/src/config/base.rs b/crates/goose/src/config/base.rs index c72aec0e27..7fdc84be7a 100644 --- a/crates/goose/src/config/base.rs +++ b/crates/goose/src/config/base.rs @@ -948,10 +948,12 @@ impl Config { /// Check if an error string indicates a keyring availability issue that should trigger fallback fn is_keyring_availability_error(&self, error_str: &str) -> bool { - error_str.contains("keyring") - || error_str.contains("DBus error") - || error_str.contains("org.freedesktop.secrets") - || error_str.contains("couldn't access platform secure storage") + let lower = error_str.to_lowercase(); + lower.contains("keyring") + || lower.contains("dbus") + || lower.contains("org.freedesktop.secrets") + || lower.contains("platform secure storage") + || lower.contains("no secret service") } /// Get a keyring entry for the specified service