The stop reason, or else the last diagnostic, counting a final line the child left unfinished.
Records why the runtime is stopping the child. A TUI may never display it where an operator looks, and it is the cause of the exit whatever the child prints next.
Keeps the diagnostic a pty child's exit reports: the runtime's own reason when it stopped the child itself, otherwise the last connector diagnostic the child printed, read across arbitrary output chunks. Both pty backends feed it, so a seat's exit reports the same diagnostic whichever one owned the child.