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

推荐订阅源

小众软件
小众软件
WordPress大学
WordPress大学
IT之家
IT之家
G
Google Developers Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
V
V2EX
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
V
Visual Studio Blog
有赞技术团队
有赞技术团队
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 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: route gateway option env mutations · openclaw/opencl...
shakkernerd · 2026-06-25 · via Recent Commits to openclaw:main

@@ -5,7 +5,12 @@ import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vites

55

import type { ConfigFileSnapshot } from "../../config/types.js";

66

import { GATEWAY_SERVICE_RUNTIME_PID_ENV } from "../../daemon/constants.js";

77

import { SUPERVISOR_HINT_ENV_VARS } from "../../infra/supervisor-markers.js";

8-

import { captureEnv, withEnvAsync } from "../../test-utils/env.js";

8+

import {

9+

captureEnv,

10+

deleteTestEnvValue,

11+

setTestEnvValue,

12+

withEnvAsync,

13+

} from "../../test-utils/env.js";

914

import { withTempSecretFiles } from "../../test-utils/secret-file-fixture.js";

1015

import { createCliRuntimeCapture } from "../test-runtime-capture.js";

1116

import { installGatewayRunRuntimeHooks } from "./runtime-hooks.js";

@@ -299,7 +304,7 @@ describe("gateway run option collisions", () => {

299304

beforeEach(() => {

300305

delete process.env.OPENCLAW_SERVICE_MARKER;

301306

delete process.env.OPENCLAW_SERVICE_KIND;

302-

delete process.env[GATEWAY_SERVICE_RUNTIME_PID_ENV];

307+

deleteTestEnvValue(GATEWAY_SERVICE_RUNTIME_PID_ENV);

303308

resetRuntimeCapture();

304309

configState.cfg = {};

305310

configState.snapshot = { config: {}, exists: false, sourceConfig: {}, valid: true };

@@ -1035,7 +1040,9 @@ describe("gateway run option collisions", () => {

10351040

loadGlobalRuntimeDotEnvFiles.mockImplementation(() => {

10361041

process.env.OPENCLAW_GATEWAY_TOKEN ??= "trusted-token";

10371042

process.env.OPENCLAW_PROFILE ??= "dev";

1038-

process.env.OPENCLAW_WORKSPACE_DIR ??= "/tmp/openclaw-reset-workspace";

1043+

if (process.env.OPENCLAW_WORKSPACE_DIR === undefined) {

1044+

setTestEnvValue("OPENCLAW_WORKSPACE_DIR", "/tmp/openclaw-reset-workspace");

1045+

}

10391046

});

1040104710411048

await prepareGatewayReset();

@@ -1059,7 +1066,7 @@ describe("gateway run option collisions", () => {

10591066

};

10601067

await prepareGatewayReset();

10611068

loadGlobalRuntimeDotEnvFiles.mockImplementation(() => {

1062-

process.env.OPENCLAW_STATE_DIR = "/tmp/openclaw-reset-retargeted";

1069+

setTestEnvValue("OPENCLAW_STATE_DIR", "/tmp/openclaw-reset-retargeted");

10631070

return {

10641071

gatewayEnvAppliedKeys: [],

10651072

stateEnvAppliedKeys: ["OPENCLAW_STATE_DIR"],

@@ -1091,7 +1098,7 @@ describe("gateway run option collisions", () => {

10911098

])("blocks trusted dotenv selector drift for %s after startup mutations", async (selector) => {

10921099

await withEnvAsync({ [selector]: "/tmp/openclaw-reset-value" }, async () => {

10931100

loadGlobalRuntimeDotEnvFiles.mockImplementation(() => {

1094-

process.env[selector] = "/tmp/openclaw-reset-retargeted";

1101+

setTestEnvValue(selector, "/tmp/openclaw-reset-retargeted");

10951102

});

10961103

const { reloadTrustedGatewayRunEnvironment } = await import("./pre-bootstrap.js");

10971104