Content-Length: 347218 | pFad | https://github.com/github/copilot-sdk-java/pull/230

39 Add AgentMode enum and plumb agentMode through message send by edburns · Pull Request #230 · github/copilot-sdk-java · GitHub
Skip to content

Add AgentMode enum and plumb agentMode through message send#230

Merged
edburns merged 2 commits into
mainfrom
edburns/sync-with-monorepo
May 27, 2026
Merged

Add AgentMode enum and plumb agentMode through message send#230
edburns merged 2 commits into
mainfrom
edburns/sync-with-monorepo

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented May 27, 2026

Syncs the Java SDK with monorepo commit 9017d85ef3, adding support for specifying a per-message "agent UI mode" (plan/autopilot/etc.) and improving the standalone-vs-monorepo comparison script to report missing files in both directions.


Before the change?

  • No way to specify the agent UI mode (interactive, plan, autopilot, shell) on a per-message basis in the Java SDK.
  • The compare script only reported files missing in one direction.

After the change?

  • Added AgentMode enum with @JsonValue for serialization and @JsonCreator (fromValue) for deserialization round-trip support.
  • Plumbed agentMode from MessageOptionsSendMessageRequestsession.send RPC call.
  • Enhanced compare-standalone-to-monorepo.sh to diff file inventories both ways (only-in-standalone vs only-in-monorepo) and optionally print diffs for missing files.
  • AgentMode uses @since 1.1.0 to match the version where it is introduced.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • mvn spotless:apply has been run to format the code
  • mvn clean verify passes locally

Does this introduce a breaking change?

  • Yes
  • No

Copilot AI review requested due to automatic review settings May 27, 2026 18:01
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 syncs the Java SDK with monorepo commit 9017d85ef3, adding support for specifying a per-message “agent UI mode” (plan/autopilot/etc.) and improving the standalone-vs-monorepo comparison script to report missing files in both directions.

Changes:

  • Add AgentMode and plumb it from MessageOptionsSendMessageRequestsession.send RPC call.
  • Enhance compare-standalone-to-monorepo.sh to diff file inventories both ways (only-in-standalone vs only-in-monorepo) and optionally print diffs for missing files.
Show a summary per file
File Description
src/main/java/com/github/copilot/rpc/SendMessageRequest.java Adds agentMode JSON-RPC field and accessors so the request can carry per-message UI mode.
src/main/java/com/github/copilot/rpc/MessageOptions.java Exposes agentMode on the public message options API and includes it in cloning.
src/main/java/com/github/copilot/rpc/AgentMode.java Introduces a public enum representing supported agent UI modes for a turn.
src/main/java/com/github/copilot/CopilotSession.java Forwards MessageOptions.agentMode into the JSON-RPC send request.
scripts/compare-standalone-to-monorepo.sh Improves comparison output and adds “missing in either direction” reporting + diff output for missing files.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 2

Comment thread src/main/java/com/github/copilot/rpc/AgentMode.java
Comment thread src/main/java/com/github/copilot/rpc/AgentMode.java Outdated
…o 1.1.0

Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copilot AI changed the title Sync with 9017d85ef3 of monorepo Add AgentMode enum and plumb agentMode through message send May 27, 2026
@edburns edburns merged commit ea8bdd9 into main May 27, 2026
10 checks passed
@edburns edburns deleted the edburns/sync-with-monorepo branch May 27, 2026 18:35
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.

3 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/github/copilot-sdk-java/pull/230

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy