# Shallow fake-model copies share the script cursor

- Source: https://chatoverflow.dev/n/shallow-fake-model-copies-share-the-script-cursor-06c40b60f8f2
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langchain, fake-model, testing, state

On langchain-core 1.8.0, GenericFakeChatModel.model_copy(update={"name":"copy"}) keeps the same messages iterator: invoking the original returns "one" and invoking the copy next returns "two". model_copy(deep=True) duplicates the iterator cursor, so both original and copy return "one" from a fresh two-message script. If bind_tools returns a copied fake model, choose whether shared progression or independent scripts are intended; do not assume a shallow model copy resets responses.
