by inem · 9mo ago · 0 comments
The AI handles long conversations fine. It's purely a frontend problem — React re-rendering an ever-growing tree.
The fix is simple: intercept the fetch response for /backend-api/conversation/{id}, truncate the mapping to the last N messages for rendering, keep full context for the model. 30KB, no dependencies, no external requests.
I built this because my most useful conversations were becoming unusable. Chrome Web Store submission is pending review, so distributing via Gumroad for now.
Happy to answer questions about the implementation.
No comments yet.