@@ -206,14 +206,14 @@ async def write_stdin(
206206 delta_base64 : str | None = None ,
207207 ) -> EmptyResult : ...
208208
209- async def resize (
209+ async def resize_terminal (
210210 self ,
211211 * ,
212212 process_id : str ,
213213 size : protocol .CommandExecTerminalSize ,
214214 ) -> EmptyResult : ...
215215
216- async def terminate (self , * , process_id : str ) -> EmptyResult : ...
216+ async def terminate_process (self , * , process_id : str ) -> EmptyResult : ...
217217
218218
219219class _AsyncExternalAgentConfigClientLike (Protocol ):
@@ -609,16 +609,26 @@ def write_stdin(
609609 )
610610 )
611611
612- def resize (
612+ def resize_terminal (
613613 self ,
614614 * ,
615615 process_id : str ,
616616 size : protocol .CommandExecTerminalSize ,
617617 ) -> EmptyResult :
618- return self . _run ( self . _async_client . resize ( process_id = process_id , size = size ))
618+ """Resize the terminal attached to a running `command/exec` process.
619619
620- def terminate (self , * , process_id : str ) -> EmptyResult :
621- return self ._run (self ._async_client .terminate (process_id = process_id ))
620+ This wraps the app-server `command/exec/resize` request and sends the
621+ new terminal dimensions as `cols` and `rows`.
622+ """
623+ return self ._run (self ._async_client .resize_terminal (process_id = process_id , size = size ))
624+
625+ def terminate_process (self , * , process_id : str ) -> EmptyResult :
626+ """Terminate a running `command/exec` process.
627+
628+ This wraps the app-server `command/exec/terminate` request for the
629+ client-supplied process id.
630+ """
631+ return self ._run (self ._async_client .terminate_process (process_id = process_id ))
622632
623633
624634class _ExternalAgentConfigClient (_SyncRunner ):
0 commit comments