@coclaw/openclaw-coclaw 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coclaw/openclaw-coclaw",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "OpenClaw CoClaw channel plugin for remote chat",
@@ -96,6 +96,17 @@ export class WebRtcPeer {
96
96
  if (isIceRestart) {
97
97
  const existing = this.__sessions.get(connId);
98
98
  if (existing) {
99
+ // 仅已验证支持 ICE restart 的 impl 放行,其余立即 reject 让 UI 走 rebuild
100
+ if (this.__impl !== 'pion') {
101
+ this.__remoteLog(`rtc.ice-restart-unsupported conn=${connId} impl=${this.__impl}`);
102
+ this.logger.info?.(`${this.__rtcTag} ICE restart rejected: impl=${this.__impl} not verified`);
103
+ this.__onSend({
104
+ type: 'rtc:restart-rejected',
105
+ toConnId: connId,
106
+ payload: { reason: 'impl_unsupported' },
107
+ });
108
+ return;
109
+ }
99
110
  this.__remoteLog(`rtc.ice-restart conn=${connId}`);
100
111
  this.logger.info?.(`${this.__rtcTag} ICE restart offer from ${connId}, renegotiating`);
101
112
  try {