Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Merge remote-tracking branch 'origin/main' into thinhlpg/9107-hide-secrets
thinhlpgc4a6c2a0ae42
diff --cc src-tauri/src/core/agent/global_config.rsindex 31134f3f9,f750ad11a..a68ea469b--- a/src-tauri/src/core/agent/global_config.rs+++ b/src-tauri/src/core/agent/global_config.rs@@@ -343,12 -368,13 +378,19 @@@ pub(crate) fn telemetry_setting() -> Opload_raw().ok().and_then(|config| config.telemetry.enabled)}+/// `hide_secrets` in `~/.jan/config.toml`; `None` when unset. Fails open to+/// "unset" (off): a preference file must never stop a session from starting.+pub(crate) fn hide_secrets_setting() -> Option<bool> {+ load_raw().ok().and_then(|config| config.hide_secrets)+}++ /// `[experimental].acp` in `~/.jan/config.toml`; `None` when unset. A malformed+ /// file reads as unset, which is off: an experimental surface fails closed.+ #[cfg(feature = "cli")]+ pub(crate) fn experimental_acp_setting() -> Option<bool> {+ load_raw().ok().and_then(|config| config.experimental.acp)+ }+/// Whether the TUI should track the mouse (`mouse` in `~/.jan/config.toml`),/// defaulting to on. A display preference must never block startup, so an/// unreadable or malformed config yields the default rather than an error.