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

推荐订阅源

雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
D
Docker
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
M
MIT News - Artificial intelligence
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
U
Unit 42

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: log gateway model mode defaults · openclaw/openclaw@...
steipete · 2026-05-05 · via Recent Commits to openclaw:main

@@ -1,6 +1,12 @@

11

import chalk from "chalk";

2+

import { resolveDefaultAgentId, resolveAgentConfig } from "../agents/agent-scope.js";

23

import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "../agents/defaults.js";

3-

import { resolveConfiguredModelRef } from "../agents/model-selection.js";

4+

import { resolveFastModeState } from "../agents/fast-mode.js";

5+

import {

6+

resolveConfiguredModelRef,

7+

resolveReasoningDefault,

8+

resolveThinkingDefault,

9+

} from "../agents/model-selection.js";

410

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

511

import { getResolvedLoggerSettings } from "../logging.js";

612

import { collectEnabledInsecureOrDangerousFlags } from "../security/dangerous-config-flags.js";

@@ -22,8 +28,13 @@ export function logGatewayStartup(params: {

2228

defaultModel: DEFAULT_MODEL,

2329

});

2430

const modelRef = `${agentProvider}/${agentModel}`;

25-

params.log.info(`agent model: ${modelRef}`, {

26-

consoleMessage: `agent model: ${chalk.whiteBright(modelRef)}`,

31+

const modelDetails = formatAgentModelStartupDetails({

32+

cfg: params.cfg,

33+

provider: agentProvider,

34+

model: agentModel,

35+

});

36+

params.log.info(`agent model: ${modelRef} (${modelDetails})`, {

37+

consoleMessage: `agent model: ${chalk.whiteBright(modelRef)} (${modelDetails})`,

2738

});

2839

const startupDurationMs =

2940

typeof params.startupStartedAt === "number" ? Date.now() - params.startupStartedAt : null;

@@ -46,6 +57,37 @@ export function logGatewayStartup(params: {

4657

}

4758

}

485960+

export function formatAgentModelStartupDetails(params: {

61+

cfg: OpenClawConfig;

62+

provider: string;

63+

model: string;

64+

}): string {

65+

const defaultAgentId = resolveDefaultAgentId(params.cfg);

66+

const defaultAgentConfig = resolveAgentConfig(params.cfg, defaultAgentId);

67+

const thinking =

68+

defaultAgentConfig?.thinkingDefault ??

69+

resolveThinkingDefault({

70+

cfg: params.cfg,

71+

provider: params.provider,

72+

model: params.model,

73+

});

74+

const reasoning =

75+

defaultAgentConfig?.reasoningDefault ??

76+

params.cfg.agents?.defaults?.reasoningDefault ??

77+

resolveReasoningDefault({

78+

provider: params.provider,

79+

model: params.model,

80+

});

81+

const fast = resolveFastModeState({

82+

cfg: params.cfg,

83+

provider: params.provider,

84+

model: params.model,

85+

agentId: defaultAgentId,

86+

});

87+88+

return `thinking=${thinking}, reasoning=${reasoning}, fast=${fast.enabled ? "on" : "off"}`;

89+

}

90+4991

function formatReadyDetails(

5092

loadedPluginIds: readonly string[],

5193

startupDurationLabel: string | null,