Polish desktop typing and agents UI (#92)

This commit is contained in:
Wes
2026-03-17 12:09:02 -07:00
committed by GitHub
parent ee609c24a0
commit 6ecd04819e
13 changed files with 525 additions and 89 deletions
+15
View File
@@ -9,6 +9,7 @@ import type { PresenceStatus, RelayEvent } from "@/shared/api/types";
import {
CHANNEL_EVENT_KINDS,
KIND_STREAM_MESSAGE,
KIND_TYPING_INDICATOR,
} from "@/shared/constants/kinds";
import {
getTextPayload,
@@ -118,6 +119,20 @@ class RelayClient {
return this.subscribe(this.buildChannelFilter(channelId, 50), onEvent);
}
async subscribeToTypingIndicators(
channelId: string,
onEvent: (event: RelayEvent) => void,
) {
return this.subscribe(
{
kinds: [KIND_TYPING_INDICATOR],
"#h": [channelId],
limit: 10,
},
onEvent,
);
}
async subscribeToAllStreamMessages(onEvent: (event: RelayEvent) => void) {
return this.subscribe(this.buildGlobalStreamFilter(50), onEvent);
}