feat: enhance IME handling in assistant composer to prevent premature submission