When trying to restore a shell job started in a VSCode terminal, I'm getting the following error:
127514: Error (criu/tty.c:1453): tty: No task found with sid 124454
Error (criu/cr-restore.c:2324): Restoring FAILED.
Although VSCode uses the same pseudo-terminal xterm-256color as my system, the issue only occurs inside VSCode.
For anyone facing the same problem: a simple workaround is to run a tmux session within the VSCode terminal.