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

推荐订阅源

有赞技术团队
有赞技术团队
小众软件
小众软件
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
Jina AI
Jina AI
博客园 - 【当耐特】
V
Visual Studio Blog
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
量子位
IT之家
IT之家
G
Google Developers Blog
V
V2EX
The GitHub Blog
The GitHub Blog
月光博客
月光博客
GbyAI
GbyAI

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
fix(release): cancel Discord cleanup bodies · openclaw/op...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2741,16 +2741,21 @@ async function postDiscordMessage(params) {

27412741

}

27422742

}

27432743
2744-

async function deleteDiscordMessage(params) {

2744+

export async function deleteDiscordMessage(params) {

27452745

if (!params.messageId) {

27462746

return;

27472747

}

2748-

await fetch(

2749-

`https://discord.com/api/v10/channels/${params.channelId}/messages/${params.messageId}`,

2750-

buildDiscordFetchInit(params.token, {

2751-

method: "DELETE",

2752-

}),

2753-

).catch(() => undefined);

2748+

try {

2749+

const response = await fetch(

2750+

`https://discord.com/api/v10/channels/${params.channelId}/messages/${params.messageId}`,

2751+

buildDiscordFetchInit(params.token, {

2752+

method: "DELETE",

2753+

}),

2754+

);

2755+

await response.body?.cancel?.().catch(() => undefined);

2756+

} catch {

2757+

// Cleanup is best-effort; the smoke result should not fail after readback succeeds.

2758+

}

27542759

}

27552760
27562761

async function waitForInstalledDiscordReadback(params) {

Original file line numberDiff line numberDiff line change

@@ -50,6 +50,7 @@ import {

5050

CROSS_OS_DISCORD_FETCH_TIMEOUT_MS,

5151

CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS,

5252

CROSS_OS_COMMAND_HEARTBEAT_SECONDS,

53+

deleteDiscordMessage,

5354

isImmutableReleaseRef,

5455

isRecoverableWindowsPackagedUpgradeSwapCleanupFailure,

5556

isRecoverableWindowsPackagedUpgradeTimeoutError,

@@ -1470,6 +1471,31 @@ describe("scripts/openclaw-cross-os-release-checks", () => {

14701471

expect(init.signal).toBeInstanceOf(AbortSignal);

14711472

});

14721473
1474+

it("cancels Discord delete response bodies", async () => {

1475+

let canceled = false;

1476+

const originalFetch = globalThis.fetch;

1477+

globalThis.fetch = (async () =>

1478+

new Response(

1479+

new ReadableStream<Uint8Array>({

1480+

cancel() {

1481+

canceled = true;

1482+

},

1483+

}),

1484+

{ status: 200 },

1485+

)) as typeof fetch;

1486+

try {

1487+

await deleteDiscordMessage({

1488+

channelId: "channel-123",

1489+

messageId: "message-456",

1490+

token: "discord-token",

1491+

});

1492+

} finally {

1493+

globalThis.fetch = originalFetch;

1494+

}

1495+
1496+

expect(canceled).toBe(true);

1497+

});

1498+
14731499

it("keeps the dev-update lane for main only", () => {

14741500

expect(shouldRunMainChannelDevUpdate("main")).toBe(true);

14751501

expect(shouldRunMainChannelDevUpdate("08753a1d793c040b101c8a26c43445dbbab14995")).toBe(false);