mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 06:02:00 +08:00
Gateway (additive, no protocol version bump): SessionEntry gains lastReadAt/markedUnreadAt/lastActivityAt; session rows expose a derived unread flag (explicit mark, or last read before latest activity; never-read sessions stay read so upgrades do not light up). lastActivityAt is stamped in the canonical post-run store update - user, channel, and cron runs count as activity; heartbeat, internal-event, and preserved-state runs do not. sessions.patch gains unread; sessions.create gains fork (transcript fork from parentSessionKey under the parent lifecycle lock, refusing active, concurrently-changed, and oversized parents, cross-agent aware). Web sidebar: Pinned/custom-group/Ungrouped sections, unread dots, kebab and right-click context menu (pin, mark unread/read, rename, fork, move to group, archive, delete guarded for agent main sessions and active runs), mark-read on view with loop-safe re-acknowledgement and failure retry; sessions page gets unread + fork actions and shared custom-group helpers. iOS Command Center: grouped sections, unread/pin indicators, Show Archived gated on per-entry state, full context menu with rename/new-group alerts and delete confirmation, current-session preview guarantee, read-episode re-acknowledgement; new patch/delete/fork transport calls; Swift protocol models regenerated. Android SessionsScreen: grouped headers, unread/pin indicators, Archived filter gated on per-entry state, long-press menu with the full control set, agent-scoped forks, explicit label/category clears from session events, main-session fallback when archiving/deleting the open chat, read-episode re-acknowledgement with failure retry. Closes #100739