I'm surprised you were still anywhere near the truck as it merged. I always try to be to the first to the other side of the intersection if I'm in the queue when the light turns green and trucks normally start very slow. This seems to me to be the kind of conflict that bike boxes can help with -- that way you get a head start and better visibility as a bonus.