Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions desktop/src/features/channels/ui/ChannelScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,15 @@ export function ChannelScreen({
...new Set([
...messageAuthorPubkeys,
...messageMentionPubkeys,
...(channelMembers ?? []).map((member) => member.pubkey),
...activeDmParticipantPubkeys,
...knownAgentPubkeys,
...typingEntries.map((entry) => entry.pubkey),
]),
],
[
activeDmParticipantPubkeys,
channelMembers,
knownAgentPubkeys,
messageAuthorPubkeys,
messageMentionPubkeys,
Expand Down Expand Up @@ -603,9 +605,7 @@ export function ChannelScreen({
} = useChannelAgentSessions({
activeChannel,
activeChannelId,
// Loaded only once none of the three agent queries are in their initial
// fetch, so a channel with genuinely zero agents still auto-closes a stale
// agentSession param (a disabled query reports isLoading=false — fine).
// Wait until agent queries leave initial load before resolving stale agentSession params.
agentsLoaded:
!channelMembersQuery.isLoading &&
!managedAgentsQuery.isLoading &&
Expand Down
Loading