I think it should be ideally set each time corridor.reset() or corridor.setCorridor() is called. On all other cases it should be false, but when the setCorridor is called as result of targetState == DT_CROWDAGENT_TARGET_WAITING_FOR_PATH, then we should use the flag from path queue to set the partial state.

I think the exact meaning of the partial should be that it indicates if a DT_CROWDAGENT_TARGET_VALID is partial path or otherwise it is false.