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

推荐订阅源

Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
量子位
G
Google Developers Blog
J
Java Code Geeks
N
Netflix TechBlog - Medium
博客园 - 聂微东
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
雷峰网
雷峰网
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss

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(nodes): allow removing stale paired nodes · openclaw/...
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

2121
2222

### Fixes

2323
24+

- Nodes/CLI: add `openclaw nodes remove --node <id|name|ip>` and `node.pair.remove` so stale gateway-owned node pairing records can be cleaned without hand-editing state files. Thanks @openclaw.

2425

- Local models: default custom providers with only `baseUrl` to the Chat Completions adapter and trust loopback model requests automatically, so local OpenAI-compatible proxies receive `/v1/chat/completions` without timing out. Fixes #40024. Thanks @parachuteshe.

2526

- Channels/message tool: surface Discord, Slack, and Mattermost `user:`/`channel:` target syntax in the shared message target schema and Discord ambiguity errors, so DM sends by numeric id stop burning retries before finding `user:<id>`. Fixes #72401. Thanks @garyd9, @hclsys, and @praveen9354.

2627

- Agents/tools: scope tool-loop detection history to the active run when available, so scheduled heartbeat cycles no longer inherit stale repeated-call counts from previous runs. Fixes #40144. Thanks @mattbrown319.

Original file line numberDiff line numberDiff line change

@@ -136,7 +136,7 @@ Stored under `~/.openclaw/devices/`:

136136
137137

### Notes

138138
139-

- The legacy `node.pair.*` API (CLI: `openclaw nodes pending|approve|reject|rename`) is a

139+

- The legacy `node.pair.*` API (CLI: `openclaw nodes pending|approve|reject|remove|rename`) is a

140140

separate gateway-owned pairing store. WS nodes still require device pairing.

141141

- The pairing record is the durable source of truth for approved roles. Active

142142

device tokens stay bounded to that approved role set; a stray token entry

Original file line numberDiff line numberDiff line change

@@ -29,6 +29,7 @@ openclaw nodes list --last-connected 24h

2929

openclaw nodes pending

3030

openclaw nodes approve <requestId>

3131

openclaw nodes reject <requestId>

32+

openclaw nodes remove --node <id|name|ip>

3233

openclaw nodes rename --node <id|name|ip> --name <displayName>

3334

openclaw nodes status

3435

openclaw nodes status --connected

@@ -38,6 +39,7 @@ openclaw nodes status --last-connected 24h

3839

`nodes list` prints pending/paired tables. Paired rows include the most recent connect age (Last Connect).

3940

Use `--connected` to only show currently-connected nodes. Use `--last-connected <duration>` to

4041

filter to nodes that connected within a duration (e.g. `24h`, `7d`).

42+

Use `nodes remove --node <id|name|ip>` to delete a stale gateway-owned node pairing record.

4143
4244

Approval note:

4345
Original file line numberDiff line numberDiff line change

@@ -39,6 +39,7 @@ openclaw nodes pending

3939

openclaw nodes approve <requestId>

4040

openclaw nodes reject <requestId>

4141

openclaw nodes status

42+

openclaw nodes remove --node <id|name|ip>

4243

openclaw nodes rename --node <id|name|ip> --name "Living Room iPad"

4344

```

4445

@@ -57,6 +58,7 @@ Methods:

5758

- `node.pair.list` — list pending + paired nodes (`operator.pairing`).

5859

- `node.pair.approve` — approve a pending request (issues token).

5960

- `node.pair.reject` — reject a pending request.

61+

- `node.pair.remove` — remove a stale paired node entry.

6062

- `node.pair.verify` — verify `{ nodeId, token }`.

6163
6264

Notes:

Original file line numberDiff line numberDiff line change

@@ -369,7 +369,7 @@ enumeration of `src/gateway/server-methods/*.ts`.

369369

</Accordion>

370370
371371

<Accordion title="Node pairing, invoke, and pending work">

372-

- `node.pair.request`, `node.pair.list`, `node.pair.approve`, `node.pair.reject`, and `node.pair.verify` cover node pairing and bootstrap verification.

372+

- `node.pair.request`, `node.pair.list`, `node.pair.approve`, `node.pair.reject`, `node.pair.remove`, and `node.pair.verify` cover node pairing and bootstrap verification.

373373

- `node.list` and `node.describe` return known/connected node state.

374374

- `node.rename` updates a paired node label.

375375

- `node.invoke` forwards a command to a connected node.

Original file line numberDiff line numberDiff line change

@@ -49,8 +49,10 @@ Notes:

4949

- The device pairing record is the durable approved-role contract. Token

5050

rotation stays inside that contract; it cannot upgrade a paired node into a

5151

different role that pairing approval never granted.

52-

- `node.pair.*` (CLI: `openclaw nodes pending/approve/reject/rename`) is a separate gateway-owned

52+

- `node.pair.*` (CLI: `openclaw nodes pending/approve/reject/remove/rename`) is a separate gateway-owned

5353

node pairing store; it does **not** gate the WS `connect` handshake.

54+

- `openclaw nodes remove --node <id|name|ip>` deletes stale entries from that

55+

separate gateway-owned node pairing store.

5456

- Approval scope follows the pending request's declared commands:

5557

- commandless request: `operator.pairing`

5658

- non-exec node commands: `operator.pairing` + `operator.write`

Original file line numberDiff line numberDiff line change

@@ -71,6 +71,30 @@ export function registerNodesPairingCommands(nodes: Command) {

7171

}),

7272

);

7373
74+

nodesCallOpts(

75+

nodes

76+

.command("remove")

77+

.description("Remove a paired node entry")

78+

.requiredOption("--node <idOrNameOrIp>", "Node id, name, or IP")

79+

.action(async (opts: NodesRpcOpts) => {

80+

await runNodesCommand("remove", async () => {

81+

const nodeId = await resolveNodeId(opts, normalizeOptionalString(opts.node) ?? "");

82+

if (!nodeId) {

83+

defaultRuntime.error("--node required");

84+

defaultRuntime.exit(1);

85+

return;

86+

}

87+

const result = await callGatewayCli("node.pair.remove", opts, { nodeId });

88+

if (opts.json) {

89+

defaultRuntime.writeJson(result);

90+

return;

91+

}

92+

const { warn } = getNodesTheme();

93+

defaultRuntime.log(warn(`Removed paired node ${nodeId}`));

94+

});

95+

}),

96+

);

97+
7498

nodesCallOpts(

7599

nodes

76100

.command("rename")

Original file line numberDiff line numberDiff line change

@@ -22,6 +22,7 @@ export function registerNodesCli(program: Command) {

2222

`\n${theme.heading("Examples:")}\n${formatHelpExamples([

2323

["openclaw nodes status", "List known nodes with live status."],

2424

["openclaw nodes pairing pending", "Show pending node pairing requests."],

25+

["openclaw nodes remove --node <id|name|ip>", "Remove a stale paired node entry."],

2526

[

2627

'openclaw nodes invoke --node <id> --command system.which --params \'{"name":"uname"}\'',

2728

"Invoke a node command directly.",

Original file line numberDiff line numberDiff line change

@@ -424,6 +424,35 @@ describe("cli program (nodes basics)", () => {

424424

);

425425

});

426426
427+

it("runs nodes remove and calls node.pair.remove", async () => {

428+

callGateway.mockImplementation(async (...args: unknown[]) => {

429+

const opts = (args[0] ?? {}) as { method?: string };

430+

if (opts.method === "node.list") {

431+

return {

432+

nodes: [{ nodeId: "ios-node", displayName: "iOS Node", paired: true }],

433+

};

434+

}

435+

if (opts.method === "node.pair.list") {

436+

return {

437+

pending: [],

438+

paired: [{ nodeId: "ios-node", displayName: "iOS Node" }],

439+

};

440+

}

441+

if (opts.method === "node.pair.remove") {

442+

return { nodeId: "ios-node" };

443+

}

444+

return { ok: true };

445+

});

446+
447+

await runProgram(["nodes", "remove", "--node", "iOS Node"]);

448+

expect(callGateway).toHaveBeenCalledWith(

449+

expect.objectContaining({

450+

method: "node.pair.remove",

451+

params: { nodeId: "ios-node" },

452+

}),

453+

);

454+

});

455+
427456

it("runs nodes invoke and calls node.invoke", async () => {

428457

mockGatewayWithIosNodeListAnd("node.invoke", {

429458

ok: true,

Original file line numberDiff line numberDiff line change

@@ -55,6 +55,7 @@ const METHOD_SCOPE_GROUPS: Record<OperatorScope, readonly string[]> = {

5555

"node.pair.request",

5656

"node.pair.list",

5757

"node.pair.reject",

58+

"node.pair.remove",

5859

"node.pair.verify",

5960

"node.pair.approve",

6061

"device.pair.list",