Whenever a file in core is changed the gui is rebuilt. Some things in core have nothing to do with gui though (like the cli). Rebuilding gui when cli is changed does not make sense.
*** This bug has been marked as a duplicate of 3476 ***