Skip to content

fix(scripts): honor PowerShell agent and script filters#1969

Open
chenry-me wants to merge 1 commit intogithub:mainfrom
chenry-me:fix-powershell-offline
Open

fix(scripts): honor PowerShell agent and script filters#1969
chenry-me wants to merge 1 commit intogithub:mainfrom
chenry-me:fix-powershell-offline

Conversation

@chenry-me
Copy link

@chenry-me chenry-me commented Mar 25, 2026

Fixes #1946

Description

Fixes a Windows offline scaffolding bug in create-release-packages.ps1.

The PowerShell helper Normalize-List used $Input as its parameter name, which conflicts with PowerShell's automatic $input variable. This caused -Agents and -Scripts filtering to be ignored, so specify init --offline could fail with release script produced no output.

This change renames the parameter and updates the call sites so the selected agent/script filters are honored correctly.

Testing

  • Tested locally with uv run specify --help
  • Ran existing tests with uv sync && uv run pytest
  • Tested with a sample project (if applicable)

Manual verification:

  • Reproduced the failure with specify init ... --offline --ai opencode --script ps before the fix
  • Verified that offline scaffolding succeeds after the fix

Note:

  • I did not mark the full pytest suite as passing in my Windows environment because there are unrelated bash/path/tooling failures, including missing zip for the bash release-packaging path and tests that pass Windows absolute paths directly to bash.

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance (describe below)

I used OpenCode (GPT-5.4) to help analyze the code, identify the root cause, and draft parts of the fix description (to help me communicate more clearly in English). I manually reproduced the bug, reviewed the relevant script behavior, and verified the final fix locally.

Rename the Normalize-List parameter in create-release-packages.ps1 to avoid conflicting with PowerShell's automatic $input variable. This fixes Windows offline scaffolding when -Agents and -Scripts are passed.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a Windows offline scaffolding bug in the PowerShell release-packaging script where -Agents/-Scripts filters were silently ignored due to a parameter name collision with PowerShell’s automatic $input variable.

Changes:

  • Rename Normalize-List parameter from $Input to $Value to avoid $input collision.
  • Update the Normalize-List call sites so agent/script filtering is honored.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: PowerShell offline scaffolding ignores -Agents / -Scripts, causing --offline to fail on Windows

3 participants