Repository navigation
loopway finds its project by walking up to the nearest .loopway/ - #509
Closed
mcwhittemore wants to merge 3 commits into
Closed
mcwhittemore wants to merge 3 commits into
mcwhittemore wants to merge 3 commits into
Conversation
Collaborator
Author
|
What happens when it gets to |
Collaborator
Author
| Good catch on `~/.loopway`: it was a real bug. The folder has the same name, so any directory under `~` with no project of its own resolved to `~` and would have kept state in `~/.loopway/state/`. `findProject` now skips the loopway home (`$LOOPWAY_HOME`, default `~/.loopway`), with a test and a live check in `verifications/509.md`. It does not need to sit beside `.git`: any `.loopway/` folder at or above where you run counts. Pushed. |
|
This PR conflicts with its base branch. Rebase onto it, resolve the conflicts, and push. |
mcwhittemore
force-pushed
the
project-walk-up
branch
from
November 11, 2026 03:37
57e5a83 to
6433a81
Compare
|
This PR conflicts with its base branch. Rebase onto it, resolve the conflicts, and push. |
Drops the INIT_CWD fallback and the root `cli` script, adds --project <dir>, names the resolved .loopway in the first log line and the TUI header, and documents `npm link -w @loopway/cli` as the dev entry point. 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
project-walk-up
branch
from
November 11, 2026 03:42
6433a81 to
a14b7f0
Compare
Collaborator
Author
| Closing, as Matthew asked on #508 ("past where we are from a robustness POV"). The branch `project-walk-up` stays on the remote in case it is wanted later. |
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 #508
loopwayfinds its project like git finds a repo: it walks up from the current directory to the nearest directory with a.loopway/folder. NoINIT_CWDfallback.--project <dir>skips the search. With no.loopway/found it exits naming where it looked. The first log line and the TUI header print the resolved.loopway. The rootcliscript is removed (it read the checkout's own.loopway), andnpm link -w @loopway/cliis the documented dev entry point (README, docs/developing.md).Test locally
npm run build && npm link -w @loopway/cli.loopway/dev.md, or a subdirectory of it, runloopway --no-tui: the first line names that.loopway.cd /tmp && loopway: exits saying no.loopway/was found above/tmp.loopway --project <scratch>from anywhere uses that project.npm test,npm run typecheck,npm run lint,npm run format:check.Verification: verifications/509.md
🤖 Generated with Claude Code