mirror of
https://github.com/aljazceru/opencode.git
synced 2026-02-04 15:44:34 +01:00
fix: add timeout message if command times out (#2986)
This commit is contained in:
@@ -201,6 +201,10 @@ export const BashTool = Tool.define("bash", {
|
||||
output += "\n\n(Output was truncated due to length limit)"
|
||||
}
|
||||
|
||||
if (process.signalCode === "SIGTERM" && params.timeout) {
|
||||
output += `\n\n(Command timed out after ${timeout} ms)`
|
||||
}
|
||||
|
||||
return {
|
||||
title: params.command,
|
||||
metadata: {
|
||||
|
||||
Reference in New Issue
Block a user