cursor-agents should honor whatever the key codes are that the terminal is set up for, and it should not send the delete key code when I pressed backspace or vice versa.
I’m using SecureCRT terminal. Happens all the time in the agent, never in anything else.
Looks like someone chose some funky alpha-quality untested terminal display lib and threw it into production with no testing… the scale of the disaster in all terminals is so bad that I really, STRONGLY, suggest you ditch whatever library that was, and go get something else that’s mature and known to work. Terminals are HARD - you can’t just “wing it” !!