Package com.github.copilot.sdk.json
Class GetForegroundSessionResponse
java.lang.Object
com.github.copilot.sdk.json.GetForegroundSessionResponse
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the session ID currently displayed in the TUI.Gets the workspace path of the foreground session.voidsetSessionId(String sessionId) voidsetWorkspacePath(String workspacePath)
-
Constructor Details
-
GetForegroundSessionResponse
public GetForegroundSessionResponse()
-
-
Method Details
-
getSessionId
Gets the session ID currently displayed in the TUI.- Returns:
- the session ID, or null if no foreground session
-
setSessionId
-
getWorkspacePath
Gets the workspace path of the foreground session.- Returns:
- the workspace path, or null
-
setWorkspacePath
-