Skip to content

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

Closed
edburns wants to merge 100 commits into
mainfrom
edburns/1917-java-embed-rust-cli-runtime-dd-3042873-seeking-review
Closed

[java] Add linux-x64 implementation of in process Copilot CLI#2259
edburns wants to merge 100 commits into
mainfrom
edburns/1917-java-embed-rust-cli-runtime-dd-3042873-seeking-review

Replace identity comparison with .equals() for ABSENT_SENTINEL

e435cfc
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Aug 5, 2026 in 4s

96 new alerts

New alerts in code changed by this pull request

  • 96 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 1771 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 61 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'envJson' is never used.

Check notice on line 61 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'envJsonLen' is never used.

Check notice on line 74 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'userData' is never used.

Check notice on line 74 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'extSource' is never used.

Check notice on line 75 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'extSourceLen' is never used.

Check notice on line 75 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'extName' is never used.

Check notice on line 75 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'extNameLen' is never used.

Check notice on line 75 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'connToken' is never used.

Check notice on line 75 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'connTokenLen' is never used.

Check notice on line 82 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'data' is never used.

Check notice on line 82 in java/sdk/src/main/java/com/github/copilot/ffi/JnaNativeBinding.java

See this annotation in the file changed.

Code scanning / CodeQL

Useless parameter Note

The parameter 'dataLen' is never used.

Check notice on line 53 in java/sdk/src/main/java/com/github/copilot/ffi/QueueInputStream.java

See this annotation in the file changed.

Code scanning / CodeQL

Ignored error status of call Note

Method enqueue ignores exceptional return value of BlockingQueue<byte\[\]>.offer.

Check notice on line 116 in java/sdk/src/main/java/com/github/copilot/ffi/QueueInputStream.java

See this annotation in the file changed.

Code scanning / CodeQL

Ignored error status of call Note

Method close ignores exceptional return value of BlockingQueue<byte\[\]>.offer.

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 321 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 350 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.