mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-21 00:22:00 +08:00
fix: stabilize cloud computer use mcp
This commit is contained in:
@@ -245,8 +245,12 @@ function connect(url: string): void {
|
||||
}
|
||||
});
|
||||
|
||||
const scheduleReconnect = () => {
|
||||
emitToParent({ type: 'disconnected', url });
|
||||
const scheduleReconnect = (code?: number, reason?: Buffer) => {
|
||||
const reasonText = reason?.toString() || '';
|
||||
emitToParent({ type: 'disconnected', url, code, reason: reasonText });
|
||||
if (code === 1008 && /computer use.*disabled/i.test(reasonText)) {
|
||||
return;
|
||||
}
|
||||
setTimeout(open, reconnectMs);
|
||||
reconnectMs = Math.min(reconnectMs * 2, RECONNECT_MAX_MS);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user