--- id: TASK-68 title: Allow trailing commas in JSONC config parsing status: Done assignee: [] created_date: '2026-02-18 10:13' updated_date: '2026-02-18 10:13' labels: - config - jsonc dependencies: [] priority: medium --- ## Description Permit trailing commas in `config.jsonc` parsing so normal JSONC edits do not fail strict reload/watcher startup. ## Acceptance Criteria - [x] #1 Config parser accepts trailing commas in JSONC objects/arrays - [x] #2 Invalid malformed JSONC still fails strict reload - [x] #3 Coverage added to prevent regression ## Implementation Notes Enabled `allowTrailingComma: true` in `src/config/service.ts` JSONC parse options while preserving strict parse error handling. Added regression test `accepts trailing commas in jsonc` in `src/config/config.test.ts`. Updated docs note in `docs/configuration.md` that JSONC config supports comments and trailing commas. Validated with `bun run build && bun run test:config:dist`. ## Final Summary SubMiner now accepts trailing commas in `config.jsonc` by enabling JSONC parser trailing-comma support in the strict config load path. Strict reload behavior remains intact for malformed JSON/JSONC, and a regression test now covers trailing-comma acceptance. Documentation was updated accordingly. ## Definition of Done - [x] #1 Config test suite passes after parser change