Are \[ and \] needed?

Have you tried searching your history (Ctrl+P or )? Once the line is longer, it can overwrite the prompt if it doesn't know its correct length.