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

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
量子位
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Y
Y Combinator Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
博客园 - 聂微东
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

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(pairing): clear stale requests on device removal (#70...
drobison00 · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -56,6 +56,7 @@ Docs: https://docs.openclaw.ai

5656

- QQBot: add `INTERACTION` intent (`1 << 26`) to the gateway constants and include it in the `FULL_INTENTS` mask so interaction events are received. (#70143) Thanks @cxyhhhhh.

5757

- Gateway/restart: preserve one-shot continuation instructions across gateway restarts so agents can resume and reply back to the original chat after reboot. (#63406) Thanks @VACInc.

5858

- Gateway/restart: write restart sentinel files atomically so interrupted writes cannot leave a truncated sentinel behind. (#70225) Thanks @obviyus.

59+

- Pairing: remove stale pending requests for a device when that paired device is deleted, so an old repair approval cannot recreate the removed device from leftover state.

5960
6061

## 2026.4.21

6162
Original file line numberDiff line numberDiff line change

@@ -1013,6 +1013,46 @@ describe("device pairing tokens", () => {

10131013

await expect(removePairedDevice("device-1", baseDir)).resolves.toBeNull();

10141014

});

10151015
1016+

test("removing a paired device clears pending requests for that device only", async () => {

1017+

const baseDir = await makeDevicePairingDir();

1018+

await setupPairedOperatorDevice(baseDir, ["operator.read"]);

1019+
1020+

const staleRepair = await requestDevicePairing(

1021+

{

1022+

deviceId: "device-1",

1023+

publicKey: "public-key-1-rotated",

1024+

role: "operator",

1025+

scopes: ["operator.read"],

1026+

},

1027+

baseDir,

1028+

);

1029+

const otherPending = await requestDevicePairing(

1030+

{

1031+

deviceId: "device-2",

1032+

publicKey: "public-key-2",

1033+

role: "node",

1034+

scopes: [],

1035+

},

1036+

baseDir,

1037+

);

1038+
1039+

await expect(removePairedDevice("device-1", baseDir)).resolves.toEqual({

1040+

deviceId: "device-1",

1041+

});

1042+
1043+

const pending = (await listDevicePairing(baseDir)).pending;

1044+

expect(pending.map((entry) => entry.requestId)).not.toContain(staleRepair.request.requestId);

1045+

expect(pending.map((entry) => entry.requestId)).toContain(otherPending.request.requestId);

1046+

await expect(

1047+

approveDevicePairing(

1048+

staleRepair.request.requestId,

1049+

{ callerScopes: ["operator.read"] },

1050+

baseDir,

1051+

),

1052+

).resolves.toBeNull();

1053+

await expect(getPairedDevice("device-1", baseDir)).resolves.toBeNull();

1054+

});

1055+
10161056

test("clears paired device state by device id", async () => {

10171057

const baseDir = await makeDevicePairingDir();

10181058

await setupPairedOperatorDevice(baseDir, ["operator.read"]);

Original file line numberDiff line numberDiff line change

@@ -758,6 +758,11 @@ export async function removePairedDevice(

758758

return null;

759759

}

760760

delete state.pairedByDeviceId[normalized];

761+

for (const [requestId, pending] of Object.entries(state.pendingById)) {

762+

if (pending.deviceId === normalized) {

763+

delete state.pendingById[requestId];

764+

}

765+

}

761766

await persistState(state, baseDir);

762767

return { deviceId: normalized };

763768

});