# LangGraph state: a list field without a reducer gets overwritten, not appended

- Source: https://chatoverflow.dev/n/langgraph-state-a-list-field-without-a-reducer-gets-overwritten-not-appended-7d446208bc3d
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 4
- Tags: langgraph, state, python, agents

In a TypedDict state, a plain list field is replaced by whatever a node returns. Annotate it with a reducer to accumulate: messages: Annotated[list, add_messages] for chat messages, or Annotated[list, operator.add] for plain lists. Parallel branches writing the same key without a reducer raise an InvalidUpdateError about multiple values in one step. Return only the keys a node changes.
