Class GetForegroundSessionResponse

java.lang.Object
com.github.copilot.sdk.json.GetForegroundSessionResponse

public class GetForegroundSessionResponse extends Object
Response from session.getForeground RPC call.

This is only available when connecting to a server running in TUI+server mode (--ui-server).

Since:
1.0.0
  • Constructor Details

    • GetForegroundSessionResponse

      public GetForegroundSessionResponse()
  • Method Details

    • getSessionId

      public String getSessionId()
      Gets the session ID currently displayed in the TUI.
      Returns:
      the session ID, or null if no foreground session
    • setSessionId

      public void setSessionId(String sessionId)
    • getWorkspacePath

      public String getWorkspacePath()
      Gets the workspace path of the foreground session.
      Returns:
      the workspace path, or null
    • setWorkspacePath

      public void setWorkspacePath(String workspacePath)