fix(terminal): stop stale PTY resize after worktree reveal (#8502)