Skip to content

fix(models): keep catalog warnings off the console - #111

Merged
patlux merged 2 commits into
patlux:mainfrom
barisgit:fix/quiet-runtime-warnings
Sep 24, 2026
Merged

patlux merged 2 commits into
patlux:mainfrom
barisgit:fix/quiet-runtime-warnings

Conversation

@barisgit

@barisgit barisgit commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Catalog warnings printed by console.warn break pi's TUI. I hit this when the live catalog loaded but writing commandcode-models.json failed with ENOENT.

pi-clipboard-03874745-992d-4296-b365-4a88895184fa

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 test fails 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.

@barisgit
barisgit marked this pull request as ready for review September 22, 2026 15:13
@patlux
patlux merged commit bfcb561 into patlux:main Sep 24, 2026
13 checks passed
@patlux

patlux commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Shipped in [email protected] / GitHub release v0.7.2. Thanks @barisgit!

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