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

推荐订阅源

IT之家
IT之家
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
爱范儿
爱范儿
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
Y
Y Combinator Blog
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
M
MIT News - Artificial intelligence
博客园 - Franky
V
Visual Studio Blog
I
InfoQ
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
博客园 - 司徒正美
L
LangChain 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: pass directories to provider stream wrappers (#67843...
neilofneils4 · 2026-04-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -17,6 +17,7 @@ Docs: https://docs.openclaw.ai

1717

### Fixes

1818
1919

- Control UI/Agents: redact tool-call args, partial/final results, derived exec output, and configured custom secret patterns before streaming tool events to the Control UI, so tool output cannot expose provider or channel credentials. Fixes #72283. (#72319) Thanks @volcano303 and @BunsDev.

20+

- Providers/Codex: pass agent and workspace directories into provider stream wrappers so Codex native `web_search` activation can evaluate the correct auth context, and smoke-test the built status-message runtime by resolving the emitted bundle name. Carries forward #67843; refs #65909. Thanks @neilofneils404.

2021

- Models/fallbacks: treat user-selected session models as exact choices, so `/model ollama/...` and model-picker switches fail visibly when the selected provider is unreachable instead of answering from an unrelated configured fallback. Fixes #73023. Thanks @pavelyortho-cyber.

2122

- CLI/model probes: fail local `infer model run` probes when the provider returns no text output, so unreachable local providers and empty completions no longer look like successful smoke tests. Refs #73023. Thanks @pavelyortho-cyber.

2223

- CLI/Ollama: run local `infer model run` through the lean provider completion path and skip global model discovery for one-shot local probes, so Ollama smoke tests no longer pay full chat-agent/tool startup cost or hang before the native `/api/chat` request. Fixes #72851. Thanks @TotalRes2020.

Original file line numberDiff line numberDiff line change

@@ -1568,6 +1568,7 @@

15681568

"test:auth:compat": "node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway.config.ts src/gateway/server.auth.compat-baseline.test.ts src/gateway/client.test.ts src/gateway/reconnect-gating.test.ts src/gateway/protocol/connect-error-details.test.ts",

15691569

"test:build:bundled-runtime-deps": "node scripts/test-built-bundled-runtime-deps.mjs",

15701570

"test:build:singleton": "node scripts/test-built-plugin-singleton.mjs",

1571+

"test:build:status-message-runtime": "node scripts/test-built-status-message-runtime.mjs",

15711572

"test:bundled": "node scripts/run-vitest.mjs run --config test/vitest/vitest.bundled.config.ts",

15721573

"test:changed": "node scripts/test-projects.mjs --changed origin/main",

15731574

"test:changed:max": "OPENCLAW_VITEST_MAX_WORKERS=8 node scripts/test-projects.mjs --changed origin/main",

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,47 @@

1+

import assert from "node:assert/strict";

2+

import fs from "node:fs";

3+

import path from "node:path";

4+

import { pathToFileURL } from "node:url";

5+

import { parsePackageRootArg } from "./lib/package-root-args.mjs";

6+
7+

const STATUS_MESSAGE_RUNTIME_RE = /^status-message\.runtime(?:-[A-Za-z0-9_-]+)?\.js$/u;

8+
9+

const { packageRoot } = parsePackageRootArg(

10+

process.argv.slice(2),

11+

"OPENCLAW_STATUS_MESSAGE_RUNTIME_ROOT",

12+

);

13+
14+

function findBuiltStatusMessageRuntimePath(distDir) {

15+

const candidates = fs

16+

.readdirSync(distDir, { withFileTypes: true })

17+

.filter((entry) => entry.isFile() && STATUS_MESSAGE_RUNTIME_RE.test(entry.name))

18+

.map((entry) => entry.name)

19+

.toSorted((left, right) => {

20+

const leftHasHash = left !== "status-message.runtime.js";

21+

const rightHasHash = right !== "status-message.runtime.js";

22+

if (leftHasHash !== rightHasHash) {

23+

return leftHasHash ? -1 : 1;

24+

}

25+

return left.localeCompare(right);

26+

});

27+
28+

assert.ok(candidates.length > 0, `missing built status-message runtime bundle under ${distDir}`);

29+
30+

return path.join(distDir, candidates[0]);

31+

}

32+
33+

const runtimePath = findBuiltStatusMessageRuntimePath(path.join(packageRoot, "dist"));

34+

const runtimeModule = await import(pathToFileURL(runtimePath).href);

35+
36+

assert.equal(

37+

typeof runtimeModule.loadStatusMessageRuntimeModule,

38+

"function",

39+

`built status-message runtime did not export loadStatusMessageRuntimeModule: ${runtimePath}`,

40+

);

41+
42+

const statusModule = await runtimeModule.loadStatusMessageRuntimeModule();

43+

assert.equal(

44+

typeof statusModule.buildStatusMessage,

45+

"function",

46+

"status-message runtime did not load buildStatusMessage",

47+

);

Original file line numberDiff line numberDiff line change

@@ -479,6 +479,40 @@ describe("applyExtraParamsToAgent", () => {

479479

};

480480

}

481481
482+

it("passes agentDir and workspaceDir to provider stream wrappers", () => {

483+

let capturedContext: WrapProviderStreamFnParams["context"] | undefined;

484+

extraParamsTesting.setProviderRuntimeDepsForTest({

485+

prepareProviderExtraParams: () => undefined,

486+

wrapProviderStreamFn: (params) => {

487+

capturedContext = params.context;

488+

return params.context.streamFn;

489+

},

490+

});

491+
492+

const agent = { streamFn: (() => ({}) as ReturnType<StreamFn>) as StreamFn };

493+

const model = {

494+

api: "openai-codex-responses",

495+

provider: "openai-codex",

496+

id: "gpt-5.4",

497+

} as Model<"openai-codex-responses">;

498+
499+

applyExtraParamsToAgent(

500+

agent,

501+

undefined,

502+

"openai-codex",

503+

"gpt-5.4",

504+

undefined,

505+

"high",

506+

"cass",

507+

"/tmp/openclaw-workspace",

508+

model,

509+

"/tmp/openclaw-agent",

510+

);

511+
512+

expect(capturedContext?.agentDir).toBe("/tmp/openclaw-agent");

513+

expect(capturedContext?.workspaceDir).toBe("/tmp/openclaw-workspace");

514+

});

515+
482516

function runResponsesPayloadMutationCase(params: {

483517

applyProvider: string;

484518

applyModelId: string;

Original file line numberDiff line numberDiff line change

@@ -682,6 +682,8 @@ export function applyExtraParamsToAgent(

682682

config: cfg,

683683

context: {

684684

config: cfg,

685+

agentDir,

686+

workspaceDir,

685687

provider,

686688

modelId,

687689

extraParams: effectiveExtraParams,