Skip to content

fix(cli): resolve Windows commands from explicit PATH entries - #2705

Merged
jariy17 merged 2 commits into
mainfrom
fix/windows-executable-resolution-main
Oct 26, 2026
Merged

jariy17 merged 2 commits into
mainfrom
fix/windows-executable-resolution-main

Conversation

@notgitika

Copy link
Copy Markdown
Contributor

Description

Resolve bare commands against absolute PATH entries on Windows before launch, while preserving PATHEXT and command-shim support. Route CLI process creation through shared subprocess helpers and propagate the Windows lookup setting to child processes. Explicit paths retain their existing behavior.

Related Issue

Not applicable.

Documentation PR

Not applicable; no user-facing documentation changes are needed.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

  • Full unit suite: 443 files, 6,379 tests passed
  • Focused subprocess suites: 2 files, 37 tests passed
  • npm run typecheck
  • npm run lint
  • npm run format:check
  • npm run build

Checklist

  • I have read the CONTRIBUTING document
  • I have added tests that prove the fix is effective
  • No documentation changes are needed
  • No new warnings are introduced
  • No dependent changes are required

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Resolve bare commands through absolute PATH entries before launching them on Windows. Route process creation through the shared subprocess helpers and pass the Windows lookup setting to child processes.
@notgitika
notgitika requested a review from a team October 26, 2026 16:02
@github-actions github-actions Bot added the size/l PR size: L label Oct 26, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added claude-security-reviewing Claude Code /security-review in progress agentcore-harness-reviewing AgentCore Harness review in progress labels Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.31.1.tgz

How to install

gh release download pr-2705-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.31.1.tgz

@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

Comment thread src/lib/utils/subprocess.ts Fixed
Comment thread src/lib/utils/subprocess.ts Fixed
@agentcore-devx-automation agentcore-devx-automation Bot removed claude-security-reviewing Claude Code /security-review in progress agentcore-harness-reviewing AgentCore Harness review in progress labels Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 41.75% 16052 / 38446
🔵 Statements 41% 17126 / 41767
🔵 Functions 35.72% 2764 / 7736
🔵 Branches 34.78% 10739 / 30871
Generated in workflow #4589 for commit 5602b24 by the Vitest Coverage Report Action

@notgitika

Copy link
Copy Markdown
Contributor Author

CI status note:

  • Quality and Safety Checks / security fails in the dependency-audit step on the repository’s current dependency state. This PR does not modify dependency manifests, lockfiles, or audit configuration.
  • harness-review / review stopped because the automated reviewer reached its maximum generation limit before producing a result. It did not report a code finding.

All source-validation checks passed, including the build, all three unit-test shards, all four integration-test shards, coverage, lint, type checking, formatting, CodeQL, and the external end-to-end build.

Keep caller-requested shell execution disabled and add focused Windows coverage for commands and arguments containing metacharacters.
@github-actions github-actions Bot added size/l PR size: L and removed size/l PR size: L labels Oct 26, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Oct 26, 2026
Comment thread src/lib/utils/subprocess.ts Dismissed
Comment thread src/lib/utils/subprocess.ts Dismissed
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 26, 2026
@jariy17
jariy17 merged commit 7f92b5a into main Oct 26, 2026
37 of 38 checks passed
@jariy17
jariy17 deleted the fix/windows-executable-resolution-main branch October 26, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/l PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants