Bug Description
When using the list tool with recursive: true on a large directory (e.g., /opt), it recursively lists all files and subdirectories without any limit, causing the session context to explode/become overwhelmed with massive amounts of data.
Expected behavior: The tool should have safety limits (max depth, max entries) to prevent context overflow.
Steps to Reproduce
- Start a conversation with any bot
- Trigger a tool call like:
{"type": "tool-call", "input": {"path": "/opt", "recursive": true}, "toolName": "list", "toolCallId": "tool_xxx"}
- Observe that the tool attempts to list ALL files recursively
- The session context becomes flooded with data, making further conversation impossible
Error Messages / Logs
N/A - The issue is that the tool returns too much data rather than throwing an error
Version
0.6.0
Model Used
kimi-coding/kimi-for-coding
Channel
Telegram
Additional Context
No response
Contributing
Bug Description
When using the
listtool withrecursive: trueon a large directory (e.g.,/opt), it recursively lists all files and subdirectories without any limit, causing the session context to explode/become overwhelmed with massive amounts of data.Expected behavior: The tool should have safety limits (max depth, max entries) to prevent context overflow.
Steps to Reproduce
{"type": "tool-call", "input": {"path": "/opt", "recursive": true}, "toolName": "list", "toolCallId": "tool_xxx"}
Error Messages / Logs
Version
0.6.0
Model Used
kimi-coding/kimi-for-coding
Channel
Telegram
Additional Context
No response
Contributing