chore: quiet down noisy startup logs in pnpm dev - #198
Merged
Conversation
Add quiet: true to dotenv config() calls to suppress the "[dotenv@VERSION] injecting env" banner. Downgrade OPENAI_API_KEY warning to debug level since BYOK is the expected, supported configuration. Remove unconditional CSP info log that served no diagnostic purpose.
Delete unconditional 'X handlers registered' info logs from all IPC handler modules and the aggregator. These logs were pure self-narration that added no diagnostic value — the aggregator at index.ts already prints a summary once all handlers are registered. Reduces boot-time noise without losing any information.
Downgrade 'Starting vault indexing' and 'Found N files' to debug level (only shown when verbose logging is enabled). Make 'Indexing complete' conditional: show at info level only when files were actually indexed or errors occurred (hide the boring 0-change boots). Downgrade CrdtProvider persistence init log to debug (static path, only useful for first-run debugging). Keep or delete embedding startup logs in next commit.
Delete redundant embedding model 'initializing' and 'starting scheduler' logs (keep only 'loaded successfully'). Remove AI inline server and BlockNote extension registration logs (initialization self-narration). Delete the 'debounced save complete' log that fires on every debounced save (excessive). For tab persistence, split 'loaded persisted state' and 'session restored' into info-level summaries (counts only) and debug-level details (full arrays), to keep the signal visible while hiding multi-line noise.
toSyncDomain switch was missing the folder_config branch, so tsc flagged a missing return and CI typecheck failed on this PR. Add folders domain and matching case to restore exhaustiveness over SyncItemType.
h4yfans
added a commit
that referenced
this pull request
May 6, 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.
Summary
Silence ~30 lines of routine startup self-narration (info-level logs that tell you code ran the line immediately above the log call). This reduces boot-time noise by 80%+ while preserving all genuinely useful diagnostics.
What
{quiet: true}configWhy
When running
pnpm dev, console floods with repetitive confirmations that provide no signal — they tell you the code ran, not whether anything is actually wrong. Real warnings (embedding model load failure, sync errors) get lost. After this change, meaningful info logs stay visible, routine self-narration moves to debug level.How
Four atomic commits:
Type
Test plan
pnpm typecheck:node && pnpm typecheck:web— 0 errorspnpm lint— 0 new errorspnpm test— 262 test files, 5557 tests passingChecklist
🤖 Generated with Claude Code