fix: catch unhandled timeout rejection in attention clear

clearAgentAttention returns a promise that was never caught,
causing uncaught rejection errors on daemon timeout.
This commit is contained in:
Mohamed Boudra
2026-04-15 09:16:09 +07:00
parent e012c8f52e
commit f59af4c810
@@ -59,7 +59,7 @@ export function useAgentAttentionClear({
return;
}
deferredFocusEntryClearRef.current = false;
client.clearAgentAttention(resolvedAgentId);
client.clearAgentAttention(resolvedAgentId).catch(() => {});
},
[agentId, attentionReason, client, isConnected, requiresAttention],
);