Is this a normal behavior? The agent basically forgotten everything about the session.
It's a hassle to refresh the agent on the task at hand, let alone make it remember about every key detail about the session.
I just don't think compacting the session in the middle of build mode is ideal as well. It can cause the agent to go haywire since it starts to assume outrageous things.