Skip to content

Copy 4753d81554e9018e788f9e63d114aa50a5f7490e from copilot-sdk#220

Closed
edburns wants to merge 1 commit into
github:mainfrom
edburns:edburns/sync-4753d8-from-copilot-sdk-to-copilot-sdk-java
Closed

Copy 4753d81554e9018e788f9e63d114aa50a5f7490e from copilot-sdk#220
edburns wants to merge 1 commit into
github:mainfrom
edburns:edburns/sync-4753d8-from-copilot-sdk-to-copilot-sdk-java

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented May 21, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 21, 2026 21:30
Copy link
Copy Markdown
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

This PR ports a small change from the upstream copilot-sdk reference implementation, adjusting how the test harness locates the Copilot CLI entrypoint/binary.

Changes:

  • Changed TestUtil.findCliPath() lookup precedence to prefer COPILOT_CLI_PATH before searching the system PATH.
  • Kept the fallback behavior that walks parent directories to find nodejs/node_modules/@github/copilot/index.js.
Show a summary per file
File Description
src/test/java/com/github/copilot/sdk/TestUtil.java Reorders CLI path discovery to check COPILOT_CLI_PATH before PATH lookup.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines 57 to +66
static String findCliPath() {
String copilotInPath = findCopilotInPath();
if (copilotInPath != null) {
return copilotInPath;
}

String envPath = System.getenv("COPILOT_CLI_PATH");
if (envPath != null && !envPath.isEmpty()) {
return envPath;
}

String copilotInPath = findCopilotInPath();
if (copilotInPath != null) {
return copilotInPath;
}
@edburns edburns closed this May 21, 2026
@edburns edburns deleted the edburns/sync-4753d8-from-copilot-sdk-to-copilot-sdk-java branch May 21, 2026 23:53
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.

2 participants