Skip to content

Feature: Real-time session sync across surfaces (Telegram <-> TUI) #51691

Closed as not planned

Description

@Shrey1705

Problem

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:

  1. A conversation started on Telegram is visible in the TUI
  2. The TUI agent can respond to or continue a Telegram thread
  3. 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

Filed by Shrey via Alfred (Telegram) — 2026-03-21

Activity

  1. Ryce commented on Mar 21, 2026

    @Ryce
  2. Artyomkun commented on Mar 21, 2026

    @Artyomkun
  3. clawsweeper commented on Apr 28, 2026

    @clawsweeper
    Contributor

    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.

    What I checked:

    • Canonical tracker: Feature: Unified cross-channel message sync (TUI, Telegram, iMessage) #41548 is open and asks for the same unified cross-channel message sync across TUI, Telegram, and iMessage, including the Telegram -> TUI gap described here.
    • 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.

  4. locked as resolved and limited conversation to collaborators on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions