mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(web): keep global SSE alive for session list status updates (#694)
When a session is open, the web app now keeps an always-on all:true SSE connection for sidebar session-updated events while using a second session-scoped stream for message delivery. Also bump session activity on hub sendMessage so web-originated sends refresh list timestamps. Fixes tiann/hapi#693 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -364,6 +364,7 @@ export class SyncEngine {
|
||||
): Promise<void> {
|
||||
await this.messageService.sendMessage(sessionId, payload)
|
||||
this.sessionCache.markMessageQueued(sessionId)
|
||||
this.sessionCache.recordSessionActivity(sessionId, Date.now())
|
||||
}
|
||||
|
||||
async cancelQueuedMessage(
|
||||
|
||||
Reference in New Issue
Block a user