Skip to content

feat: honor LEITER_HOME sensibly#33

Merged
scode merged 1 commit intomainfrom
leiter-home-direct
Feb 27, 2026
Merged

feat: honor LEITER_HOME sensibly#33
scode merged 1 commit intomainfrom
leiter-home-direct

Conversation

@scode
Copy link
Copy Markdown
Owner

@scode scode commented Feb 27, 2026

LEITER_HOME previously acted as a home directory substitute — state lived
at $LEITER_HOME/.leiter/. This was unintuitive since the variable name
suggests it points to leiter's home, yet callers had to know about the
hidden .leiter/ suffix. Now LEITER_HOME points directly to the state
directory (e.g. LEITER_HOME=/tmp/state means files at /tmp/state/soul.md).

The previous behavior stemmed from its introduction during early prototyping.

LEITER_HOME previously acted as a home directory substitute — state lived
at $LEITER_HOME/.leiter/. This was unintuitive since the variable name
suggests it points to leiter's home, yet callers had to know about the
hidden .leiter/ suffix. Now LEITER_HOME points directly to the state
directory (e.g. LEITER_HOME=/tmp/state means files at /tmp/state/soul.md).

Removes the leiter_dir() indirection and renames home_dir() to state_dir()
throughout.
Copy link
Copy Markdown
Owner Author

scode commented Feb 27, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@scode scode changed the title refactor: make LEITER_HOME point directly to state directory feat: honor LEITER_HOME sensibly Feb 27, 2026
@scode scode merged commit a5bbaed into main Feb 27, 2026
17 checks passed
@scode scode deleted the leiter-home-direct branch March 4, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant