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:
@@ -59,7 +59,7 @@ export function useAgentAttentionClear({
|
||||
return;
|
||||
}
|
||||
deferredFocusEntryClearRef.current = false;
|
||||
client.clearAgentAttention(resolvedAgentId);
|
||||
client.clearAgentAttention(resolvedAgentId).catch(() => {});
|
||||
},
|
||||
[agentId, attentionReason, client, isConnected, requiresAttention],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user