惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 聂微东
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
美团技术团队
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
罗磊的独立博客
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
小众软件
小众软件

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: speed up channel mcp tests · openclaw/openclaw@ba722fd
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -1,10 +1,7 @@

11

import { randomUUID } from "node:crypto";

22

import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";

33

import type { OpenClawConfig } from "../config/types.openclaw.js";

4-

import { resolveGatewayClientBootstrap } from "../gateway/client-bootstrap.js";

5-

import { GatewayClient, GatewayClientRequestError } from "../gateway/client.js";

6-

import { APPROVALS_SCOPE, READ_SCOPE, WRITE_SCOPE } from "../gateway/method-scopes.js";

7-

import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../gateway/protocol/client-info.js";

4+

import type { GatewayClient } from "../gateway/client.js";

85

import type { EventFrame } from "../gateway/protocol/index.js";

96

import { extractFirstTextBlock } from "../shared/chat-message-content.js";

107

import {

@@ -88,6 +85,17 @@ export class OpenClawChannelBridge {

8885

return;

8986

}

9087

this.started = true;

88+

const [

89+

{ resolveGatewayClientBootstrap },

90+

{ GatewayClient: GatewayClientCtor },

91+

{ APPROVALS_SCOPE, READ_SCOPE, WRITE_SCOPE },

92+

{ GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES },

93+

] = await Promise.all([

94+

import("../gateway/client-bootstrap.js"),

95+

import("../gateway/client.js"),

96+

import("../gateway/method-scopes.js"),

97+

import("../gateway/protocol/client-info.js"),

98+

]);

9199

const bootstrap = await resolveGatewayClientBootstrap({

92100

config: this.cfg,

93101

gatewayUrl: this.params.gatewayUrl,

@@ -102,7 +110,7 @@ export class OpenClawChannelBridge {

102110

return;

103111

}

104112105-

this.gateway = new GatewayClient({

113+

this.gateway = new GatewayClientCtor({

106114

url: bootstrap.url,

107115

token: bootstrap.auth.token,

108116

password: bootstrap.auth.password,

@@ -525,7 +533,11 @@ export class OpenClawChannelBridge {

525533

}

526534527535

export function shouldRetryInitialMcpGatewayConnect(error: Error): boolean {

528-

if (error instanceof GatewayClientRequestError) {

536+

if (

537+

error.name === "GatewayClientRequestError" &&

538+

"retryable" in error &&

539+

typeof error.retryable === "boolean"

540+

) {

529541

return error.retryable;

530542

}

531543

const message = error.message.toLowerCase();