Skip to content

Extract shared Config module from CLI + desktop duplication #2

Open

Description

@utof

Context

crates/cli/src/config.rs and crates/desktop/src/config.rs duplicate the same config resolution logic (~40 lines): directories crate + env var overrides + device_id.txt persistence. This was intentional in phase 2a to avoid premature abstraction, but it's now tech debt.

Action

Extract config resolution into a shared crate (e.g., crates/config/) or a module in crates/core/ behind an optional feature flag. Both CLI and desktop import from the shared source.

Priority

Medium — affects maintainability but not correctness. Good candidate for phase 2b or phase 3 cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions