Skip to content

refactor: consider moving run-state into .factoryfloor-state/ #335

@davidpoblador

Description

@davidpoblador

Currently run-state files live in `~/Library/Caches/factoryfloor/run-state/.json`. With the introduction of `.factoryfloor-state/` in worktrees (excluded via `.git/info/exclude`), we could consolidate workstream-specific state there instead of the cache directory.

Benefits:

  • Natural cleanup when worktree is removed
  • State co-located with the worktree
  • One less cache directory to manage

Needs investigation: ff-run writes run-state from a child process that knows the workstream UUID but may not know the worktree path. Would need to pass the worktree path or resolve it.

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