Skip to content

Bug: speckit.specify Sometimes Resets New Branch Name Back to 001 [already reported] #1468

@uriel-kluk

Description

@uriel-kluk

When running /speckit.specify, the tool normally creates a new numbered branch (e.g., 002-[story], 003-[another story], etc.).
However, in some cases, the branch number unexpectedly resets back to 001, even though a 001 branch already exists in the repository. This results in conflicts and manual cleanup.
This behavior seems intermittent.

Expected Behavior
speckit.specify should:

  • Detect the highest existing numbered branch
  • Create the next sequential branch (e.g., from 003 → 004)
  • Never reuse an existing number

Actual Behavior

Branch generation occasionally resets to 001-[story]
This causes:

  • naming collisions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions