feat(chat/activity): Self-improvement event badges for memory & skill updates (#744)

* feat(chat/activity): Self-improvement event badges for memory & skill updates (#737)

* feat(chat): Handle background review.summary WS events for self-improvement notices

---------

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-07-29 21:43:08 +03:00
1 parent 2cf41ead06
commit 1b596746af
12 files changed
+381 -1

No files matched your search

@@ -149,6 +149,11 @@ object EventParser {
WsEvent.BackgroundComplete(payload)
}
"review.summary" -> {
val text = (payload?.get("text") as? String)?.trim() ?: ""
WsEvent.ReviewSummary(text, sessionId)
}
"session.updated" -> {
WsEvent.SessionUpdated(payload)
}
@@ -123,6 +123,16 @@ sealed class WsEvent {
val sessionId: String? = null,
) : WsEvent()
/**
* Self-improvement background review summary event.
* Emitted when background review patches a skill or saves a memory.
* Payload: `{ text: "💾 Self-improvement review: ..." }`
*/
data class ReviewSummary(
val text: String,
val sessionId: String? = null,
) : WsEvent()
// ── Status ───────────────────────────────────────────────────────────
data class StatusUpdate(