Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: github/copilot-sdk-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: github/copilot-sdk-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/add-get-session-metadata
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 4 contributors

Commits on Mar 25, 2026

  1. Add getSessionMetadata for O(1) session lookup by ID

    Port upstream copilot-sdk PR #899 to Java SDK. Adds a new
    getSessionMetadata(sessionId) method to CopilotClient that calls the
    session.getMetadata JSON-RPC endpoint for efficient single-session
    metadata lookup. Returns null when the session is not found.
    
    Changes:
    - CopilotClient: new getSessionMetadata(String) method
    - GetSessionMetadataResponse: new response DTO record
    - SessionMetadata: updated Javadoc to reference new method
    - CopilotSessionTest: new @disabled E2E test (matching upstream skip
      pattern for session lifecycle tests)
    
    Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
    brunoborges and Copilot committed Mar 25, 2026
    Configuration menu
    Copy the full SHA
    b6b0ab6 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2026

  1. Update getSessionMetadata to match final upstream PR #899 state

    Agent-Logs-Url: https://github.com/github/copilot-sdk-java/sessions/1dcd7e77-9de7-4ada-81f4-2a0b425919fb
    
    Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
    Copilot and edburns authored Mar 27, 2026
    Configuration menu
    Copy the full SHA
    648e3f1 View commit details
    Browse the repository at this point in the history
Loading