Merge pull request #608 from pikasTech/fix/cli-output-warning-actionable-20260621

fix: 强化 CLI 大输出 warning 行动指引
This commit is contained in:
Lyon
2026-06-21 23:24:56 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ output:
maxStdoutBytes: 10240
dumpDir: /tmp/unidesk-cli-output
includePreview: false
warning: "CLI stdout exceeded YAML-configured limit; full output was dumped to /tmp. Improve this command to use concise tables and progressive disclosure."
warning: "CLI stdout exceeded YAML-configured limit; full output was dumped to /tmp for one-off drill-down only. This is a CLI usability defect: improve the command itself to print concise tables/summaries and id-specific progressive disclosure instead of repeatedly depending on dump extraction."
+1 -1
View File
@@ -345,7 +345,7 @@ function cliOutputPolicy(): CliOutputPolicy {
maxStdoutBytes: EMERGENCY_OUTPUT_DUMP_THRESHOLD_BYTES,
dumpDir: EMERGENCY_OUTPUT_DUMP_DIR,
includePreview: false,
warning: "CLI output policy YAML could not be loaded; emergency dump guard is active and this YAML configuration must be fixed.",
warning: "CLI output policy YAML could not be loaded; emergency dump guard is active for one-off drill-down only. Fix config/unidesk-cli.yaml, then improve the noisy command itself to print concise tables/summaries and id-specific progressive disclosure instead of repeatedly depending on dump extraction.",
configPath: CLI_OUTPUT_CONFIG_RELATIVE_PATH,
configError: message,
};