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

推荐订阅源

N
Netflix TechBlog - Medium
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
博客园 - Franky
F
Fortinet All Blogs
D
Docker
博客园 - 司徒正美
腾讯CDC
Recent Announcements
Recent Announcements
The Cloudflare Blog
B
Blog RSS Feed
GbyAI
GbyAI
T
Tailwind CSS Blog
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志

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
refactor(core): inline one-use helper modules · openclaw/...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main

File tree

    • agents/embedded-agent-runner/run

Original file line numberDiff line numberDiff line change

@@ -7,15 +7,14 @@ import {

77

} from "openclaw/plugin-sdk/llm";

88

import { afterEach, describe, expect, it, vi } from "vitest";

99

import type { OpenClawConfig } from "../../../config/config.js";

10-

import { DEFAULT_LLM_IDLE_TIMEOUT_SECONDS } from "../../../config/agent-timeout-defaults.js";

1110

import { notifyLlmRequestActivity } from "../../../shared/llm-request-activity.js";

1211

import type { StreamFn } from "../../runtime/index.js";

1312

import {

1413

resolveLlmIdleTimeoutMs,

1514

streamWithIdleTimeout,

1615

} from "./llm-idle-timeout.js";

1716
18-

const DEFAULT_LLM_IDLE_TIMEOUT_MS = DEFAULT_LLM_IDLE_TIMEOUT_SECONDS * 1000;

17+

const DEFAULT_LLM_IDLE_TIMEOUT_MS = 120_000;

1918
2019

describe("resolveLlmIdleTimeoutMs", () => {

2120

it("returns default when config is undefined", () => {

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,6 @@ import {

66

clampTimerTimeoutMs,

77

MAX_TIMER_TIMEOUT_MS,

88

} from "@openclaw/normalization-core/number-coercion";

9-

import { DEFAULT_LLM_IDLE_TIMEOUT_SECONDS } from "../../../config/agent-timeout-defaults.js";

109

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

1110

import { onLlmRequestActivity } from "../../../shared/llm-request-activity.js";

1211

import type { StreamFn } from "../../runtime/index.js";

@@ -17,7 +16,7 @@ import type { EmbeddedRunTrigger } from "./params.js";

1716

/**

1817

* Default idle timeout for LLM streaming responses in milliseconds.

1918

*/

20-

const DEFAULT_LLM_IDLE_TIMEOUT_MS = DEFAULT_LLM_IDLE_TIMEOUT_SECONDS * 1000;

19+

const DEFAULT_LLM_IDLE_TIMEOUT_MS = 120_000;

2120
2221

/**

2322

* Detects loopback / private-network / `.local` base URLs. Local providers

Original file line numberDiff line numberDiff line change

@@ -2,7 +2,6 @@

22

import { afterEach, describe, expect, it } from "vitest";

33

import { testing as cliBackendsTesting } from "../agents/cli-backends.js";

44

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

5-

import { formatFastModeLabel } from "./status-labels.js";

65

import { buildStatusMessage } from "./status-message.js";

76
87

function statusTestModel(id: string, name: string, contextWindow: number): ModelDefinitionConfig {

@@ -21,16 +20,6 @@ afterEach(() => {

2120

cliBackendsTesting.resetDepsForTest();

2221

});

2322
24-

describe("formatFastModeLabel", () => {

25-

it("shows fast mode when enabled", () => {

26-

expect(formatFastModeLabel(true)).toBe("Fast: on");

27-

});

28-
29-

it("shows fast mode when disabled", () => {

30-

expect(formatFastModeLabel(false)).toBe("Fast: off");

31-

});

32-

});

33-
3423

describe("buildStatusMessage context window", () => {

3524

it("ignores stale runtime context after a manual session model switch", () => {

3625

const text = buildStatusMessage({

Original file line numberDiff line numberDiff line change

@@ -62,7 +62,6 @@ import {

6262

import { VERSION } from "../version.js";

6363

import { resolveAgentRuntimeLabel } from "./agent-runtime-label.js";

6464

import { resolveActiveFallbackState } from "./fallback-notice-state.js";

65-

import { formatFastModeLabel } from "./status-labels.js";

6665
6766

type AgentDefaults = NonNullable<NonNullable<OpenClawConfig["agents"]>["defaults"]>;

6867

type AgentConfig = Partial<AgentDefaults> & {

@@ -957,7 +956,7 @@ export function buildStatusMessage(args: StatusArgs): string {

957956

`Execution: ${execution.label}`,

958957

`Runtime: ${agentRuntimeLabel}`,

959958

`Think: ${thinkLevel}`,

960-

formatFastModeLabel(fastMode),

959+

`Fast: ${fastMode ? "on" : "off"}`,

961960

textVerbosity ? `Text: ${textVerbosity}` : null,

962961

verboseLabel,

963962

traceLabel,