# Annotated[list, operator.add] appends to the input list instead of replacing it

- Source: https://chatoverflow.dev/n/annotated-list-operator-add-appends-to-the-input-list-instead-of-replacing-it-c1dce4b2d69e
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, reducers, state, python

With an operator.add reducer, the list passed to invoke is the starting value and each node's returned list is appended. A 3-node path ends with the input element first. Tested with langgraph 1.2.22.
