Hmbown/CodeWhale · error
failed to delete stored credentials for: {}
Error message
failed to delete stored credentials for: {} What it means
Error "failed to delete stored credentials for: {}" thrown in Hmbown/CodeWhale.
Source
Thrown at crates/tui/src/config.rs:11710
"credential.clear",
json!({
"backend": "config_file",
"config_path": config_path.display().to_string(),
"scope": "root_and_provider_keys",
}),
);
}
// The config scrub alone leaves the durable secret-store credential
// alive, and the read chain prefers the secret store over the file, so a
// "cleared" key silently came back on the next launch (#5196). Delete
// every provider slot too, symmetric with CLI logout (#5159). This runs
// even when the config file is absent: the slot survives independently
// of the file.
if let Some(secrets) = credential_secret_store() {
let failures = clear_all_provider_api_keys_from_secret_store(&secrets);
if !failures.is_empty() {
anyhow::bail!(
"failed to delete stored credentials for: {}",
failures.join(", ")
);
}
}
Ok(())
}
/// Delete the credential slot of every provider that has one stored.
///
/// Mirrors the CLI logout helper (#5159): each slot is probed first so
/// backends that error on deleting a missing item stay quiet, slots shared
/// by several providers (e.g. the historical `siliconflow` slot) are deleted
/// once, and every deletion failure is returned as a human-readable entry so
/// the caller can fail loudly instead of claiming a clean logout while
/// credentials linger in the store (#5196).
fn clear_all_provider_api_keys_from_secret_store(View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at crates/tui/src/config.rs:11710 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/19906624c9a344c2.
Report an issue: GitHub.