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

推荐订阅源

I
InfoQ
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
GbyAI
GbyAI
Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
D
DataBreaches.Net
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
Microsoft Security Blog
Microsoft Security Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
月光博客
月光博客
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers 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: share profile gateway env restoration · openclaw/ope...
shakkernerd · 2026-06-25 · via Recent Commits to openclaw:main

@@ -59,6 +59,7 @@ import type { ProviderThinkingModelCompat } from "../plugins/provider-thinking.t

5959

import { DEFAULT_AGENT_ID } from "../routing/session-key.js";

6060

import { stripAssistantInternalScaffolding } from "../shared/text/assistant-visible-text.js";

6161

import { findFinalTagMatches, stripFinalTags } from "../shared/text/final-tags.js";

62+

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

6263

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

6364

import { GatewayClient } from "./client.js";

6465

import {

@@ -570,9 +571,9 @@ function restoreProductionEnvForLiveRun(previous: {

570571571572

function restoreOptionalEnv(key: string, value: string | undefined): void {

572573

if (value === undefined) {

573-

delete process.env[key];

574+

deleteTestEnvValue(key);

574575

} else {

575-

process.env[key] = value;

576+

setTestEnvValue(key, value);

576577

}

577578

}

578579

@@ -1083,9 +1084,9 @@ describe("resolveGatewayLiveMaxModels", () => {

10831084

const originalSharedMax = process.env.OPENCLAW_LIVE_MAX_MODELS;

10841085

function restoreEnvValue(name: string, value: string | undefined): void {

10851086

if (value === undefined) {

1086-

delete process.env[name];

1087+

deleteTestEnvValue(name);

10871088

} else {

1088-

process.env[name] = value;

1089+

setTestEnvValue(name, value);

10891090

}

10901091

}

10911092

@@ -2881,7 +2882,7 @@ async function runGatewayModelSuite(params: GatewayModelSuiteParams) {

28812882

const tempStateDir: string | undefined = await fs.mkdtemp(

28822883

path.join(os.tmpdir(), "openclaw-live-state-"),

28832884

);

2884-

process.env.OPENCLAW_STATE_DIR = tempStateDir;

2885+

setTestEnvValue("OPENCLAW_STATE_DIR", tempStateDir);

28852886

const tempAgentDir: string | undefined = path.join(

28862887

tempStateDir,

28872888

"agents",

@@ -2893,7 +2894,7 @@ async function runGatewayModelSuite(params: GatewayModelSuiteParams) {

28932894

if (tempSessionAgentDir !== tempAgentDir) {

28942895

saveAuthProfileStore(sanitizedStore, tempSessionAgentDir);

28952896

}

2896-

process.env.OPENCLAW_AGENT_DIR = tempAgentDir;

2897+

setTestEnvValue("OPENCLAW_AGENT_DIR", tempAgentDir);

2897289828982899

const workspaceDir = resolveAgentWorkspaceDir(params.cfg, agentId);

28992900

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

@@ -2928,7 +2929,7 @@ async function runGatewayModelSuite(params: GatewayModelSuiteParams) {

29282929

const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-live-"));

29292930

const tempConfigPath = path.join(tempDir, "openclaw.json");

29302931

await fs.writeFile(tempConfigPath, `${JSON.stringify(nextCfg, null, 2)}\n`);

2931-

process.env.OPENCLAW_CONFIG_PATH = tempConfigPath;

2932+

setTestEnvValue("OPENCLAW_CONFIG_PATH", tempConfigPath);

2932293329332934

const liveProviders = nextCfg.models?.providers;

29342935

if (liveProviders && Object.keys(liveProviders).length > 0) {