| Run a command and wait for its result | Sync session.run(...); async await session.run(...) | Submit, then poll until the operation reaches a terminal state | contree run | run with wait=true |
| Start work and inspect it later | Regular-session spawn() for a live operation handle; spawn_detached() with persistent storage for later collection | Submit and keep the returned operation ID | Use contree run -d, then contree op wait OPERATION_ID; see the operation reference | run with wait=false, then get_operation or wait_operations |
| Save or discard filesystem changes | Default lazy sessions snapshot files; regular sessions save by default and accept disposable=True | Send disposable: false to save or true to discard; the request schema defaults to false | Runs save by default; add -D to discard | Set disposable=false to save; the tool defaults to true |
| Stream operation events and resume after disconnect | Use operation.events() after regular-session spawn() | Subscribe with SSE and resume with Last-Event-Id | CLI 0.9.4 has no event-stream command | The exposed tool set has no event-stream tool |
| Start and control another process inside an active operation | Use a regular session operation’s run(), stdin forwarding, and signal methods | Use the spawn, stdin, EOF, result, and signal endpoints | CLI 0.9.4 has no additional-process command | The exposed tool set has no additional-process, stdin, or signal tool |
| Inspect saved files without starting a VM | Use a regular session’s inspect() and file-transfer helpers | Use the image inspection endpoints | Use ls, cat, and cp | Use list_files, read_file, and download |