feat: add timeout for bash tool (#2451)

This commit is contained in:
yetone
2025-07-15 20:46:15 +08:00
committed by GitHub
parent d3dde0c5ff
commit 154e5f578f
2 changed files with 41 additions and 4 deletions

View File

@@ -251,7 +251,7 @@ function M.func(input, opts)
Utils.shell_run_async(input.command, "bash -c", function(output, exit_code)
local result, err = handle_result(output, exit_code)
opts.on_complete(result, err)
end, abs_path)
end, abs_path, 1000 * 60 * 2)
end,
{ focus = true },
opts.session_ctx,