DTK0054: Terminal Session Not Registered
Message
Terminal session with id "
{id}" not registered
Cause
ctx.terminals.update(patch) was called with an id that has no corresponding session. Updates can only target a session that is still alive in the kit's terminal map.
Fix
Register the session via ctx.terminals.register(...) (or ctx.terminals.startChildProcess(...)) first. Guard updates with ctx.terminals.sessions.has(id) if a session may have been removed concurrently.
Source
packages/kit/src/node/host-terminals.ts—DevToolsTerminalHost.updatethrowsDTK0054when the patch's id isn't insessions.