Skip to content

Feature: Opt-in cross-channel visibility in TUI (mirror iMessage/Telegram activity) #40678

Closed as not planned

Description

@dgarf29

Summary

Since v2026.3.7, the TUI allocates a unique tui-<uuid> session key on /new (PR #39238), which correctly isolates multiple TUI clients from each other. However, this also broke a previously working behavior: iMessage (and other channel) messages were visible in the TUI because they shared the same session key.

Requested Feature

Add an opt-in mode to allow the TUI to mirror/observe activity from other channels (iMessage, Telegram, etc.) routed to the same agent — without reverting the session isolation fix.

Proposed Behavior

  • A flag or config option (e.g. --mirror-channels or tui.mirrorChannels: true) that causes the TUI to display inbound messages and agent responses from all channels, read-only or interactively.
  • Alternatively: a dedicated openclaw tui --observe mode that attaches to the main agent session as a read-only observer across all input channels.
  • openclaw logs --follow is the current workaround but lacks the structured TUI formatting.

Use Case

Power users running OpenClaw on a local Mac who want a single terminal window showing all agent activity across iMessage, Telegram, and TUI simultaneously — useful for monitoring, debugging, and maintaining situational awareness without switching interfaces.

Prior Behavior

Before v2026.3.7, the TUI and iMessage shared agent:main:main, so iMessage messages appeared inline in the terminal. This was the expected UX for single-user local setups.

Workaround

openclaw logs --follow in a separate terminal tab shows raw activity but lacks the full TUI experience.

Activity

  1. dgarf29 commented on Mar 9, 2026

    @dgarf29
    Author

    Real-world workflow update that makes this more pressing: I run OpenClaw on a Mac mini that I access three ways depending on context - JumpDesk remote desktop from my iPhone, JumpDesk from another Mac, and directly at the physical machine. iMessage is my primary channel (voice notes processed through Gemini), but I frequently need to check on agent activity from whatever screen I happen to be on.

    Right now that means SSHing in and tailing logs, which loses all the TUI formatting. An --observe mode or tui.mirrorChannels config would let me pop open a TUI from any of those access points and immediately see what the agent has been doing across iMessage, Telegram, cron jobs, etc. without hunting through raw logs.

    The multi-device angle also highlights why read-only observe mode matters separately from interactive mirror - sometimes I just need a quick glance at recent activity from my phone, not a full interactive session.

  2. dgarf29 commented on Mar 16, 2026

    @dgarf29
    Author

    Follow-up with another concrete use case: I now run multiple agents (main + specialized sub-agents for SEO, client relations, etc.) that spawn isolated sessions and cron jobs throughout the day. These fire across iMessage and Telegram independently. The gap is most obvious when a cron job completes or a sub-agent finishes work - right now I have no unified view of what just happened without grepping logs.

    A --observe mode would be especially useful here because the activity is asynchronous and bursty. I might get a cron-triggered report on Telegram, a client inquiry routed through iMessage, and a sub-agent completion notification all within minutes. Having one pane of glass for that would eliminate a lot of context-switching overhead.

    Even a minimal implementation (append-only feed of recent cross-channel messages in the TUI sidebar or a dedicated panel) would cover 80% of the need.

  3. openclaw-barnacle commented on Apr 25, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  4. added
    stale
    on Apr 25, 2026
  5. clawsweeper commented on Apr 26, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 30, 2026, 10:13 PM ET / July 31, 2026, 02:13 UTC.

    Summary
    Keep open. The report combines a narrower same-session live-refresh problem with a new cross-channel observer/mirroring capability; the latter needs an explicit product and privacy-boundary decision before implementation. The closed live-update proposal referenced in the discussion was limited to an already selected session and does not establish a safe policy for exposing activity from other channels.

    Reproducibility: unclear. The discussion contains a detailed historical same-session report, but this review could not inspect or run current-main code to establish whether that narrow live-refresh path still fails; the broader observer mode is a new capability rather than a reproducible bug.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Maintainer decision needed

    Question Recommendation
    Should OpenClaw support a TUI read-only observer across other channel and job sessions, and if so which agent, channel, identity, and authorization boundaries may that observer cross? Split refresh from observation: Handle any remaining live refresh for an explicitly selected session as a bounded bug, then design cross-session observation separately with a read-only security model.

    Why: The request adds a new visibility boundary rather than restoring the former shared-session behavior; source-level refresh fixes cannot determine which private activity a terminal client may safely see or whether it may send cross-channel output.

    Next step
    A maintainer must choose the privacy and product boundary before a safe implementation can be scoped; this is not an autonomous fix-PR candidate.

    Security
    Needs attention: A cross-channel observer or mirror is security-sensitive because it can broaden which channel and agent content a terminal client can read or deliver.

    Review details

    Best possible solution:

    Keep per-client TUI session isolation, separately fix selected-session live refresh where it still fails, and design any cross-session observer as an explicit read-only capability with clear agent/channel scope and authorization before considering message mirroring.

    Do we have a high-confidence way to reproduce the issue?

    Unclear. The discussion contains a detailed historical same-session report, but this review could not inspect or run current-main code to establish whether that narrow live-refresh path still fails; the broader observer mode is a new capability rather than a reproducible bug.

    Is this the best way to solve the issue?

    No: restoring shared sessions would undo isolation, while a broad mirror conflates transcript observation with delivery. A selected-session refresh fix and a separately authorized read-only observer are the narrower maintainable paths.

    AGENTS.md: unclear because the file could not be read completely.

    Remaining risk / open question:

    • A broad observer or mirror can reveal private channel, agent, cron, or sub-agent content to a TUI client that was not previously authorized to read it.
    • Treating read-only transcript observation and cross-channel message delivery as one feature risks accidental echoes, duplicate messages, or confusing source-of-truth behavior.
    • The issue's requested flag/config/CLI design would add a compatibility-sensitive visibility policy, so its default scope and upgrade behavior need maintainer approval.

    Codex review notes: model internal, reasoning high; reviewed against 0929a00c3741.

    Label changes

    Label changes:

    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
    • add clawsweeper:needs-info: Current issue advisory state selects this label.
    • remove clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.
    • remove clawsweeper:source-repro: Current issue advisory state no longer selects this label.
    • remove issue-rating: 🦞 diamond lobster: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: This is a meaningful monitoring and session-visibility improvement, but there is no verified emergency failure on current main.
    • impact:session-state: The request concerns what session transcripts and live session activity the TUI can display.
    • impact:security: Observing activity from other channels or agents introduces a concrete privacy and authorization boundary.
    • impact:message-loss: The requested mirroring semantics affect whether cross-surface messages and responses are visibly delivered or omitted.
    Evidence reviewed

    Security concerns:

    • [medium] Define observer authorization before exposing other sessions
      An opt-in TUI view must not implicitly grant visibility into messages, cron results, or sub-agent sessions from other channels; the scope and authorization source need an explicit product contract.
      Confidence: 0.88

    What I checked:

    • Concrete remaining request: The issue requests a new opt-in TUI observer or mirror mode across iMessage, Telegram, cron, and other sessions; its requested behavior is broader than refreshing one already-selected transcript.
    • Narrow related work is insufficient: The provided related pull request fix(tui): handle live session message updates #96252 describes handling live updates for the TUI's selected session, explicitly without adding a Gateway subscription/configuration surface; it was closed unmerged and does not provide cross-channel observation or delivery policy. (b0253c29756b)
    • Same-session report is distinct: The May 4 comment documents that an explicitly opened Telegram session could have correct persisted context but stale live TUI rendering. That is a bounded refresh path; the issue's main request additionally asks to view separate channel sessions and jobs in one TUI.
    • Repository-policy status: The execution sandbox rejected read-only repository inspection before files could be read, so this review does not claim current-main source, release, maturity, or Git-history proof.

    Likely related people:

    • widingmarcus-cyber: Authored the related TUI session-isolation change cited by the report, so is a useful routing candidate for the boundary between isolated TUI sessions and any explicit observer mode; current-main ownership could not be verified in this read-only environment. (role: related session-isolation contributor; confidence: low; commits: c8210cba2ad8)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  6. removed
    stale
    on Apr 27, 2026
  7. sachser66 commented on May 4, 2026

    @sachser66

    Additional repro from a 2026.5.3 install showing this is not only cross-session observation, but also affects an explicitly opened channel session.

    Environment:

    • OpenClaw 2026.5.3 (06d46f7)
    • Linux 6.12.85+deb13-amd64, Node 22.22.2
    • Gateway systemd service, Control UI/WebChat v2026.5.3
    • Telegram channel enabled, 3 Telegram bot accounts
    • session.dmScope = "per-channel-peer"

    Repro:

    1. Open TUI and select agent agentx-coder.
    2. Open the exact Telegram DM session in TUI:
      • TUI status line: agent agentx-coder (agentx-coder) | session telegram:direct:1181024119 (openclaw-tui) | openai-codex/gpt-5.5
      • Telegram /status reports: Session: agent:agentx-coder:telegram:direct:1181024119
    3. Send messages from Telegram while the TUI is open on that exact session.
    4. Send messages from TUI while Telegram is the visible chat.

    Observed:

    • Context is preserved correctly across both surfaces.
    • Reloading/reopening the TUI session shows the expected updated transcript.
    • But live message sync is missing in both directions:
      • Telegram messages do not appear live in the already-open TUI session.
      • TUI/WebDashboard messages are not mirrored as visible Telegram chat messages.
    • This makes the same session feel split across surfaces even though the underlying context/session key is shared.

    Diagnostics:

    • Session key: agent:agentx-coder:telegram:direct:1181024119
    • Session id: 55b29b17-0d03-45a9-b613-de0b50600970
    • Transcript file: ~/.openclaw/agents/agentx-coder/sessions/55b29b17-0d03-45a9-b613-de0b50600970.jsonl
    • Before reload, the session index/delivery state showed newer activity than the visible TUI transcript. After TUI reload, the transcript rendered correctly.
    • Gateway logs showed successful Telegram delivery for the same chat id, e.g. telegram sendMessage ok chat=1181024119 message=2429.

    Expected:
    When TUI/WebDashboard is explicitly attached to the same session key as Telegram, live session events should update the open TUI/WebDashboard view. Ideally there should also be a clear opt-in mode/setting for whether messages from one surface should be mirrored visibly to the other channel, because shared context without visible sync is confusing for single-user local setups.

    This may be related to the requested --observe / tui.mirrorChannels behavior, but the narrow case here is stronger: the TUI is not observing “other channel sessions”; it is opened on the exact same Telegram session key.

  8. added
    P2
    clawsweeper:no-new-fix-pr
    clawsweeper:fix-shape-clear
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    impact:message-loss
    impact:session-state
    and removed
    clawsweeper:fix-shape-clear
    on May 16, 2026
  9. 80 remaining items

  10. added
    clawsweeper:needs-live-repro
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    and removed
    maturity:stable
    clawsweeper:needs-live-repro
    issue-rating: 🐚 platinum hermit
    on Jul 8, 2026
  11. added
    issue-rating: 🦪 silver shellfish
    clawsweeper:needs-info
    and removed
    clawsweeper:fix-shape-clear
    clawsweeper:source-repro
    issue-rating: 🦞 diamond lobster
    on Jul 31, 2026
  12. openclaw-barnacle commented on Aug 14, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  13. added
    stale
    on Aug 14, 2026
  14. openclaw-barnacle commented on Aug 22, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

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

    P2clawsweeper:needs-infoclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-primpact:message-lossimpact:securityimpact:session-stateissue-rating: 🦪 silver shellfishstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions