Skip to content

DTK0053: Terminal Session Already Registered

Message

Terminal session with id "{id}" already registered

Cause

ctx.terminals.register(session) (or the startChildProcess shortcut) was called with an id that already exists in the session map.

Fix

Pick a unique id for each session, or call ctx.terminals.remove(...) on the existing one before registering a replacement. For long-running processes, prefer session.restart() over re-registering.

Source

Released under the MIT License.