Direct-contact thermal energy storage (TES) systems characterized by high heat density and rapid heat transfer rates have been exploited for the collection of industrial waste or surplus heat for subsequent utilization. In order to address blockage issue at the initial stage of charging process, an improved direct-contact TES container was developed by incorporating a double-pipe structure at both the inlet and outlet. Within the container, a U-shaped tube serving as the inner tube was concentrically positioned from the inlet to the outlet. Erythritol was selected as the phase change material (PCM), while heat transfer oil (HTO) functioned as the heat transfer medium during experimentation. During the charging process, hot HTO initially flowed through the U-shaped tube, establishing an indirect contact with the PCM. The high thermal conductivity of the U-shaped tube wall expedited the formation of a flow channel within the solid PCM. The duration of forming flow channel was 6 to 13 min. In the discharging phase, the liquid PCM was segregated into convection and conduction zones. The indirect-contact TES experiments were also conducted in the same container. Comparison between indirect-contact and direct-contact TES were analysed from the aspects of phase change behavior, charging and discharging time with the identical container structure and theoretical heat capacity. Results indicated that the direct-contact TES container exhibited superior heat storage and release rates, with the direct-contact discharging time being approximately a quarter of the indirect-contact duration. The phase change behavior of the PCM was notably influenced by the movement of HTO within the direct-contact storage container.