mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:20:33 +08:00
RAG tool results can return KB document content exceeding 1MB per event, causing the frontend TraceSurface to run out of memory when loading large sessions. Truncate tool_result and observation payloads at 1MB in the get_session endpoint, marking truncated events with _truncated: true. The LLM context builder reads from a separate content-only store and is unaffected by this truncation. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>