nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[Bug] .env.example lists six environment variables that nothing reads

Open addyCooks opened this issue 1 week ago • 0 comments

Description

.env.example documents logging and correlation settings that no code reads. Users who set them see no effect.

Environment

  • OS: Windows 11 Home 10.0.26300
  • Node version: v22.22.3
  • Nanocoder version: 1.32.0 (built from main at eb7dee57)
  • Provider: Not provider-specific
  • Model: Not model-specific

Steps to Reproduce

  1. Search the source for each variable below, ignoring *.spec.* files.

Expected Behavior

Every variable in .env.example is read by the app.

Actual Behavior

These six are not read anywhere (NANOCODER_CORRELATION_ENABLED only appears in pino-logger.spec.ts):

NANOCODER_LOG_TO_FILE
NANOCODER_LOG_TO_CONSOLE
NANOCODER_LOG_TRANSPORTS
NANOCODER_CORRELATION_DEBUG
NANOCODER_CORRELATION_ENABLED
NANOCODER_CORRELATION_LEGACY_FALLBACK

NANOCODER_LOG_LEVEL, NANOCODER_LOG_DIR and NANOCODER_LOG_DISABLE_FILE are used (source/utils/logging/config.ts, source/config/platform-dirs.ts).

Additional Context

  • [x] I have searched existing issues to ensure this is not a duplicate
  • [x] I can reproduce this issue consistently
  • [x] This issue occurs with the latest version of nanocoder (main)

Suggested fix:

  • .env.example:48-59: remove the six lines (and the "Correlation Configuration" heading).
  • Check docs/ for mentions of the same names (none found in my search).

addyCooks avatar Nov 23 '26 07:11 addyCooks