Skip to content

Commit d66ea1a

Browse files
edburnsCopilot
andcommitted
Remove unused options parameter from resolveInProcessEntrypoint
NativeRuntimeLoader.resolveEntrypoint() handles COPILOT_CLI_PATH resolution internally, making the CopilotClientOptions parameter redundant. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 35ff58dd-bfec-40bc-981d-d3c82174511d
1 parent c3f3ab5 commit d66ea1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/sdk/src/main/java/com/github/copilot/CopilotClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ void setInProcessTransportFactory(InProcessTransportFactory factory) {
478478
private static InProcessTransport openInProcessTransport(CopilotClientOptions options) throws IOException {
479479
FfiRuntimeHost host = new FfiRuntimeHost();
480480
try {
481-
host.start(resolveInProcessEntrypoint(options), options);
481+
host.start(resolveInProcessEntrypoint(), options);
482482
} catch (RuntimeException | Error e) {
483483
host.close();
484484
throw e;
@@ -491,7 +491,7 @@ private static InProcessTransport openInProcessTransport(CopilotClientOptions op
491491
* CLI executable is resolved from the same bundled location as
492492
* {@code runtime.node} — no environment variables or PATH search.
493493
*/
494-
private static String resolveInProcessEntrypoint(CopilotClientOptions options) throws IOException {
494+
private static String resolveInProcessEntrypoint() throws IOException {
495495
return NativeRuntimeLoader.resolveEntrypoint().toString();
496496
}
497497

0 commit comments

Comments
 (0)