showErrorDetails not working as expected

The following lines in config.toml

[client]
showErrorDetails = "none"

are correctly hiding the trace stack but not the warning

CachedWidgetWarning: Your script uses a widget command in a cached function (function decorated with @st.cache_data or @st.cache_resource). This code will only be called when we detect a cache "miss", which can lead to unexpected results.

and showing the trace stack after it, which could lead to data leaks. Is it a bug or am I doing something wrong?

The setting only applies to “deprecation warnings” and “errors,” so other warnings still come through, as far as I understand.

Here’s a feature request you can upvote: Include all warnings (not just deprecation warnings) in `client.showErrorDetaila` · Issue #12101 · streamlit/streamlit · GitHub