Skip to content

chore: quiet down noisy startup logs in pnpm dev - #198

Merged
h4yfans merged 5 commits into
mainfrom
worktree-chore+quiet-dev-logs
Apr 11, 2026
Merged

chore: quiet down noisy startup logs in pnpm dev#198
h4yfans merged 5 commits into
mainfrom
worktree-chore+quiet-dev-logs

Conversation

@h4yfans

@h4yfans h4yfans commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

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

  • Silence dotenv banner via {quiet: true} config
  • Remove/downgrade unconditional handler registration, scheduler start, and embedding model init logs
  • Make "indexing complete" conditional (only show when files changed or errors occurred)
  • Split tab persistence logs into info-level summaries (counts) + debug-level details (full arrays)

Why

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:

  1. Silence dotenv banner and downgrade OPENAI_API_KEY notice
  2. Remove IPC handler "registered" logs + aggregator
  3. Downgrade vault/CRDT startup logs to debug or conditional
  4. Delete renderer startup logs, trim tab persistence payloads

Type

  • chore

Test plan

  • pnpm typecheck:node && pnpm typecheck:web — 0 errors
  • pnpm lint — 0 new errors
  • pnpm test — 262 test files, 5557 tests passing

Checklist

  • Self-reviewed
  • No secrets or credentials added
  • No breaking changes to public APIs
  • Tests passing

🤖 Generated with Claude Code

h4yfans added 4 commits April 11, 2026 22:54
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.
h4yfans added a commit that referenced this pull request Apr 11, 2026
toSyncDomain switch was missing the folder_config branch, so tsc
flagged a missing return and CI typecheck failed on both PRs #198
and #199. Add folders domain and matching case to restore
exhaustiveness over SyncItemType.
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
h4yfans merged commit f8c465e into main Apr 11, 2026
3 checks passed
@h4yfans
h4yfans deleted the worktree-chore+quiet-dev-logs branch April 11, 2026 20:24
h4yfans added a commit that referenced this pull request May 6, 2026
toSyncDomain switch was missing the folder_config branch, so tsc
flagged a missing return and CI typecheck failed on both PRs #198
and #199. Add folders domain and matching case to restore
exhaustiveness over SyncItemType.
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.

1 participant