Repository navigation
State per .loopway project, in .loopway/state/ - #504
Merged
Merged
Conversation
|
This PR conflicts with its base branch. Rebase onto it, resolve the conflicts, and push. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcwhittemore
force-pushed
the
v2-project-state
branch
from
November 11, 2026 01:45
2125463 to
9437889
Compare
mcwhittemore
commented
Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #503
State is per project, and stays in
~/.loopway.stateDir(home, projectDir)instate.tsis the one place that says where:<home>/state/<slug>, where the slug is the full path of the.loopwayfolder loopway resolved, with every character other than a letter or digit turned into-(the way Claude Code names~/.claude/projects/).state.jsonandthreads/<id>.jsonare built from it. Nothing is written into the project, so there is no.gitignoreto manage.LOOPWAY_HOMEmoves all of it, so tests give it a temp dir (no separateLOOPWAY_STATE). No migration: old~/.loopway/threadsandstate.jsonare ignored, and the README says they can be deleted.homeinloadState,saveState,loadThreadsandThreadsis nowdir, since it is the project's folder. For #502: itsthreadLogPath(home, id)and anysentrecords take thisdirtoo.Test it locally
npm ci && npm test && npm run typecheck && npm run lint && npm run format:check.a/andb/, each with.loopway/dev.md(repos: craftmilldev/loopway-sandbox,on: issue).loopwayina/and open a sandbox issue.loopway threadsina/lists a dev thread; inb/it lists nothing, andloopwayinb/only sees issues opened after it started.a/.loopway/holds onlydev.md;~/.loopway/state/has one folder per project, named after its.loopwaypath.~/.loopway/gains onlystate/.The run is recorded in
verifications/504.md.🤖 Generated with Claude Code