         return cmd
 
     search : ->
-        query = @state.user_input
+        query = @props.user_input
         if query.trim() == ''
-            @setState
+            @props.actions.setTo
                 search_results     : []
                 search_error       : undefined
                 command            : ''


    handle_change : ->
        user_input = @refs.project_search_input.getValue()
        @setState(user_input : user_input)
        @props.set_state_cb(user_input : user_input)

    submit : (event) ->
        event.preventDefault()

        most_recent_path : rtypes.string
        project_id       : rtypes.string
        search_error     : rtypes.string

    too_many_results : ->
        if @props.too_many_results
