mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: add timeout message if command times out (#2986)
This commit is contained in:
parent
889c276558
commit
bdf77701cf
1 changed files with 4 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue