Skip to content

fix(cli): extend SQUAD_TEAM_ROOT to all resolveSquad() call sites #835

Closed
jazz127/squaddev
#4

Description

@diberry

Follow-up from PR #763 (Amanda Silver)

PR #763 wired SQUAD_TEAM_ROOT into nap, status, and cost commands. However, other commands that call resolveSquad(process.cwd()) may also break in subprocess contexts.

Action Items

  1. Audit all resolveSquad() call sites — find every place that passes process.cwd() and evaluate if it should use getSquadStartDir() instead
  2. Commands to check: init, upgrade, doctor, watch, loop, and any other command that resolves the squad directory
  3. Add integration test: Verify all commands work when SQUAD_TEAM_ROOT is set to a different directory than process.cwd()

Context

  • getSquadStartDir() returns process.env['SQUAD_TEAM_ROOT'] || process.cwd()
  • Currently only 3 of N commands use it
  • Subprocess contexts (Copilot CLI bang commands, CI pipelines, watch dispatches) all hit this

Related

Activity

  1. added a commit that references this issue on Apr 5, 2026
    e4a49f1
  2. added 5 commits that reference this issue on Apr 5, 2026
    b4ee2a9
    88391f5
    866958f
    b302e5c
    4e389f6
  3. added a commit that references this issue on Apr 21, 2026
    bd5bb0b
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