add user interactive conditional code in code_action