As you said about "you'll know" the right time to let Cody go; when the time comes to get another puppy "you'll know". The heart has infinite amount of love to give and there will be a time when your heart has healed enough (never completely) to share that love with another puppy.

Take care of your self and hold those memories close to your heart!