GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 1052326311/unified-session: 🔗 One agent, all devices, zero context loss. Unify all chat channels into one shared session for seamless cross-device AI continuity. 多端共享,无缝衔接。

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SKILL.md
SKILL.md
 
 

Repository files navigation

🔗 Unified Session

One agent. All your devices. Zero context loss.

Start a conversation on your laptop. Continue from your phone. Same context, same memory, seamless.

License: MIT OpenClaw Skill ClawHub GitHub stars

Telegram + Discord + DingTalk + Feishu + WhatsApp + Signal + Slack + Webchat → One Brain

Quick Start · The Problem · How It Works · 中文说明


😤 The Problem

[Laptop - Webchat]
You:  Research the top 3 competitors for our product launch
Agent: Sure! I've found that...
      (detailed 20-minute research session)

--- You leave your desk, grab your phone ---

[Phone - Telegram]
You:  What did you find about our competitors?
Agent: I don't have any context about competitors.
       Could you provide more details?

You:  ...seriously? We JUST talked about this.

You connected Telegram, Discord, DingTalk, Feishu, and webchat to your OpenClaw agent. But each channel starts a separate conversation. The agent on your phone has no idea what you discussed on your laptop.

This is the #1 pain point for single-user OpenClaw setups.

✅ The Fix

  Before                              After
┌──────────┐  ┌──────────┐     ┌──────────────────────┐
│ Telegram │  │ Webchat  │     │    agent:main:main    │
│ Session A│  │ Session B│     │                       │
│ "Research│  │ "What did│     │  Telegram ──┐         │
│  competi-│  │  you find│     │  Webchat ───┤ shared  │
│  tors..."│  │  🤷?"    │     │  DingTalk ──┤ context │
└──────────┘  └──────────┘     │  Feishu ────┘         │
     ❌ Context lost            │                       │
                                └──────────────────────┘
                                     ✅ Full continuity

One config value. One gateway restart. All channels share the same brain.

🚀 Quick Start

Install

clawhub install unified-session

Then tell your agent:

"Help me set up unified session so all my channels share the same conversation"

The skill handles everything: diagnose → configure → restart → verify.

Or do it manually (30 seconds)

Add to ~/.openclaw/openclaw.json:

{
  "session": {
    "dmScope": "main"
  }
}

Then:

openclaw gateway restart

Done. All channels now share one session.

🏗️ How It Works

OpenClaw uses dmScope to control how DMs are grouped:

Setting Behavior Best for
"main" All DMs → one shared session Personal AI (you)
"per-channel-peer" Each channel → separate session Multi-user bots

The default is isolation (great for bots with many users, terrible for personal assistants). This skill switches it to unified — and walks you through the entire process.

Reply Routing

Replies automatically go back to wherever the message came from:

Message from Telegram  → reply goes to Telegram  ✅
Message from webchat   → reply goes to webchat   ✅
Message from DingTalk  → reply goes to DingTalk   ✅

No manual switching. The agent doesn't "choose" — OpenClaw handles it deterministically.

📊 Supported Channels

Channel Status Tested
Webchat ✅ ✅ Real-world verified
Telegram ✅ ✅ Real-world verified
Discord ✅ ✅ Real-world verified
DingTalk (钉钉) ✅ ✅ Real-world verified
Feishu / Lark (飞书) ✅ ✅ Real-world verified
WhatsApp ✅ Supported
Signal ✅ Supported
Slack ✅ Supported
iMessage ✅ Supported
Matrix ✅ Supported

🔍 What the Skill Does

When triggered, the skill:

  1. Diagnoses your current config (reads openclaw.json, checks each channel's dmScope)
  2. Shows what needs to change (with ✅/❌ per channel)
  3. Applies the fix (sets dmScope: "main" globally + per channel)
  4. Restarts the gateway
  5. Verifies with test messages from each channel

Includes built-in troubleshooting for common issues:

  • DingTalk Stream connections silently dropping after network changes
  • Feishu WebSocket reconnection issues
  • Multiple stale sessions after config migration

👤 Who Is This For

✅ You're the only person talking to your agent (single-user) ✅ You use 2+ channels (webchat + any phone app) ✅ You want one continuous conversation across all devices

⚠️ Not for multi-user bots — if multiple people DM your agent, keep per-channel-peer to prevent context leakage between users.

🔒 Security

  • ✅ No external services — no API keys, no network requests
  • ✅ Only modifies ~/.openclaw/openclaw.json
  • ✅ Fully reversible: change one setting back to restore isolation
  • ✅ Run openclaw security audit after setup to verify

💡 Inspired By

  • Anthropic Dispatch — phone → laptop continuity for Claude
  • Apple Handoff — seamless task switching across devices
  • The universal human need to not repeat yourself to your AI

🔧 Troubleshooting

Problem Fix
Bot forgets when switching channels Run the skill's diagnostic. Likely dmScope not "main"
Messages from a channel don't arrive openclaw gateway restart — connections silently drop
Multiple sessions still showing Old sessions expire naturally after config change
Cron output goes to wrong channel Set delivery.channel explicitly in cron config

↩️ Reverting

Want isolated sessions back? One change:

{ "session": { "dmScope": "per-channel-peer" } }

Then openclaw gateway restart. Each channel creates its own session again.


🇨🇳 中文说明

多端共享,无缝衔接

在电脑上开始对话,拿起手机继续聊——同一个上下文,同一份记忆,无缝切换。

痛点

你给 OpenClaw 接了钉钉、飞书、Telegram、Discord、网页版……但每个渠道都是独立的对话。你在电脑上让 Agent 查个东西,出门掏出手机用钉钉问进度——它完全不记得你说过什么。

这是单用户 OpenClaw 部署的头号痛点。

安装

# ClawHub 安装(推荐)
clawhub install unified-session

# 或 GitHub 安装
git clone https://github.com/1052326311/unified-session.git \
  ~/.openclaw/workspace/skills/unified-session

然后对你的 Agent 说:

"帮我设置统一会话,让所有渠道共享同一个对话"

一个配置项 dmScope: "main",重启一次 Gateway,搞定。

你会得到

  • ✅ 多端无缝衔接 — 电脑 ↔ 手机 ↔ 平板,任意 App
  • ✅ 共享记忆 — 不管从哪个 App 发消息,Agent 都记得所有上下文
  • ✅ 自动回复路由 — 从钉钉发消息 → 回复自动回钉钉;从飞书发 → 回飞书
  • ✅ 全渠道支持 — 钉钉、飞书、Telegram、Discord、WhatsApp、Signal、Slack、网页版
  • ✅ 一次配置,永久生效
  • ✅ 完全可逆 — 随时切回独立会话
  • ✅ 零外部依赖 — 不需要 API Key,不需要额外服务

适用场景

✅ 你是 Agent 的唯一用户(个人部署) ✅ 你用了 2 个以上渠道(网页版 + 手机 App) ✅ 你想要一个连续的对话跨所有设备

⚠️ 多人使用的机器人不适用 — 如果多人给你的 Agent 发私信,请保持渠道隔离(per-channel-peer),防止上下文泄露。

安全性

  • 不连接外部服务,不需要 API Key,不发送网络请求
  • 只修改 ~/.openclaw/openclaw.json
  • 一个配置项即可完全回退

📄 License

MIT License — see LICENSE for details.

⭐ Support

If this skill made your life easier, give it a star! ⭐

clawhub star unified-session    # on ClawHub

About

🔗 One agent, all devices, zero context loss. Unify all chat channels into one shared session for seamless cross-device AI continuity. 多端共享,无缝衔接。

Topics

ai-agentcross-devicedingtalkdiscordfeishumulti-channelopenclawopenclaw-skillsessiontelegram

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.