summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-10-05 23:55:01 -0500
committerGitHub <[email protected]>2025-10-05 23:55:01 -0500
commitbdf77701cf0cae6834508f061c1053cfcee65546 (patch)
tree476060326582dce48d8ea0fe2b9112a756240645
parent889c276558f0cf012c3930501a013b2a38c4aecb (diff)
downloadopencode-bdf77701cf0cae6834508f061c1053cfcee65546.tar.gz
opencode-bdf77701cf0cae6834508f061c1053cfcee65546.zip
fix: add timeout message if command times out (#2986)
-rw-r--r--packages/opencode/src/tool/bash.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/opencode/src/tool/bash.ts b/packages/opencode/src/tool/bash.ts
index ddf8227e9..0e1d37ecf 100644
--- a/packages/opencode/src/tool/bash.ts
+++ b/packages/opencode/src/tool/bash.ts
@@ -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: {