session-bridgelisted
Install: claude install-skill yunsii/wezdeck
# Session Adapter Kit(Dex · Main)
入口脚本(仓内):
```bash
REPO="${WEZDECK_REPO:-$HOME/github/wezterm-config}"
SB="$REPO/openclaw/scripts/session-bridge.sh"
```
规范:`openclaw/docs/session-bridge.md`
tmux 版本策略:`docs/tmux-install.md`
## 何时用
| 用户意图 | 命令 |
| --- | --- |
| 本机 Claude/Codex 卡在哪 | `$SB host-status` → 必要时 `host-capture --target …` |
| 飞书侧让 agent 跑一轮 | `$SB poke --id dex -m '…'`(先 `--dry-run` 若不确定) |
| 临时点 Continue / 发短文本进 TUI | `lease mint` → `host-send-keys …`(先 dry-run) |
| 权限框点 Yes | `host-capture` 确认 → `host-send-keys --approve-visible` |
| 查 Dex 会话 | `$SB claw-ls` / `claw-show --id dex` |
| 机器人通知 | `$SB bot-send --to dex -m '…'`(默认 dry-run) |
| **本人**飞书说话 | `$SB say-as-me --to dex -m '…'`(P3;默认 dry-run) |
| **饭点接管聚焦 pane** | 快捷键 **Ctrl+K w**;或 `$SB take --focus --confirm-notify`。默认 **你→Dex**(say-as-me + poke),不是 bot 推你 |
| 查/停盯梢 | `$SB watch-status` / `watch-stop --all` |
| 紧急停写 | `$SB panic on` |
`take` 只做轻量轮询 + **向 Dex 交接**(需确认 / 回合空闲 turn_idle / 会话结束);**不**代按 TUI、不每 tick 跑模型。turn_idle 时 job 继续盯,不自动结束。
通知默认 `user+poke`:本人进 Dex 飞书会话 + session poke;文案带 `【host-watch · …】` 头,避免 Dex 把 host 选择题当成自己的 1/2/3。需配置 `feishu_targets.dex_chat_id` 才有 say-as-me;否则至少 poke。
**仅 agent pane**:以 **pane 前台进程**为准;**不用标题**。
## 硬规则
1. **身份三分:** `agent-poke` ≠ `bot` ≠ `user`(say-as-me);汇报里写清。
2. **读宽写窄:** 写路径 panic 全拒(exit 75)。
3. **host-send-keys** 需要:有效 lease + `host_allowlist` + 无 panic;禁 C-c/C-z/C-d。
4. **遥控 ≠ 写码权**(单写者仍成立)。
5. **tmux client** 必须与 server 匹配(脚本自动 probe;勿