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

推荐订阅源

月光博客
月光博客
D
Docker
腾讯CDC
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
IT之家
IT之家
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】

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(auto-reply): remove unused thinking exports · op...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -199,7 +199,6 @@ vi.mock("@openclaw/acp-core/runtime/session-identifiers", () => ({

199199
200200

vi.mock("../auto-reply/thinking.js", () => ({

201201

formatThinkingLevels: () => "low, medium, high",

202-

formatXHighModelHint: () => "model-x",

203202

normalizeThinkLevel: (v?: string) => v || undefined,

204203

normalizeVerboseLevel: (v?: string) => v || undefined,

205204

isThinkingLevelSupported: (args: unknown) => state.isThinkingLevelSupportedMock(args),

Original file line numberDiff line numberDiff line change

@@ -23,9 +23,8 @@ export type VerboseLevel = "off" | "on" | "full";

2323

export type TraceLevel = "off" | "on" | "raw";

2424

export type NoticeLevel = "off" | "on" | "full";

2525

export type ElevatedLevel = "off" | "on" | "ask" | "full";

26-

export type ElevatedMode = "off" | "ask" | "full";

2726

export type ReasoningLevel = "off" | "on" | "stream";

28-

export type UsageDisplayLevel = "off" | "tokens" | "full";

27+

type UsageDisplayLevel = "off" | "tokens" | "full";

2928

/** Minimal model catalog entry needed to choose thinking defaults. */

3029

export type ThinkingCatalogEntry = {

3130

provider: string;

@@ -100,11 +99,6 @@ export function isSessionDefaultDirectiveValue(raw?: string | null): boolean {

10099

return ["default", "inherit", "inherited", "clear", "reset", "unpin"].includes(key);

101100

}

102101
103-

/** Human-readable hint for xhigh support in command menus and errors. */

104-

export function formatXHighModelHint(): string {

105-

return "provider models that advertise xhigh reasoning";

106-

}

107-
108102

/** Chooses the default thinking level for one provider/model catalog entry. */

109103

export function resolveThinkingDefaultForModel(params: {

110104

provider: string;

@@ -162,11 +156,6 @@ export function normalizeTraceLevel(raw?: string | null): TraceLevel | undefined

162156

return undefined;

163157

}

164158
165-

/** Normalizes notice visibility values. */

166-

export function normalizeNoticeLevel(raw?: string | null): NoticeLevel | undefined {

167-

return normalizeOnOffFullLevel(raw);

168-

}

169-
170159

/** Normalizes response usage display values. */

171160

export function normalizeUsageDisplay(raw?: string | null): UsageDisplayLevel | undefined {

172161

if (!raw) {

@@ -214,17 +203,6 @@ export function normalizeElevatedLevel(raw?: string | null): ElevatedLevel | und

214203

return undefined;

215204

}

216205
217-

/** Collapses elevated levels into runtime execution mode. */

218-

export function resolveElevatedMode(level?: ElevatedLevel | null): ElevatedMode {

219-

if (!level || level === "off") {

220-

return "off";

221-

}

222-

if (level === "full") {

223-

return "full";

224-

}

225-

return "ask";

226-

}

227-
228206

/** Normalizes reasoning visibility values. */

229207

export function normalizeReasoningLevel(raw?: string | null): ReasoningLevel | undefined {

230208

if (!raw) {

Original file line numberDiff line numberDiff line change

@@ -9,29 +9,24 @@ import {

99

} from "./thinking.shared.js";

1010

import type { ThinkLevel, ThinkingCatalogEntry } from "./thinking.shared.js";

1111

export {

12-

formatXHighModelHint,

1312

isSessionDefaultDirectiveValue,

1413

normalizeElevatedLevel,

1514

normalizeFastMode,

16-

normalizeNoticeLevel,

1715

normalizeReasoningLevel,

1816

normalizeTraceLevel,

1917

normalizeThinkLevel,

2018

normalizeUsageDisplay,

2119

normalizeVerboseLevel,

2220

resolveResponseUsageMode,

23-

resolveElevatedMode,

2421

} from "./thinking.shared.js";

2522

export type {

2623

ElevatedLevel,

27-

ElevatedMode,

2824

FastMode,

2925

NoticeLevel,

3026

ReasoningLevel,

3127

TraceLevel,

3228

ThinkLevel,

3329

ThinkingCatalogEntry,

34-

UsageDisplayLevel,

3530

VerboseLevel,

3631

} from "./thinking.shared.js";

3732

import {