mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 12:37:04 -04:00
[GH-ISSUE #188] terminal tool failed #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ilkeramiz on GitHub (Mar 10, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/188
When using tools like nmap, Gobuster, and nikto during any vulnerability scan, the process constantly shows a "level=error msg="terminal tool failed" error="timeout value is too low, use greater value if you need so: context deadline exceeded: temporary output: " result=tool=terminal" error, causing the flow to pause even when it's on automatic.
@asdek commented on GitHub (Mar 10, 2026):
hey @ilkeramiz
it's not an error in the product, because LLM can choose this option in the call and this error message notify LLM to increase it for next call
@mason5052 commented on GitHub (Mar 10, 2026):
The terminal timeout symptoms here may be related to the detached context cancellation bug described in #176, where long-running commands inherit the parent context and get canceled prematurely. PR #179 addresses that root cause by isolating the detached command context -- it may resolve or reduce these timeout errors for tools like nmap and gobuster, though there could be other contributing factors as well.
@asdek commented on GitHub (Mar 19, 2026):
hey @ilkeramiz @mason5052
thanks for the report!
there are actually two scenarios with terminal tool execution:
1. synchronous execution (detach=false)
2. asynchronous execution (detach=true)
bottom line: occasional timeout errors like the ones in your screenshot are normal and part of the agent's learning process. the agent sees the same error message, adapts its strategy. this feedback loop helps the agent optimize its approach to long-running scans.
if you're seeing these errors frequently on the same commands after the agent has had a chance to adjust, that might indicate a different issue. but sporadic timeouts during initial scan attempts are expected behavior.