Skip to content

[java] Add linux-x64 implementation of in process Copilot CLI - #2301

Merged
edburns merged 18 commits into
mainfrom
edburns/1917-java-embed-rust-cli-runtime-dd-3042873-seeking-review-03
Aug 12, 2026
Merged

[java] Add linux-x64 implementation of in process Copilot CLI#2301
edburns merged 18 commits into
mainfrom
edburns/1917-java-embed-rust-cli-runtime-dd-3042873-seeking-review-03

fix(java): complete Maven module migration

66fd1e5
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Aug 12, 2026 in 2s

81 new alerts

New alerts in code changed by this pull request

  • 81 notes

Alerts not introduced by this pull request might have been detected because the code changes were too large.

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 246 in java/sdk/src/main/java/com/github/copilot/CliServerManager.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.

Check notice on line 834 in java/sdk/src/main/java/com/github/copilot/CopilotSession.java

See this annotation in the file changed.

Code scanning / CodeQL

Chain of 'instanceof' tests Note

This if block performs a chain of 6 type tests - consider alternatives, e.g. polymorphism or the visitor pattern.

Check notice on line 1772 in java/sdk/src/main/java/com/github/copilot/CopilotSession.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
JsonNode.fields
should be avoided because it has been deprecated.

Check notice on line 47 in java/sdk/src/main/java/com/github/copilot/rpc/AutoModeSwitchHandler.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'invocation' is never used.

Check notice on line 40 in java/sdk/src/main/java/com/github/copilot/rpc/CommandHandler.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'context' is never used.

Check notice on line 43 in java/sdk/src/main/java/com/github/copilot/rpc/ElicitationHandler.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'context' is never used.

Check notice on line 47 in java/sdk/src/main/java/com/github/copilot/rpc/ExitPlanModeHandler.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'invocation' is never used.

Check notice on line 34 in java/sdk/src/main/java/com/github/copilot/rpc/PreMcpToolCallHandler.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'invocation' is never used.

Check notice on line 324 in java/sdk/src/main/java/com/github/copilot/rpc/SessionConfig.java

See this annotation in the file changed.

Code scanning / CodeQL

Exposing internal representation Note

setAvailableTools exposes the internal representation stored in field availableTools. The value may be modified
through the variable toolList
.

Check notice on line 91 in java/sdk/src/test/java/com/github/copilot/CommandsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
SessionRequestBuilder.buildCreateRequest
should be avoided because it has been deprecated.

Check notice on line 119 in java/sdk/src/test/java/com/github/copilot/CommandsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
SessionRequestBuilder.buildCreateRequest
should be avoided because it has been deprecated.

Check notice on line 358 in java/sdk/src/test/java/com/github/copilot/ConfigCloneTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
CopilotClientOptions.isAutoRestart
should be avoided because it has been deprecated.

Check notice on line 359 in java/sdk/src/test/java/com/github/copilot/ConfigCloneTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
CopilotClientOptions.setAutoRestart
should be avoided because it has been deprecated.

Check notice on line 360 in java/sdk/src/test/java/com/github/copilot/ConfigCloneTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
CopilotClientOptions.isAutoRestart
should be avoided because it has been deprecated.

Check notice on line 401 in java/sdk/src/test/java/com/github/copilot/ConfigCloneTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
CopilotClientOptions.setGithubToken
should be avoided because it has been deprecated.

Check notice on line 402 in java/sdk/src/test/java/com/github/copilot/ConfigCloneTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
CopilotClientOptions.getGithubToken
should be avoided because it has been deprecated.

Check notice on line 165 in java/sdk/src/test/java/com/github/copilot/ElicitationTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
SessionRequestBuilder.buildCreateRequest
should be avoided because it has been deprecated.

Check notice on line 174 in java/sdk/src/test/java/com/github/copilot/ElicitationTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
SessionRequestBuilder.buildCreateRequest
should be avoided because it has been deprecated.

Check notice on line 80 in java/sdk/src/test/java/com/github/copilot/JsonRpcClientTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing catch of NumberFormatException Note test

Potential uncaught 'java.lang.NumberFormatException'.

Check notice on line 25 in java/sdk/src/test/java/com/github/copilot/PermissionRequestResultTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
MapperBuilder.serializationInclusion
should be avoided because it has been deprecated.

Check notice on line 60 in java/sdk/src/test/java/com/github/copilot/PermissionsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note test

The parameter 'testInfo' is never used.

Check notice on line 103 in java/sdk/src/test/java/com/github/copilot/PermissionsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note test

The parameter 'testInfo' is never used.

Check notice on line 137 in java/sdk/src/test/java/com/github/copilot/PermissionsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note test

The parameter 'testInfo' is never used.

Check notice on line 161 in java/sdk/src/test/java/com/github/copilot/PermissionsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note test

The parameter 'testInfo' is never used.

Check notice on line 199 in java/sdk/src/test/java/com/github/copilot/PermissionsTest.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note test

The parameter 'testInfo' is never used.