The terminal cursor seems to consistently be at wrong (further in the line) place, when user tries to use python3.13 inside the terminal:

I think it is VS Code thing, since the cursor seems "normal" for external terminal and Pycharm.

The only Python prompt specific code that I recall is:
|
const pythonPrompt = lineText.match(/^(?<prompt>>>> )/g)?.groups?.prompt; |
but wondering if this is the right place to look at.
The terminal cursor seems to consistently be at wrong (further in the line) place, when user tries to use python3.13 inside the terminal:

I think it is VS Code thing, since the cursor seems "normal" for external terminal and Pycharm.

The only Python prompt specific code that I recall is:
vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.ts
Line 961 in 0561ca0