Repository navigation
fix(models): keep catalog warnings off the console - #111
Merged
Merged
Conversation
barisgit
marked this pull request as ready for review
September 22, 2026 15:13
# Conflicts: # CHANGELOG.md
Owner
|
Shipped in |
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.
Catalog warnings printed by
console.warnbreak pi's TUI. I hit this when the live catalog loaded but writingcommandcode-models.jsonfailed withENOENT.This removes the default console logger. Warnings are still available through
/commandcode-status, and callers can still supply a logger. Cache behavior is unchanged.The regression test checks that startup and refresh stay quiet while status still shows the warning. It failed before the fix (two console warnings) and passes now. The existing integration assertions now expect silence too.
Testing
242 unit tests pass, along with typecheck, formatting, and
git diff --check.Keeping this as a draft because
npm testfails in the local pi harness on Pi 0.85.0: the first offline test expects an empty catalog but gets a populated one. It stops before reaching the changed assertions; I haven't established why. The fix hasn't been checked in a live TUI yet.