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

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
V
Visual Studio Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
L
LangChain Blog
Martin Fowler
Martin Fowler
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(message-tool): rename `type` schema property to avoid...
YashSaliya · 2026-05-15 · via Recent Commits to openclaw:main

File tree

  • extensions/discord/src/actions

  • src/agents/tools

Original file line numberDiff line numberDiff line change

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

2121

- Slack/plugins: route plugin-owned modal `view_submission` and `view_closed` events through Slack interactive handlers before compacting the agent-visible system event, so plugins can persist full submitted form state while the transcript stays compact. Fixes #82102. Thanks @shannon0430.

2222

- Providers/Xiaomi: promote legacy MiMo V2 reasoning-only final answers to visible text, including Xiaomi-compatible proxy routes, so `mimo-v2-pro` and `mimo-v2-omni` replies no longer appear blank when the answer arrives in `reasoning_content`. Fixes #60261. (#60304) Thanks @HiddenPuppy.

2323

- Memory search: stop using chokidar write-stability polling for memory and QMD watchers so large Markdown extraPath trees no longer build up regular file descriptors; changed files now settle through the existing debounced sync queue. Fixes #77327 and #78224. (#81802) Thanks @frankekn, @loyur, and @JanPlessow.

24+

- Message tool: rename the Discord channel-create schema field exposed to models from `type` to `channelType`, avoiding NVIDIA NIM JSON Schema parser failures while still accepting legacy `type` tool calls. (#78920) Thanks @YashSaliya.

2425
2526

## 2026.5.14

2627
Original file line numberDiff line numberDiff line change

@@ -46,7 +46,10 @@ export function readDiscordChannelCreateParams(

4646

return {

4747

guildId: readStringParam(params, "guildId", { required: true }),

4848

name: readStringParam(params, "name", { required: true }),

49-

type: readNumberParam(params, "type", { integer: true }) ?? undefined,

49+

type:

50+

readNumberParam(params, "channelType", { integer: true }) ??

51+

readNumberParam(params, "type", { integer: true }) ??

52+

undefined,

5053

parentId: parentId ?? undefined,

5154

topic: readStringParam(params, "topic") ?? undefined,

5255

position: readNumberParam(params, "position", { integer: true }) ?? undefined,

Original file line numberDiff line numberDiff line change

@@ -910,6 +910,27 @@ describe("handleDiscordGuildAction - channel management", () => {

910910

});

911911

});

912912
913+

it("prefers channelType when creating a channel", async () => {

914+

await handleGuildAction(

915+

"channelCreate",

916+

{

917+

guildId: "G1",

918+

name: "forum-thread",

919+

channelType: 11,

920+

type: 0,

921+

},

922+

channelsEnabled,

923+

);

924+

expect(createChannelDiscord).toHaveBeenCalledWith(

925+

expect.objectContaining({

926+

guildId: "G1",

927+

name: "forum-thread",

928+

type: 11,

929+

}),

930+

{ cfg: DISCORD_TEST_CFG },

931+

);

932+

});

933+
913934

it("respects channel gating for channelCreate", async () => {

914935

await expect(

915936

handleGuildAction("channelCreate", { guildId: "G1", name: "test" }, channelsDisabled),

Original file line numberDiff line numberDiff line change

@@ -467,7 +467,12 @@ function buildPresenceSchema() {

467467

function buildChannelManagementSchema() {

468468

return {

469469

name: Type.Optional(Type.String()),

470-

type: Type.Optional(Type.Number()),

470+

channelType: Type.Optional(

471+

Type.Number({

472+

description:

473+

"Numeric channel type (e.g. Discord channel type). Renamed from `type` to avoid JSON Schema keyword collisions that break some OpenAI-compatible providers (notably NVIDIA NIM).",

474+

}),

475+

),

471476

parentId: Type.Optional(Type.String()),

472477

topic: Type.Optional(Type.String()),

473478

position: Type.Optional(Type.Number()),