diff --git a/plugins/terminal/src/org/jetbrains/plugins/terminal/block/reworked/session/rpc/TerminalSessionApi.kt b/plugins/terminal/src/org/jetbrains/plugins/terminal/block/reworked/session/rpc/TerminalSessionApi.kt index 5efd34b1052b..4af5614ba75b 100644 --- a/plugins/terminal/src/org/jetbrains/plugins/terminal/block/reworked/session/rpc/TerminalSessionApi.kt +++ b/plugins/terminal/src/org/jetbrains/plugins/terminal/block/reworked/session/rpc/TerminalSessionApi.kt @@ -14,6 +14,11 @@ import org.jetbrains.annotations.ApiStatus @ApiStatus.Internal @Rpc interface TerminalSessionApi : RemoteApi { + /** + * Note, that implementation should return the separate instance of the channel at least for each [com.intellij.codeWithMe.ClientId]. + * Because the RPC logic closes the returned channel once the client disconnects, + * so it may interrupt the reading of the channel on the backend. + */ suspend fun getInputChannel(sessionId: TerminalSessionId): SendChannel suspend fun getOutputFlow(sessionId: TerminalSessionId): Flow>