# 4th bug fixed ! Preserve node annotations from cache

**URL:** <https://aiida.discourse.group/t/4th-bug-fixed-preserve-node-annotations-from-cache/765>\
**Category:** Developer\
**Tags:** discussion, aiida\
**Created:** [September 5, 2026, 3:10am UTC](https://aiida.discourse.group/t/4th-bug-fixed-preserve-node-annotations-from-cache/765 "2026-09-05T03:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![So-coder-ai](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/so-coder-ai/32/426_2.png) [@So-coder-ai](https://aiida.discourse.group/u/So-coder-ai)\
**Post date:** [September 5, 2026, 3:10am UTC](https://aiida.discourse.group/t/4th-bug-fixed-preserve-node-annotations-from-cache/765/1 "2026-09-05T03:10:30Z")

</div>

PR : [#7609](https://github.com/aiidateam/aiida-core/pull/7609)  
Fixes [#7580](https://github.com/aiidateam/aiida-core/issues/7580)

When storing a node from cache, preserve label and description values already set on the new node instead of overwriting them with the cache source’s annotations. Empty labels/descriptions still inherit the cache source values.

Tested with:

- uv run --no-dev --with pytest --with pytest-benchmark --with pytest-cov --with pytest-instafail --with pytest-timeout --with sphinx pytest tests/orm/nodes/test\_node.py -k store\_from\_cache
- uv tool run ruff format --check src/aiida/orm/nodes/node.py tests/orm/nodes/test\_node.py
- uv tool run ruff check --ignore PLC0415 src/aiida/orm/nodes/node.py tests/orm/nodes/test\_node.py
- git diff --check
