Skip to content

[Bug]: 界面写“敏感诊断信息默认关闭”,但后端配置当前实际默认是 true #3213

Description

@xiaolf0813

Summary

界面写“敏感诊断信息默认关闭”,但后端配置当前实际默认是 true

Area

Desktop app

Reproduction or evidence

设置 -> 日志与诊断 -> 敏感诊断信息

Environment, if relevant

No response

Activity

  1. xiechimon commented on Sep 23, 2026

    @xiechimon
    Contributor

    Confirmed on current main: AppLoggingConfig::include_sensitive_diagnostics uses #[serde(default = "default_true")] and the Default impl sets true, while all three locale files (zh-CN/zh-TW/en-US), the capability docs ("Enable only when explicitly needed and after reviewing the privacy risk") and the settings-page fallback (?? false) all promise off-by-default. The frontend FrontendLogLevelSync fallbacks (: true) drift the same way.

    I'd flip the backend default to false (serde default + Default impl + the pinned defaults test), align the two frontend fallbacks, and keep explicit user values untouched. If that sounds right, I'll send a PR against main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions