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

推荐订阅源

月光博客
月光博客
小众软件
小众软件
爱范儿
爱范儿
Y
Y Combinator Blog
博客园 - Franky
美团技术团队
博客园 - 【当耐特】
The Cloudflare Blog
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
WordPress大学
WordPress大学
V
Visual Studio Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
有赞技术团队
有赞技术团队

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(skills): replace generated plugin skill directories ·...
2026-05-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

3232
3333

### Fixes

3434
35+

- Plugin skills: replace generated Windows plugin-skill directories before publishing the current skill link, avoiding repeated `EINVAL` warnings from stale non-symlink entries. Fixes #81432. (#81446) Thanks @hclsys and @vincentkoc.

3536

- Channels/config: treat channel entries with only `enabled: true` as configured state so plugin-backed channels can auto-enable from an explicit on switch. Fixes #81323. (#81331) Thanks @EvanYao826 and @vincentkoc.

3637

- CLI/update: add an update finalization path for externally swapped core runtimes, running update-time doctor repair and plugin convergence from post-doctor config and install-record state before reporting completion. Thanks @shakkernerd.

3738

- Agents/WebChat: stop a successful assistant turn whose stale `errorMessage` matches a billing, auth, or rate-limit pattern from rotating profiles, falling back, or surfacing a hard `FailoverError` unless the current attempt has a real failover failure. (#70900) Thanks @truffle-dev.

Original file line numberDiff line numberDiff line change

@@ -473,6 +473,22 @@ describe("publishPluginSkills", () => {

473473

expect(fsSync.readlinkSync(path.join(managedDir, "my-skill"))).toBe(dir2);

474474

});

475475
476+

it("replaces generated Windows directory entries before publishing a current skill", async () => {

477+

const skillParent = await tempDirs.make("plugin-skills-");

478+

const managedDir = await tempDirs.make("managed-skills-");

479+
480+

const dir = await writeSkillDir(skillParent, "my-skill");

481+

const existingDir = path.join(managedDir, "my-skill");

482+

await fs.mkdir(existingDir, { recursive: true });

483+

await fs.writeFile(path.join(existingDir, "stale.txt"), "stale");

484+
485+

withPlatform("win32", () => {

486+

publishPluginSkills([dir], { pluginSkillsDir: managedDir });

487+

});

488+
489+

expect(fsSync.readlinkSync(existingDir)).toBe(dir);

490+

});

491+
476492

it("cleans up stale symlinks whose targets still exist", async () => {

477493

const skillParent = await tempDirs.make("plugin-skills-");

478494

const managedDir = await tempDirs.make("managed-skills-");

Original file line numberDiff line numberDiff line change

@@ -220,11 +220,19 @@ function publishPluginSkills(skillDirs: string[], opts?: { pluginSkillsDir?: str

220220

// best-effort; symlink will fail below if dir is truly unusable

221221

}

222222

try {

223-

const existingTarget = fs.readlinkSync(linkPath);

224-

if (existingTarget === target) {

223+

const existingEntry = fs.lstatSync(linkPath);

224+

if (existingEntry.isSymbolicLink()) {

225+

const existingTarget = fs.readlinkSync(linkPath);

226+

if (existingTarget === target) {

227+

continue;

228+

}

229+

removeGeneratedPluginSkillEntry(linkPath);

230+

} else if (isGeneratedPluginSkillEntry(existingEntry)) {

231+

removeGeneratedPluginSkillEntry(linkPath);

232+

} else {

233+

log.warn(`plugin skill entry is not a generated symlink: ${linkPath}`);

225234

continue;

226235

}

227-

removeGeneratedPluginSkillEntry(linkPath);

228236

} catch (err) {

229237

if (!isNotFoundError(err)) {

230238

log.warn(`failed to inspect plugin skill symlink "${linkPath}": ${String(err)}`);

@@ -259,7 +267,10 @@ function publishPluginSkills(skillDirs: string[], opts?: { pluginSkillsDir?: str

259267

}

260268

}

261269
262-

function isGeneratedPluginSkillEntry(entry: fs.Dirent): boolean {

270+

function isGeneratedPluginSkillEntry(

271+

entry: Pick<fs.Dirent, "isDirectory" | "isSymbolicLink">,

272+

): boolean {

273+

// Windows directory symlinks are junctions and lstat reports them as directories.

263274

return entry.isSymbolicLink() || (process.platform === "win32" && entry.isDirectory());

264275

}

265276