AnythingLLM agent tools previously passed an object instead of a string to the context limit caller, causing a silent fallback to an 8K context window. This update adds type validation and error logging to ensure user-defined context limits are strictly respected when processing large documents.
Fixes a type mismatch bug in agent tool context limit handling that caused silent fallback to an 8K context window, enforcing strict type validation and adding verbose error logging for provider instances.
Users running AnythingLLM agents on large documents will no longer experience silent text truncation or unexpected errors caused by the system ignoring their custom context window settings. By enforcing strict type validation on context limit parameters, the system now reliably respects user-defined context sizes and surfaces clear errors if misconfigured, preventing silent data loss during web scraping, document summarization, and filesystem operations.
{
"event_id": "event_a1cd0155a0ecc553",
"topic_id": "ai_coding",
"event_type": "Bug Fix",
"event_time": "2026-05-27T21:47:02Z",
"title": "Fix silent context window fallback in AnythingLLM agent tools",
"summary": "AnythingLLM agent tools previously passed an object instead of a string to the context limit caller, causing a silent fallback to an 8K context window. This update adds type validation and error logging to ensure user-defined context limits are strictly respected when processing large documents.",
"contribution": "Fixes a type mismatch bug in agent tool context limit handling that caused silent fallback to an 8K context window, enforcing strict type validation and adding verbose error logging for provider instances.",
"impact": "Users running AnythingLLM agents on large documents will no longer experience silent text truncation or unexpected errors caused by the system ignoring their custom context window settings. By enforcing strict type validation on context limit parameters, the system now reliably respects user-defined context sizes and surfaces clear errors if misconfigured, preventing silent data loss during web scraping, document summarization, and filesystem operations.",
"maturity": "Unknown",
"confidence": 0,
"importance_score": 0.75,
"risk_flags": [
"Silent Context Truncation",
"Type Safety Gaps"
],
"evidence_count": 1
}Sign in to submit review notes for this event judgment and its evidence trail.