# Agent with Checkpointer Reusing Tool Results in Continuing Conversations

**URL:** <https://forum.langchain.com/t/agent-with-checkpointer-reusing-tool-results-in-continuing-conversations/2181>\
**Category:** LangChain\
**Tags:** js-help\
**Created:** [November 12, 2025, 4:57pm UTC](https://forum.langchain.com/t/agent-with-checkpointer-reusing-tool-results-in-continuing-conversations/2181 "2025-11-12T16:57:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juancarlos\_la](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/juancarlos_la/32/1596_2.png) [@juancarlos\_la](https://forum.langchain.com/u/juancarlos_la)\
**Post date:** [November 12, 2025, 4:57pm UTC](https://forum.langchain.com/t/agent-with-checkpointer-reusing-tool-results-in-continuing-conversations/2181/1 "2025-11-12T16:57:35Z")

</div>

Hi, I’m using LangChain v1 (TypeScript) with createAgent and MongoDBSaver checkpointer for a RAG application. I’m experiencing behaviour where tool results seem to be reused across conversation turns instead of making fresh tool calls.

**Setup** :

- LangChain v1.x (TypeScript)

- createAgent with MongoDBSaver checkpointer

- Custom retrieval tool with parameters captured in closure (e.g., groupIds)

- Multi-turn conversations

**Observed Behaviour** :

- Request 1 (new conversation):

- Request 2 (continuing conversation):

**What I Expected** :

- Agent loads conversation history (Q&A about Company1)

- Agent sees NEW question about Company2

- Agent calls the retrieval tool with a fresh query

- Tool performs a new vector search (same groupIds, different semantic query)

- Returns Company2 documents

**What Actually Happens** :

- Agent returns “not found” or Company1 information

- Citations show the SAME documents from Request 1

- Tool is either not called or returns cached results

**What I’ve Tried** :

1. **Middleware to filter ToolMessages** :

- Result: Still reuses old results

1. **Manual checkpoint management** (current workaround):

Result: Works - fresh tool calls every time

**Questions** :

1. Is this expected behaviour when using createAgent with a checkpointer?

2. Should middleware be sufficient to prevent tool result reuse?

3. Is manual checkpoint management the recommended approach for this use case?

4. Am I missing something in my implementation?

Any guidance would be greatly appreciated!

**Environment** :

- LangChain: v1.x (TypeScript)

- Node.js: v24

- Checkpointer: MongoDBSaver

---

<div class="post-metadata">

**Author:** ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)\
**Post date:** [November 13, 2025, 2:39pm UTC](https://forum.langchain.com/t/agent-with-checkpointer-reusing-tool-results-in-continuing-conversations/2181/2 "2025-11-13T14:39:46Z")

</div>

hi @juancarlos_la

this is actually very weird imho. I would expect that either the LLM calls the tool per unique query or the framework reuses the response for the same query.

What LLM model are you using?

---

<div class="post-metadata">

**Author:** ![juancarlos\_la](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/juancarlos_la/32/1596_2.png) [@juancarlos\_la](https://forum.langchain.com/u/juancarlos_la)\
**Post date:** [November 13, 2025, 4:10pm UTC](https://forum.langchain.com/t/agent-with-checkpointer-reusing-tool-results-in-continuing-conversations/2181/3 "2025-11-13T16:10:53Z")

</div>

I’m using `anthropic.claude-3-sonnet-20240229-v1:0`.

I’ve created a bug for it here, with more detailed information: [Agent with Checkpointer Reuses Tool Results in Multi-Turn Conversations · Issue #9384 · langchain-ai/langchainjs · GitHub](https://github.com/langchain-ai/langchainjs/issues/9384)

---

<div class="post-metadata">

**Author:** ![pawel-twardziak](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/pawel-twardziak/32/960_2.png) [@pawel-twardziak](https://forum.langchain.com/u/pawel-twardziak)\
**Post date:** [November 13, 2025, 4:44pm UTC](https://forum.langchain.com/t/agent-with-checkpointer-reusing-tool-results-in-continuing-conversations/2181/4 "2025-11-13T16:44:05Z")

</div>

great, thanks!  
btw this is for python, not javascript, repo [Agent with Checkpointer Reuses Tool Results in Multi-Turn Conversations · Issue #33936 · langchain-ai/langchain · GitHub](https://github.com/langchain-ai/langchain/issues/33936) - it should not be there
