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

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | 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
test: scope chat cli home fixture · openclaw/openclaw@bf2...
shakkernerd · 2026-06-24 · via Recent Commits to openclaw:main

@@ -9,6 +9,7 @@ import type { InternalGetReplyOptions } from "../auto-reply/reply/get-reply.type

99

import { clearConfigCache } from "../config/config.js";

1010

import type { AgentModelConfig } from "../config/types.agents-shared.js";

1111

import { createDeferred } from "../test-utils/deferred.js";

12+

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

1213

import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../utils/message-channel.js";

1314

import { setMaxChatHistoryMessagesBytesForTest } from "./server-constants.js";

1415

import type { GatewayRequestContext, RespondFn } from "./server-methods/shared-types.js";

@@ -1992,7 +1993,7 @@ describe("gateway server chat", () => {

19921993

await connectOk(ws);

19931994

const sessionDir = await createSessionDir();

19941995

const sessionId = "sess-claude-cli-backfill";

1995-

const originalHome = process.env.HOME;

1996+

const homeEnvSnapshot = captureEnv(["HOME"]);

19961997

const homeDir = path.join(sessionDir, "home");

19971998

const cliSessionId = "5b8b202c-f6bb-4046-9475-d2f15fd07530";

19981999

const claudeProjectsDir = path.join(homeDir, ".claude", "projects", "workspace");

@@ -2030,7 +2031,7 @@ describe("gateway server chat", () => {

20302031

].join("\n"),

20312032

"utf-8",

20322033

);

2033-

process.env.HOME = homeDir;

2034+

setTestEnvValue("HOME", homeDir);

20342035

try {

20352036

await writeSessionStore({

20362037

entries: {

@@ -2058,11 +2059,7 @@ describe("gateway server chat", () => {

20582059

expect(assistantMessage.role).toBe("assistant");

20592060

expect(assistantMessage.provider).toBe("claude-cli");

20602061

} finally {

2061-

if (originalHome === undefined) {

2062-

delete process.env.HOME;

2063-

} else {

2064-

process.env.HOME = originalHome;

2065-

}

2062+

homeEnvSnapshot.restore();

20662063

}

20672064

});

20682065

});