Context switching between chat and composer

does composer have context on chat and vice versa? it would be great if there was some sort of guidance on when to use chat, when to use composer and how to switch between the two without claude losing context. feels like both are better at different times until one stops performing (not applying changes, losing context, etc)