Problem: Construction probes mod does not recognized module upgrades scheduled/requested by the Module Inserter mod.
Scope: Module Inserter mod (and presumably every fork of it)
Details: The script_raised_build event is used to obtain module counts. When inserting modules into empty machines, this produces correct results. When upgrading the existing modules in a machine, no such event is is triggered. This was traced to the create_request_proxy function within the Module Inserter mod, lines 194-220 (where it appears to use alternative logic for requesting modules).
Workaround: remove modules from machines first, then insert new modules.
Suggested fixes:
Ideally, Module Inserter mod should probably be altered to send a script_raised_built event explicitly through LuaBootstrap.raise_event() (see Factorio API).
If there is a preference for a narrow fix, the construction probes mod provides an interface:
remote.call("eketek-construction-probe", "item_table", game.player, game.player.surface, game.player.position, {["assembling-machine-2"]=100, ["fast-transport-belt"]=1000} (it may be preferable to derive surface and position from something actually being manipulated)