fix: working on rebuild from filesystem and analysis warnings

This commit is contained in:
2026-04-25 11:18:30 +02:00
parent 59be6c213e
commit 5ecd90ae65
18 changed files with 307 additions and 55 deletions

View File

@@ -991,12 +991,14 @@ defmodule BDS.AI do
end
defp await_chat_task(task) do
ref = task.ref
receive do
{ref, result} when ref == task.ref ->
{^ref, result} ->
Process.demonitor(task.ref, [:flush])
result
{:DOWN, ref, :process, _pid, reason} when ref == task.ref ->
{:DOWN, ^ref, :process, _pid, reason} ->
case reason do
:normal ->
receive do