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

推荐订阅源

Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
L
LangChain Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园_首页
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
美团技术团队
V
V2EX

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(gateway): sync dirty plugin metadata in watch mode · ...
steipete · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -17,6 +17,17 @@ const manifest = JSON.parse(

1717

}>;

1818

};

1919
20+

const packageJson = JSON.parse(

21+

readFileSync(new URL("./package.json", import.meta.url), "utf8"),

22+

) as {

23+

dependencies?: Record<string, string>;

24+

openclaw?: {

25+

bundle?: {

26+

stageRuntimeDependencies?: boolean;

27+

};

28+

};

29+

};

30+
2031

function manifestComparableWizardFields(choice: {

2132

choiceId?: string;

2233

choiceLabel?: string;

@@ -53,6 +64,12 @@ function providerWizardByKey() {

5364

}

5465
5566

describe("OpenAI plugin manifest", () => {

67+

it("opts into staging bundled runtime dependencies", () => {

68+

expect(packageJson.dependencies?.["@mariozechner/pi-ai"]).toBe("0.70.6");

69+

expect(packageJson.dependencies?.ws).toBe("^8.20.0");

70+

expect(packageJson.openclaw?.bundle?.stageRuntimeDependencies).toBe(true);

71+

});

72+
5673

it("keeps removed Codex CLI import auth choice as a deprecated browser-login alias", () => {

5774

const codexBrowserLogin = manifest.providerAuthChoices?.find(

5875

(choice) => choice.choiceId === "openai-codex",

Original file line numberDiff line numberDiff line change

@@ -12,6 +12,9 @@

1212

"@openclaw/plugin-sdk": "workspace:*"

1313

},

1414

"openclaw": {

15+

"bundle": {

16+

"stageRuntimeDependencies": true

17+

},

1518

"extensions": [

1619

"./index.ts"

1720

]

Original file line numberDiff line numberDiff line change

@@ -798,7 +798,10 @@ const writeBuildStamp = (deps) => {

798798

}

799799

};

800800
801-

const shouldSkipCleanWatchRuntimeSync = (deps) => deps.env.OPENCLAW_WATCH_MODE === "1";

801+

const shouldSkipWatchRuntimeSync = (deps, requirement) =>

802+

deps.env.OPENCLAW_WATCH_MODE === "1" &&

803+

requirement.reason === "missing_runtime_postbuild_stamp" &&

804+

hasDirtyRuntimePostBuildInputs(deps) !== true;

802805
803806

const isGatewayClientCommand = (args) =>

804807

args[0] === "gateway" && (args[1] === "call" || args[1] === "status");

@@ -885,9 +888,12 @@ export async function runNodeMain(params = {}) {

885888

return await closeRunNodeOutputTee(deps, exitCode);

886889

}

887890

if (!buildRequirement.shouldBuild) {

888-

if (!useExistingGatewayClientDist && !shouldSkipCleanWatchRuntimeSync(deps)) {

891+

if (!useExistingGatewayClientDist) {

889892

const runtimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);

890-

if (runtimePostBuildRequirement.shouldSync) {

893+

if (

894+

runtimePostBuildRequirement.shouldSync &&

895+

!shouldSkipWatchRuntimeSync(deps, runtimePostBuildRequirement)

896+

) {

891897

const synced = await withRunNodeBuildLock(deps, async () => {

892898

const lockedRuntimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);

893899

if (!lockedRuntimePostBuildRequirement.shouldSync) {

Original file line numberDiff line numberDiff line change

@@ -697,6 +697,44 @@ describe("run-node script", () => {

697697

});

698698

});

699699
700+

it("restages dirty runtime metadata in watch mode when dist is already current", async () => {

701+

await withTempDir({ prefix: "openclaw-run-node-" }, async (tmp) => {

702+

await setupTrackedProject(tmp, {

703+

files: {

704+

[ROOT_SRC]: "export const value = 1;\n",

705+

[EXTENSION_PACKAGE]: '{"openclaw":{"bundle":{"stageRuntimeDependencies":true}}}\n',

706+

[RUNTIME_POSTBUILD_STAMP]: '{"head":"abc123"}\n',

707+

},

708+

buildPaths: [

709+

ROOT_SRC,

710+

EXTENSION_PACKAGE,

711+

ROOT_TSCONFIG,

712+

ROOT_PACKAGE,

713+

DIST_ENTRY,

714+

BUILD_STAMP,

715+

RUNTIME_POSTBUILD_STAMP,

716+

],

717+

});

718+
719+

const runRuntimePostBuild = vi.fn();

720+

const { spawnCalls, spawn, spawnSync } = createSpawnRecorder({

721+

gitHead: "abc123\n",

722+

gitStatus: ` M ${EXTENSION_PACKAGE}\n`,

723+

});

724+

const exitCode = await runStatusCommand({

725+

tmp,

726+

spawn,

727+

spawnSync,

728+

env: { OPENCLAW_WATCH_MODE: "1" },

729+

runRuntimePostBuild,

730+

});

731+
732+

expect(exitCode).toBe(0);

733+

expect(spawnCalls).toEqual([statusCommandSpawn()]);

734+

expect(runRuntimePostBuild).toHaveBeenCalledOnce();

735+

});

736+

});

737+
700738

it("runs QA parity report from source without rebuilding private QA dist", async () => {

701739

await withTempDir({ prefix: "openclaw-run-node-" }, async (tmp) => {

702740

await setupTrackedProject(tmp, {