Skip to content

Run from a subdirectory: "no daemon is running" although the stack runs (search devstack.toml upwards) #467

Closed

Description

@7schmiede

devstack 0.41.0, Windows 11 (Git Bash)

What happened

In a worktree whose lane was running, devstack status, devstack logs <service> and devstack lane list were run from a subdirectory of the worktree (the frontend app folder, three levels below the stack file). Each answered:

Error: no daemon is running for this stack (start it with `devstack up`)

The lane was running the whole time (SPA and API healthy, devstack lane list from the worktree root listed it). Run from the root, the same commands worked.

Why it costs time

The message points at the wrong cause. It reads as "the lane is down", and the obvious reaction is devstack up. For an agent it is worse: the working directory drifts after a cd into the app folder (to run tests or a linter), and the next devstack call silently talks about "no daemon" instead of "no stack file here". It happened twice in one session.

Expected

One of:

  1. Search upwards for devstack.toml from the current directory, like git does for .git. A subdirectory of a stack (or of a lane's worktree) then means that stack.
  2. At least say what was looked up: no devstack.toml in <cwd> (run from the stack root or pass --dir) instead of "no daemon is running".

Option 1 would also make the MCP/CLI behave the same no matter where a test runner or editor left the shell.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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