Symptom
A user uploads a document and asks about its contents. The agent either hangs until the 100-step recursion limit and fails, or dead-ends with 'unable to determine'. Detail retrieval from uploads has never worked for any user. Summary-level questions ('what is this document about?') still answer, because the inline summary reaches the agent by a different path — which is exactly why this survived.
Root cause (proven live, not inferred)
app/agents/tools/file_tools.pyscoped the Mongo lookup byconfigurable["thread_id"]- the tool is registered ONLY for the executor, which runs on a derived thread
executor_<conversation_id>(subagent_runner.py:682, unconditional) - so the scope id was wrong 100% of the time:
find_ids_for_conversation('ab08c6...')→ ['77f0acc1-...'] butfind_ids_for_conversation('executor_ab08c6...')→ [] - live tool output, three calls in a row:
Similar documents found: []then an empty content string build_agent_configeven documents the trap ('NOT recoverable from thread_id')
Fix
Committed on feat/evals (4ac98a99e): scope by configurable["conversation_id"]. Regression test watched red-first with the exact production symptom (tests/unit/agents/test_file_tools_scope.py).
Why no test caught it
No test ever built a configurable where thread_id != conversation_id — every fixture set them equal, the one shape that hides this. The system-level test that would have caught it was a GAIA attachment case, and the eval harness skipped all 34 of those as 'attachment not supported'. The eval blind spot and the bug protected each other.
Found by the eval harness (PR #907 work).
🤖 Generated with Claude Code
Activity
0No activity yet.