Skip to content

loop uses obsolete gh copilot --message flag #874

Closed

Description

@KenKilty

Bug

loop and related watch/execute paths invoke gh copilot --message ..., but the currently installed GitHub CLI Copilot integration on this machine accepts -p rather than --message.

This causes the loop to fail immediately even when the squad setup itself is healthy.

Environment

  • @bradygaster/squad-cli: 0.9.4-insider.1
  • OS: WSL2 Ubuntu / Linux
  • Node: v22.22.1
  • npm: 10.9.4
  • GitHub CLI: authenticated and working
  • gh copilot --help shows prompt usage as gh copilot -p "..."

Repro

  1. Create a valid loop.md with configured: true
  2. Run:
npm exec squad -- loop

Actual

The first round starts and then fails with:

error: unknown option '--message'
Try 'copilot --help' for more information.

The failing constructed command is effectively:

gh copilot --message "...loop prompt..."

Expected

loop should invoke the installed gh copilot in a way that is accepted by the current CLI.

Evidence

On this machine:

gh copilot --help

shows examples like:

gh copilot -p "Summarize this week's commits"

and does not document --message.

Root Cause

The installed Squad CLI still hardcodes --message in multiple places, including:

  • dist/cli/commands/loop.js
  • dist/cli/commands/watch/index.js
  • dist/cli/commands/watch/capabilities/*.js

Example from the installed code:

const args = ['copilot', '--message', prompt];

Local workaround

Replacing --message with -p in the installed CLI allowed the loop to get past the previous immediate failure and begin Round 1 successfully.

Suggested fix

Update the CLI integration points to use the currently supported gh copilot prompt flag shape, or centralize the Copilot command construction behind a compatibility layer so this does not break again when GitHub CLI changes.

Activity

  1. added 2 commits that reference this issue on Apr 7, 2026
    5b92514
    55676af
  2. added
    bugSomething isn't working
    squadSquad triage inbox — Lead will assign to a member
    on Apr 8, 2026
  3. added 2 commits that reference this issue on Apr 13, 2026
    d4def1f
    4c59947
  4. added 4 commits that reference this issue on Apr 16, 2026
    e9dec56
    5e53a54
    b7a38ac
    723f6e2
  5. added a commit that references this issue on Apr 17, 2026
    21587fb
  6. added a commit that references this issue on Apr 21, 2026
    fdc41a9
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

    bugSomething isn't workingsquadSquad triage inbox — Lead will assign to a member

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions