Fix/console log policy plugins - #353
Draft
shafeeqd959 wants to merge 3 commits into
Draft
Conversation
added 3 commits
August 18, 2026 20:05
Step 2 of the logger-scoping change; step 1 landed in the cli repo (console-policy module, logger filter, progress-manager self-seeding, console-policy init hook). Console visibility is now a process-wide policy resolved once, before any command runs, from static inputs: CS_CLI_CONSOLE_LOGS, then user config (on `true` only), then the plugin's csdxConfig.showConsoleLogs, then files-only. Plugins no longer decide it, thread it, or persist it. - Remove the log.progressSupportedModule writes and the clearProgressModuleSetting calls; nothing reads that key any more. - Drop the seeding boilerplate at all 17 progress-manager call sites — CLIProgressManager reads the policy itself, so createSimple/ createNested no longer take showConsoleLogs. - Reduce the local withLoadingSpinner wrappers to a plain delegation; the manager now skips the spinner in console-log mode internally. - Re-source the sites that choose their own content (audit's banners, the `if (!showConsoleLogs) cliux.print` compensation in export, import and import-setup) to isConsoleLogEnabled(). - Stop audit persisting `log.showConsoleLogs: false` into the user's config. That value silently outranked every plugin declaration; step 1 makes a persisted `false` read as "no opinion", and the two halves have to ship together. - Declare csdxConfig.showConsoleLogs on query-export and cli-tsgen, whose only user-facing output is log.*. Console logs and the progress UI are mutually exclusive: opting in to console logs turns the bars, spinners and headers off, so the two consumers of the terminal can never interleave.
…o fix/console-log-policy-plugins
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
naman-contentstack
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.