File tree Expand file tree Collapse file tree
src/agents/embedded-agent-runner/run Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,11 +138,17 @@ function shouldIncludeToolErrorDetails(params: {
138138 if ( isVerboseToolDetailEnabled ( params . verboseLevel ) ) {
139139 return true ;
140140 }
141+ if ( ! isExecLikeToolName ( params . lastToolError . toolName ) ) {
142+ return false ;
143+ }
144+ // Heartbeat runs usually have no assistant reply to carry the command
145+ // output, so keep exec details in the warning instead of a generic label.
146+ if ( params . isHeartbeatTrigger === true ) {
147+ return true ;
148+ }
141149 return (
142- isExecLikeToolName ( params . lastToolError . toolName ) &&
143- ( params . isHeartbeatTrigger === true ||
144- ( params . lastToolError . timedOut === true &&
145- ( params . isCronTrigger === true || isCronSessionKey ( params . sessionKey ) ) ) )
150+ params . lastToolError . timedOut === true &&
151+ ( params . isCronTrigger === true || isCronSessionKey ( params . sessionKey ) )
146152 ) ;
147153}
148154
You can’t perform that action at this time.
0 commit comments