You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Real-time session sync across surfaces (Telegram <-> TUI) #51691
When the same agent runs on multiple surfaces (e.g. Telegram bot + TUI/webchat), conversations are siloed. There's no way to pick up a conversation started on Telegram and continue it on the TUI with full context — and vice versa.
Use Case
I run the same OpenClaw agent as:
Alfred on Telegram (mobile, async)
Jarvis on the TUI (desktop, active work sessions)
Right now these are completely separate sessions. I want real-time sync so:
A conversation started on Telegram is visible in the TUI
The TUI agent can respond to or continue a Telegram thread
Context, tool calls, and agent outputs are shared across both surfaces live
Proposed Solution
Shared session state across channels for the same agent identity
sessions_send already exists for cross-session messaging — extend this to support bi-directional live sync
Optional: unified inbox view in TUI showing messages from all surfaces
Real-time push (websocket/SSE) so no polling required
Why This Matters
Multi-surface agents are a core use case. Right now MEMORY.md is the only continuity mechanism — it works for context but not for live handoff. Real-time sync would make OpenClaw feel like a true always-on assistant rather than multiple disconnected bots.
Suggested UX
TUI shows a 'Surfaces' indicator — active channels for this agent
Incoming Telegram message appears in TUI sidebar with channel badge
Agent can reply from either surface; both surfaces see the response
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as superseded by open #41548. Current main has Gateway transcript notification plumbing, but the bundled TUI still does not subscribe to or handle live session.message transcript events, so the broad Telegram/TUI cross-surface sync ask is not implemented. Open PR #73402 covers the narrow TUI live transcript gap and explicitly treats this as broader related context; the remaining unified inbox/sync work is better tracked on #41548.
Best possible solution:
Consolidate the product request under #41548 as the canonical unified cross-channel sync tracker, and review #73402 for the narrower TUI live transcript subscription gap. Preserve the KeepMyClaw and sessions_send discussion as design input on the canonical thread.
Gateway subscription methods exist: Current main exposes sessions.subscribe, sessions.messages.subscribe, and matching unsubscribe methods for session transcript/event subscriptions. (src/gateway/server-methods/sessions.ts:625, 69fb7455c622)
Gateway broadcasts transcript updates: Transcript updates are projected and broadcast as session.message to subscribed connection ids, with session snapshots and message metadata. (src/gateway/server-session-events.ts:120, 69fb7455c622)
Gateway subscription tests: The gateway test suite verifies sessions.messages.subscribe only delivers session.message events for the requested session and stops after unsubscribe. (src/gateway/session-message-events.test.ts:516, 69fb7455c622)
TUI event dispatch gap: The bundled TUI currently dispatches only chat, chat.side_result, and agent gateway events to its handlers, so live transcript session.message events are not consumed there on current main. (src/tui/tui.ts:1055, 69fb7455c622)
No TUI transcript subscription call found: A targeted search for sessions.messages.subscribe, sessions.subscribe, or session.message in src/tui returned no matches, confirming the TUI side is still absent on current main. (69fb7455c622)
So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 69fb7455c622.
Activity
Ryce commentedon Mar 21, 2026
Artyomkun commentedon Mar 21, 2026
clawsweeper commentedon Apr 28, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as superseded by open #41548. Current main has Gateway transcript notification plumbing, but the bundled TUI still does not subscribe to or handle live
session.messagetranscript events, so the broad Telegram/TUI cross-surface sync ask is not implemented. Open PR #73402 covers the narrow TUI live transcript gap and explicitly treats this as broader related context; the remaining unified inbox/sync work is better tracked on #41548.Best possible solution:
Consolidate the product request under #41548 as the canonical unified cross-channel sync tracker, and review #73402 for the narrower TUI live transcript subscription gap. Preserve the KeepMyClaw and
sessions_senddiscussion as design input on the canonical thread.What I checked:
sessions.subscribe,sessions.messages.subscribe, and matching unsubscribe methods for session transcript/event subscriptions. (src/gateway/server-methods/sessions.ts:625, 69fb7455c622)session.messageto subscribed connection ids, with session snapshots and message metadata. (src/gateway/server-session-events.ts:120, 69fb7455c622)sessions.messages.subscribeonly deliverssession.messageevents for the requested session and stops after unsubscribe. (src/gateway/session-message-events.test.ts:516, 69fb7455c622)chat,chat.side_result, andagentgateway events to its handlers, so live transcriptsession.messageevents are not consumed there on current main. (src/tui/tui.ts:1055, 69fb7455c622)sessions.messages.subscribe,sessions.subscribe, orsession.messageinsrc/tuireturned no matches, confirming the TUI side is still absent on current main. (69fb7455c622)So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 69fb7455c622.