Skip to content

[P3.6] cf stats uses a hardcoded relative DB path (ignores cwd walk-up and DATABASE_PATH) #777

Description

@frankbria

Severity: low | Category: correctness | Phase: P3.6

Problem

_get_db() hardcodes .codeframe/state.db relative to cwd, so cf stats fails from any subdirectory of a workspace and ignores DATABASE_PATH, unlike every other command.

Evidence

codeframe/cli/stats_commands.py:50

Acceptance criteria

Resolves via get_workspace(Path.cwd()) walk-up and honors DATABASE_PATH.

Dependencies

None


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-post-betaLow priority - can wait until after beta (v2.0)priority:lowtype:bugSomething is broken and needs fixing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions