summaryrefslogtreecommitdiff
path: root/packages/core/src/tools/shell.ts
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-05-30 23:25:44 -0700
committerGitHub <[email protected]>2025-05-30 23:25:44 -0700
commit0dbd12e295a0a1df92915b0b3016397a1c49a296 (patch)
tree8f99817d5f3bdb7f1aa7e608026949ace7ae9e62 /packages/core/src/tools/shell.ts
parent190e6be800fa9095d0d0e5274e3ec16bd2f1f978 (diff)
expose shell process group id to model, along with instructions for how to terminate or signal the group (#645)
Diffstat (limited to 'packages/core/src/tools/shell.ts')
-rw-r--r--packages/core/src/tools/shell.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts
index 4efc3500..d0cad218 100644
--- a/packages/core/src/tools/shell.ts
+++ b/packages/core/src/tools/shell.ts
@@ -282,6 +282,7 @@ export class ShellTool extends BaseTool<ShellToolParams, ToolResult> {
`Exit Code: ${code ?? '(none)'}`,
`Signal: ${processSignal ?? '(none)'}`,
`Background PIDs: ${backgroundPIDs.length ? backgroundPIDs.join(', ') : '(none)'}`,
+ `Process Group PGID: ${shell.pid ?? '(none)'}`,
].join('\n');
}