If VS Code Copilot isn’t detecting your shell properly, it’s likely your right-hand prompt (RPROMPT) interfering. Add this to .zshrc:

if [[ "$TERM_PROGRAM" == "vscode" ]]; then
    unset RPROMPT
    unset RPS1
fi