fix: harden log export transactions

This commit is contained in:
Kurt Himebauch committed 2026-11-05 14:42:22 -05:00
1 parent 718712eb01
commit 4765644451
3 files changed
+176 -29

No files matched your search

@@ -215,7 +215,8 @@ class AgentBridgeProvider : ContentProvider() {
throw error
}
?: return error("NO_SESSION_LOGS", "The session artifact directory is empty")
return JSONObject().put("ok", true).put("command", "logs").put("sessionId", dir.name).put("zip", zip.absolutePath)
return JSONObject().put("ok", true).put("command", "logs").put("sessionId", dir.name)
.put("zip", zip.absolutePath).put("cleanupDir", output.absolutePath)
}
private fun state(context: Context): JSONObject {