--- title: 'DF8205: Terminal Session Is Not Restartable' description: 'Terminal session "{id}" is not restartable' --- ## Message > Terminal session "`{id}`" is not restartable ## Cause `hub:terminals:restart` was called for a session registered with `restartable: false`, a flag for sessions whose lifecycle is owned elsewhere (a one-shot build, or a server like code-server restarted through its own controls). ## Fix It was registered with `restartable: false`; restart it through its owner's controls, or spawn it with `restartable: true` (the default) to allow in-place restarts. ## Source - [`packages/hub/src/node/rpc-builtins.ts`](https://github.com/devframes/devframe/blob/main/packages/hub/src/node/rpc-builtins.ts): the `hub:terminals:restart` handler throws this when the resolved session has `restartable: false`.