@@ -802,6 +802,7 @@ def execute_and_await_completion(
802802 devbox_id : str ,
803803 * ,
804804 command : str ,
805+ command_id : str = str (uuid7 ()),
805806 last_n : str | Omit = omit ,
806807 optimistic_timeout : Optional [int ] | Omit = omit ,
807808 shell_name : Optional [str ] | Omit = omit ,
@@ -816,11 +817,10 @@ def execute_and_await_completion(
816817 """
817818 Execute a command and wait for it to complete with optimal latency for long running commands.
818819
819- This method launches an execution with a generated command_id and first attempts to
820+ This method launches an execution and first attempts to
820821 return the result within the initial request's timeout. If the execution is not yet
821822 complete, it switches to using wait_for_command to minimize latency while waiting.
822823 """
823- command_id = str (uuid7 ()) # type: ignore
824824 execution = self .execute (
825825 devbox_id ,
826826 command = command ,
@@ -2288,6 +2288,7 @@ async def execute_and_await_completion(
22882288 devbox_id : str ,
22892289 * ,
22902290 command : str ,
2291+ command_id : str = str (uuid7 ()),
22912292 last_n : str | Omit = omit ,
22922293 optimistic_timeout : Optional [int ] | Omit = omit ,
22932294 shell_name : Optional [str ] | Omit = omit ,
@@ -2302,12 +2303,11 @@ async def execute_and_await_completion(
23022303 """
23032304 Execute a command and wait for it to complete with optimal latency for long running commands.
23042305
2305- This method launches an execution with a generated command_id and first attempts to
2306+ This method launches an execution and first attempts to
23062307 return the result within the initial request's timeout. If the execution is not yet
23072308 complete, it switches to using wait_for_command to minimize latency while waiting.
23082309 """
23092310
2310- command_id = str (uuid7 ()) # type: ignore
23112311 execution = await self .execute (
23122312 devbox_id ,
23132313 command = command ,
0 commit comments