fix: add timeout message if command times out (#2986)
Some checks are pending
deploy / deploy (push) Waiting to run
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run
test / test (push) Waiting to run

This commit is contained in:
Aiden Cline 2025-10-05 23:55:01 -05:00 committed by GitHub
parent 889c276558
commit bdf77701cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: {