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

推荐订阅源

罗磊的独立博客
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
A
About on SuperTechFans
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
D
DataBreaches.Net
B
Blog
博客园 - 【当耐特】
爱范儿
爱范儿
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
WordPress大学
WordPress大学
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
雷峰网
雷峰网
量子位
G
Google Developers Blog

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
Validate Control UI loopback retry endpoints [AI] (#80900...
pgondhi987 · 2026-05-12 · via Recent Commits to openclaw:main

@@ -623,6 +623,34 @@ describe("GatewayBrowserClient", () => {

623623

vi.useRealTimers();

624624

});

625625626+

it("reconnects without cached device token for DNS hosts beginning with a 127 label", async () => {

627+

useNodeFakeTimers();

628+

const client = new GatewayBrowserClient({

629+

url: "ws://127.example.invalid:18789",

630+

token: "shared-auth-token",

631+

});

632+633+

try {

634+

const { ws: firstWs, connectFrame: firstConnect } = await startConnect(client);

635+

expect(firstConnect.params?.auth?.token).toBe("shared-auth-token");

636+

expect(firstConnect.params?.auth?.deviceToken).toBeUndefined();

637+638+

emitRetryableTokenMismatch(firstWs, firstConnect.id);

639+

await expectSocketClosed(firstWs);

640+

firstWs.emitClose(4008, "connect failed");

641+642+

await vi.advanceTimersByTimeAsync(800);

643+

const secondWs = getLatestWebSocket();

644+

expect(secondWs).not.toBe(firstWs);

645+

const { connectFrame: secondConnect } = await continueConnect(secondWs, "nonce-2");

646+

expect(secondConnect.params?.auth?.token).toBe("shared-auth-token");

647+

expect(secondConnect.params?.auth?.deviceToken).toBeUndefined();

648+

} finally {

649+

client.stop();

650+

vi.useRealTimers();

651+

}

652+

});

653+626654

it("retries startup-unavailable connect responses without terminal callbacks", async () => {

627655

useNodeFakeTimers();

628656

const onClose = vi.fn();

@@ -910,6 +938,44 @@ describe("shouldRetryWithDeviceToken", () => {

910938

).toBe(true);

911939

});

912940941+

it("allows a bounded retry for loopback IPv4 addresses in the 127 block", () => {

942+

expect(

943+

shouldRetryWithDeviceToken({

944+

deviceTokenRetryBudgetUsed: false,

945+

authDeviceToken: undefined,

946+

explicitGatewayToken: "shared-auth-token",

947+

deviceIdentity: {

948+

deviceId: "device-1",

949+

privateKey: "private-key", // pragma: allowlist secret

950+

publicKey: "public-key", // pragma: allowlist secret

951+

},

952+

storedToken: "stored-device-token",

953+

canRetryWithDeviceTokenHint: true,

954+

url: "ws://127.255.10.42:18789",

955+

}),

956+

).toBe(true);

957+

});

958+959+

it("blocks the retry for DNS hosts beginning with a 127 label", () => {

960+

for (const url of ["ws://127.example.invalid:18789", "ws://127.0.0.1.example.invalid:18789"]) {

961+

expect(

962+

shouldRetryWithDeviceToken({

963+

deviceTokenRetryBudgetUsed: false,

964+

authDeviceToken: undefined,

965+

explicitGatewayToken: "shared-auth-token",

966+

deviceIdentity: {

967+

deviceId: "device-1",

968+

privateKey: "private-key", // pragma: allowlist secret

969+

publicKey: "public-key", // pragma: allowlist secret

970+

},

971+

storedToken: "stored-device-token",

972+

canRetryWithDeviceTokenHint: true,

973+

url,

974+

}),

975+

).toBe(false);

976+

}

977+

});

978+913979

it("blocks the retry after the one-shot budget is spent", () => {

914980

expect(

915981

shouldRetryWithDeviceToken({