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

推荐订阅源

H
Help Net Security
月光博客
月光博客
IT之家
IT之家
B
Blog RSS Feed
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - Franky
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
博客园_首页
B
Blog
V
V2EX
腾讯CDC
Vercel News
Vercel News
量子位
Microsoft Security Blog
Microsoft Security 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: retain qmd test environment state · openclaw/opencla...
shakkernerd · 2026-06-26 · via Recent Commits to openclaw:main

@@ -211,6 +211,19 @@ const spawnMock = mockedSpawn as unknown as Mock;

211211

const originalPath = process.env.PATH;

212212

const originalPathExt = process.env.PATHEXT;

213213

const originalWindowsPath = process.env.Path;

214+

const originalQmdStateDir = process.env.OPENCLAW_STATE_DIR;

215+216+

function setQmdStateDir(stateDir: string): void {

217+

Reflect.set(process.env, "OPENCLAW_STATE_DIR", stateDir);

218+

}

219+220+

function restoreQmdStateDir(): void {

221+

if (originalQmdStateDir === undefined) {

222+

Reflect.deleteProperty(process.env, "OPENCLAW_STATE_DIR");

223+

} else {

224+

Reflect.set(process.env, "OPENCLAW_STATE_DIR", originalQmdStateDir);

225+

}

226+

}

214227215228

describe("QmdMemoryManager", () => {

216229

let fixtureRoot: string;

@@ -340,7 +353,7 @@ describe("QmdMemoryManager", () => {

340353

// Only workspace must exist for configured collection paths; state paths are

341354

// created lazily by manager code when needed.

342355

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

343-

process.env.OPENCLAW_STATE_DIR = stateDir;

356+

setQmdStateDir(stateDir);

344357

// Keep the default Windows path unresolved for most tests so spawn mocks can

345358

// match the logical package command. Tests that verify wrapper resolution

346359

// install explicit shim fixtures inline.

@@ -387,7 +400,7 @@ describe("QmdMemoryManager", () => {

387400

embedStartupJitterSpy?.mockRestore();

388401

embedStartupJitterSpy = null;

389402

vi.useRealTimers();

390-

delete process.env.OPENCLAW_STATE_DIR;

403+

restoreQmdStateDir();

391404

if (originalPath === undefined) {

392405

delete process.env.PATH;

393406

} else {

@@ -6450,7 +6463,7 @@ describe("QmdMemoryManager", () => {

64506463

// directory instead of the real ~/.cache.

64516464

savedXdgCacheHome = process.env.XDG_CACHE_HOME;

64526465

const fakeCacheHome = path.join(tmpRoot, "fake-cache");

6453-

process.env.XDG_CACHE_HOME = fakeCacheHome;

6466+

Reflect.set(process.env, "XDG_CACHE_HOME", fakeCacheHome);

6454646764556468

defaultModelsDir = path.join(fakeCacheHome, "qmd", "models");

64566469

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

@@ -6461,9 +6474,9 @@ describe("QmdMemoryManager", () => {

6461647464626475

afterEach(() => {

64636476

if (savedXdgCacheHome === undefined) {

6464-

delete process.env.XDG_CACHE_HOME;

6477+

Reflect.deleteProperty(process.env, "XDG_CACHE_HOME");

64656478

} else {

6466-

process.env.XDG_CACHE_HOME = savedXdgCacheHome;

6479+

Reflect.set(process.env, "XDG_CACHE_HOME", savedXdgCacheHome);

64676480

}

64686481

});

64696482