A thermos does not need to know if it is holding hot or cold; it just does its job.
The Liquid-Oxygen Flask That Sold Soup
In 1892, Scottish physicist Sir James Dewar stood in his Royal Institution lab in London trying to keep liquefied oxygen - boiling at a frigid -183°C - from evaporating before he could study it. His solution was a double-walled silvered glass vessel with the air pumped out between the walls, starving heat of any medium to conduct or convect.
Dewar never patented his vacuum flask. Twelve years later, German glassblowers Reinhold Burger and Albert Aschenbrenner realized the same barrier that kept heat out could keep heat in, trademarking 'Thermos' in 1904 for hot coffee and soup. Good boundaries do not need to judge what they protect; they simply hold the line.
Source: Royal Institution archives on James Dewar (1892); Thermos GmbH patent/trademark history (1904).