If you want to work around this bug, Claude Code supports all the readline shortcuts such as Ctrl-W and Ctrl-U.