Detach --background launches from terminals with quieter runtime output, make wrapper/plugin overlay start explicit, and allow trailing commas in JSONC configs for safer hot-reload edits. Includes pending Anki/docs/backlog updates in this unreleased batch.
1.6 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | ||
|---|---|---|---|---|---|---|---|---|---|---|
| TASK-68 | Allow trailing commas in JSONC config parsing | Done | 2026-02-18 10:13 | 2026-02-18 10:13 |
|
medium |
Description
Permit trailing commas in config.jsonc parsing so normal JSONC edits do not fail strict reload/watcher startup.
Acceptance Criteria
- #1 Config parser accepts trailing commas in JSONC objects/arrays
- #2 Invalid malformed JSONC still fails strict reload
- #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
- #1 Config test suite passes after parser change