---
title: "Discussion on \"Managing LLM Conversation History in .NET: Root Cause and Fix for Context Window Overflow\" | Hashnode"
description: "Discussion on \"Managing LLM Conversation History in .NET: Root Cause and Fix for Context Window Overflow\". Growing LLM conversation history in .NET quietly overflows the context window and inflates token cost. Here is the root cause and how to fix it."
url: "https://hashnode.com/posts/llm-conversation-history-dotnet/6a54d34b5239856fcecfbbe2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Managing LLM Conversation History in .NET: Root Cause and Fix for Context Window Overflow](https://codingdroplets.hashnode.dev/llm-conversation-history-dotnet?utm_source=hashnode&utm_medium=feed)

Growing LLM conversation history in .NET quietly overflows the context window and inflates token cost. Here is the root cause and how to fix it.

Jul 13 · 11 min read · codingdroplets.hashnode.dev  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#microsoft-extensions-ai](https://hashnode.com/tag/microsoft-extensions-ai)
-   [#conversation-history](https://hashnode.com/tag/conversation-history)
-   [#context-window](https://hashnode.com/tag/context-window)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#ichatclient](https://hashnode.com/tag/ichatclient)

## Written by

[Coding Droplets](https://hashnode.com/@codingdroplets)

@codingdroplets

  
[View profile](https://hashnode.com/@codingdroplets)

Build, Scale & Master .NET with Clean, Practical Tutorials

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
