Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@owlstronaut
Copy link
Contributor

@owlstronaut owlstronaut commented Oct 24, 2025

This pull request introduces a deduplication mechanism for "notice" logs in the Display class to prevent repeated notices from being shown multiple times during a single command execution, except in verbose mode. It also includes comprehensive tests to verify the new behavior and ensures deduplication is reset between command runs.

if (level === 'notice') {
writeOpts.redact = false
// Deduplicate notices within a single command execution, unless in verbose mode
if (this.#levelIndex < LEVEL_OPTIONS.verbose.index) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be before we set .redact so we're only doing that if we're gonna move on and haven't returned.

@owlstronaut owlstronaut merged commit b380d15 into latest Nov 26, 2025
21 checks passed
@owlstronaut owlstronaut deleted the owlstronaut/notice-dedupe branch November 26, 2025 17:08
@github-actions github-actions bot mentioned this pull request Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants