fix bash tool getting stuck on interactive commands

This commit is contained in:
Dax Raad
2025-08-03 13:51:59 -04:00
parent 5e8634afaf
commit 21c52fd5cb
2 changed files with 15 additions and 13 deletions

View File

@@ -737,7 +737,7 @@ export namespace Session {
)
const result = await item.execute(args, {
sessionID: input.sessionID,
abort: abort.signal,
abort: options.abortSignal!,
messageID: assistantMsg.id,
callID: options.toolCallId,
metadata: async (val) => {
@@ -779,7 +779,7 @@ export namespace Session {
}
for (const [key, item] of Object.entries(await MCP.tools())) {
if (mode.tools[key] === false) continue
if (enabledTools[key] === false) continue
const execute = item.execute
if (!execute) continue
item.execute = async (args, opts) => {