<b>Conclusions:</b> The activation state of CD8<sup>+</sup> T<sub>RM</sub> cells combined with their spatial localization constitutes a critical prognostic factor in CCA. Here, CD8A is linked to cholangiocarcinoma.