Downcity
Commands

studio stop

Stop console (and managed child agent processes)

studio stop

Stop console (and managed child agent processes).

The current implementation also tries to clean up detached orphan processes:

  • Studio runtime (run) processes that are still alive without a pid file
  • Console (console run) processes that are still alive without a pid file
  • agent daemons (agent start --foreground true) that are still alive without a pid file

On macOS and Linux, studio stop stops the matching process group first. ACP executors, shell sessions, and watch child processes started by an agent receive the same stop signal, which prevents orphaned children from continuing to consume memory after the parent process exits.

Usage

studio stop

Example Output (Based on Current Implementation)

The examples below are aligned with current command implementations in cli/studio/src (including default output mode and field structure). Placeholder values are used for environment-specific fields.

$ studio stop
studio v1.0.0
✅ Console UI stopped
   pid: <uiPid>
   pidFile: <uiPidPath>
   log: <uiLogPath>
✅ Studio runtime stopped
   pid: <pid>
   pidFile: <consolePidPath>
   log: <consoleLogPath>
✅ orphan process stopped
   pid: <orphanPid>
   command: <orphanCommand>
$ studio stop
studio v1.0.0
ℹ️  Studio runtime is not running
   pidFile: <consolePidPath>
   log: <consoleLogPath>