safety and hopefully fix crashing bug with GPU mode.

This commit is contained in:
KingKDot
2026-05-07 19:41:47 -05:00
parent 3b51d7f5b6
commit 1a0dc05222
10 changed files with 101 additions and 15 deletions
+3 -1
View File
@@ -710,7 +710,9 @@ func HandleFileZip(ctx context.Context, env *agentRuntime.Env, cmdID string, sou
wire.WriteMsg(ctx, env.Conn, finalProgress)
time.Sleep(100 * time.Millisecond)
go HandleFileDownload(ctx, env, cmdID, zipPath)
goSafe("file download", nil, func() {
HandleFileDownload(ctx, env, cmdID, zipPath)
})
result := wire.CommandResult{
Type: "command_result",