As you type into the buffer when Codi is started, Codi evaluates the code. Unfortunately, a side effect of this behaviour is that this plug-in decides to strip the white space as you type - as you are still in insert mode. This is rather annoying, especially when you are trying to type code that is indented.
To illustrate this behaviour, see this:

I have mentioned this in this issue here metakirby5/codi.vim#90