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

推荐订阅源

S
SegmentFault 最新的问题
Jina AI
Jina AI
罗磊的独立博客
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
InfoQ
月光博客
月光博客
博客园_首页
Vercel News
Vercel News
P
Proofpoint News Feed
GbyAI
GbyAI
Y
Y Combinator Blog

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: allow Nix store plugin hardlinks (#79344) · openclaw...
joshp123 · 2026-05-08 · via Recent Commits to openclaw:main

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

2929

resolvePackageRuntimeExtensionSources,

3030

resolvePackageSetupSource,

3131

} from "./package-entry-resolution.js";

32+

import { shouldRejectHardlinkedPluginFiles } from "./hardlink-policy.js";

3233

import { formatPosixMode, isPathInside, safeRealpathSync, safeStatSync } from "./path-safety.js";

3334

import { tracePluginLifecyclePhase } from "./plugin-lifecycle-trace.js";

3435

import type { PluginOrigin } from "./plugin-origin.types.js";

@@ -571,6 +572,7 @@ function addCandidate(params: {

571572

function discoverBundleInRoot(params: {

572573

rootDir: string;

573574

origin: PluginOrigin;

575+

env: NodeJS.ProcessEnv;

574576

ownershipUid?: number | null;

575577

workspaceDir?: string;

576578

manifest?: PackageManifest | null;

@@ -584,11 +586,17 @@ function discoverBundleInRoot(params: {

584586

return "none";

585587

}

586588

const rootRealPath = safeRealpathSync(params.rootDir, params.realpathCache) ?? undefined;

589+

const rejectHardlinks = shouldRejectHardlinkedPluginFiles({

590+

origin: params.origin,

591+

rootDir: params.rootDir,

592+

env: params.env,

593+

realpathCache: params.realpathCache,

594+

});

587595

const bundleManifest = loadBundleManifest({

588596

rootDir: params.rootDir,

589597

...(rootRealPath !== undefined ? { rootRealPath } : {}),

590598

bundleFormat,

591-

rejectHardlinks: params.origin !== "bundled",

599+

rejectHardlinks,

592600

});

593601

if (!bundleManifest.ok) {

594602

params.diagnostics.push({

@@ -620,6 +628,7 @@ function discoverBundleInRoot(params: {

620628

function discoverInDirectory(params: {

621629

dir: string;

622630

origin: PluginOrigin;

631+

env: NodeJS.ProcessEnv;

623632

ownershipUid?: number | null;

624633

workspaceDir?: string;

625634

candidates: PluginCandidate[];

@@ -684,8 +693,13 @@ function discoverInDirectory(params: {

684693

continue;

685694

}

686695687-

const rejectHardlinks = params.origin !== "bundled";

688696

const fullPathRealPath = safeRealpathSync(fullPath, params.realpathCache) ?? undefined;

697+

const rejectHardlinks = shouldRejectHardlinkedPluginFiles({

698+

origin: params.origin,

699+

rootDir: fullPath,

700+

env: params.env,

701+

realpathCache: params.realpathCache,

702+

});

689703

const manifest = readCandidatePackageManifest({

690704

dir: fullPath,

691705

origin: params.origin,

@@ -745,6 +759,7 @@ function discoverInDirectory(params: {

745759

const bundleDiscovery = discoverBundleInRoot({

746760

rootDir: fullPath,

747761

origin: params.origin,

762+

env: params.env,

748763

ownershipUid: params.ownershipUid,

749764

workspaceDir: params.workspaceDir,

750765

manifest,

@@ -890,8 +905,13 @@ function discoverFromPath(params: {

890905

}

891906892907

if (stat.isDirectory()) {

893-

const rejectHardlinks = params.origin !== "bundled";

894908

const resolvedRealPath = safeRealpathSync(resolved, params.realpathCache) ?? undefined;

909+

const rejectHardlinks = shouldRejectHardlinkedPluginFiles({

910+

origin: params.origin,

911+

rootDir: resolved,

912+

env: params.env,

913+

realpathCache: params.realpathCache,

914+

});

895915

const manifest = readCandidatePackageManifest({

896916

dir: resolved,

897917

origin: params.origin,

@@ -951,6 +971,7 @@ function discoverFromPath(params: {

951971

const bundleDiscovery = discoverBundleInRoot({

952972

rootDir: resolved,

953973

origin: params.origin,

974+

env: params.env,

954975

ownershipUid: params.ownershipUid,

955976

workspaceDir: params.workspaceDir,

956977

manifest,

@@ -989,6 +1010,7 @@ function discoverFromPath(params: {

9891010

discoverInDirectory({

9901011

dir: resolved,

9911012

origin: params.origin,

1013+

env: params.env,

9921014

ownershipUid: params.ownershipUid,

9931015

workspaceDir: params.workspaceDir,

9941016

candidates: params.candidates,

@@ -1062,6 +1084,7 @@ export function discoverOpenClawPlugins(params: {

10621084

discoverInDirectory({

10631085

dir: roots.workspace,

10641086

origin: "workspace",

1087+

env,

10651088

ownershipUid: params.ownershipUid,

10661089

workspaceDir: workspaceRoot,

10671090

candidates: result.candidates,

@@ -1114,6 +1137,7 @@ export function discoverOpenClawPlugins(params: {

11141137

discoverInDirectory({

11151138

dir: roots.stock,

11161139

origin: "bundled",

1140+

env,

11171141

ownershipUid: params.ownershipUid,

11181142

candidates: result.candidates,

11191143

diagnostics: result.diagnostics,

@@ -1131,6 +1155,7 @@ export function discoverOpenClawPlugins(params: {

11311155

discoverInDirectory({

11321156

dir: sourceCheckoutExtensionsDir,

11331157

origin: "bundled",

1158+

env,

11341159

ownershipUid: params.ownershipUid,

11351160

candidates: result.candidates,

11361161

diagnostics: result.diagnostics,

@@ -1157,6 +1182,7 @@ export function discoverOpenClawPlugins(params: {

11571182

discoverInDirectory({

11581183

dir: roots.global,

11591184

origin: "global",

1185+

env,

11601186

ownershipUid: params.ownershipUid,

11611187

candidates: result.candidates,

11621188

diagnostics: result.diagnostics,