expose shell process group id to model, along with instructions for how to terminate or signal the group (#645)

This commit is contained in:
Olcan
2025-05-30 23:25:44 -07:00
committed by GitHub
parent 190e6be800
commit 0dbd12e295
2 changed files with 4 additions and 1 deletions

View File

@@ -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');
}