mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
1.5 KiB
1.5 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-70 | Unify config path resolution across main and launcher | To Do | 2026-02-18 11:35 | 2026-02-18 11:35 |
|
high |
Description
Config discovery logic is duplicated and inconsistent between app main process and launcher. Main resolves XDG_CONFIG_HOME + case variants (SubMiner/subminer), while launcher loaders still hardcode ~/.config/SubMiner in places.
Action Steps
- Extract shared config path discovery utility (candidate roots, case variants,
.jsonc/.jsonpreference). - Replace ad-hoc resolution in
src/main.ts,launcher/main.ts, andlauncher/config.ts. - Normalize fallback behavior when config file is absent.
- Keep existing user-visible behavior for
subminer config path|show. - Add tests for XDG and case-variant path resolution.
- Update docs if path precedence changes.
Acceptance Criteria
- #1 Single canonical path-resolution logic used by app and launcher
- #2
XDG_CONFIG_HOMEandSubMiner|subminerprecedence covered by tests - #3 No behavior drift for existing config-path CLI commands
Definition of Done
- #1 Launcher and config tests pass
- #2 Code no longer duplicates config path candidate logic