Repository navigation
fix: devstack finds the stack file from any folder of the repository - #471
Merged
Merged
Conversation
Without -f, every command looks for devstack.toml in the current folder, then in each folder above it up to the repository root (the first folder holding .git). Run from an app's folder, status, logs and lane list answered "no daemon is running" although the stack ran. Where nothing is found, a command says where it looked; a missing -f file is named. Closes #467 Bug-Class: a default path resolved against the caller's working directory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
What and why
Run from a subdirectory of a stack (an app folder, where an agent
cds to run tests),devstack status,logsandlane listansweredno daemon is running for this stackalthough the stack ran: without-fthe CLI only looked at./devstack.toml. The message pointed at the wrong cause, and the obvious reaction (devstack up) does not help.-f, devstack looks fordevstack.tomlin the current folder, then in each folder above it up to the repository root (the first folder holding.git: a folder in the main tree, a file in a worktree). Found in the current folder, the path stays relative, as before.no devstack.toml in <folder> or above it up to the repository root (run it from the stack or pass -f); an explicit-fthat does not exist is named as such.init,doctor,mcp,down,tunneland the machine-wide commands keep their behaviour.upfirst".docs/stack-file.mdand thedevstackskill say that any folder of the repository will do.Review card
-f, devstack looks fordevstack.tomlin the current folder, then in each parent up to and including the repository root (the first folder with.git).-fis taken as given, relative to the current folder, without a search;devstack initkeeps writing into the current folder.-ftooApproved by the owner in the conversation on 2026-11-06: points 1, 2 and 3.
Decided on my own: the search stops at the repository root, so a repository nested inside another never takes the outer one's stack; an explicit
-fthat does not exist gets its own message;tunnel(its--setupis machine-wide) anddown(it clears containers of a stack whose file is gone) do not require a stack file.Verified
Windows 11, with this worktree's lane running (installed 0.41.0 daemon), from
ui/src/components:Error: no daemon is running for this stackstatuslists the lane'sdashboard healthy,lane listandlogs dashboardanswerno devstack.toml in …\ds467\a\b or above it up to the repository root (run it from the stack or pass -f)-f nope.toml status:the stack file nope.toml does not existcargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo test -p devstack -p devstack-skillsgreen.Closes #467
🤖 Generated with Claude Code