fix(ctl): a full disk no longer crashes the app when an agent call cannot write its answer (#2325)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-09 12:33:26 -05:00
1 parent bf434b2652
commit b837611efe
1 file changed
+2
@@ -31,6 +31,8 @@ class AgentCallReceiver : BroadcastReceiver() {
val dir = File(context.getExternalFilesDir(null), "agent-calls").apply { mkdirs() }
File(dir, "$id.json.part").writeText(json)
File(dir, "$id.json.part").renameTo(File(dir, "$id.json"))
} catch (e: Exception) {
android.util.Log.w("AgentCallReceiver", "could not write the answer to $method: ${e.message}")
} finally {
pending.finish()
}