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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
美团技术团队
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
有赞技术团队
有赞技术团队
GbyAI
GbyAI
宝玉的分享
宝玉的分享
腾讯CDC
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
月光博客
月光博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | 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(agents): initialize context engines before CLI compac...
2026-05-10 · via Recent Commits to openclaw:main

@@ -3,6 +3,7 @@ import { SessionManager } from "@mariozechner/pi-coding-agent";

33

import type { SessionEntry } from "../../config/sessions/types.js";

44

import type { AgentCompactionMode } from "../../config/types.agent-defaults.js";

55

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

6+

import { ensureContextEnginesInitialized as ensureContextEnginesInitializedImpl } from "../../context-engine/init.js";

67

import { resolveContextEngine as resolveContextEngineImpl } from "../../context-engine/registry.js";

78

import type { ContextEngine } from "../../context-engine/types.js";

89

import { createSubsystemLogger } from "../../logging/subsystem.js";

@@ -32,6 +33,7 @@ type SettingsManagerLike = {

3233

};

3334

type CliCompactionDeps = {

3435

openSessionManager: (sessionFile: string) => SessionManagerLike;

36+

ensureContextEnginesInitialized: () => void;

3537

resolveContextEngine: (cfg: OpenClawConfig) => Promise<ContextEngine>;

3638

createPreparedEmbeddedPiSettingsManager: (params: {

3739

cwd: string;

@@ -54,6 +56,7 @@ const log = createSubsystemLogger("agents/cli-compaction");

54565557

const cliCompactionDeps: CliCompactionDeps = {

5658

openSessionManager: (sessionFile: string) => SessionManager.open(sessionFile),

59+

ensureContextEnginesInitialized: ensureContextEnginesInitializedImpl,

5760

resolveContextEngine: resolveContextEngineImpl,

5861

createPreparedEmbeddedPiSettingsManager: createPreparedEmbeddedPiSettingsManagerImpl,

5962

applyPiAutoCompactionGuard: applyPiAutoCompactionGuardImpl,

@@ -70,6 +73,7 @@ export function setCliCompactionTestDeps(overrides: Partial<typeof cliCompaction

7073

export function resetCliCompactionTestDeps(): void {

7174

Object.assign(cliCompactionDeps, {

7275

openSessionManager: (sessionFile: string) => SessionManager.open(sessionFile),

76+

ensureContextEnginesInitialized: ensureContextEnginesInitializedImpl,

7377

resolveContextEngine: resolveContextEngineImpl,

7478

createPreparedEmbeddedPiSettingsManager: createPreparedEmbeddedPiSettingsManagerImpl,

7579

applyPiAutoCompactionGuard: applyPiAutoCompactionGuardImpl,

@@ -201,6 +205,7 @@ export async function runCliTurnCompactionLifecycle(params: {

201205

return params.sessionEntry;

202206

}

203207208+

cliCompactionDeps.ensureContextEnginesInitialized();

204209

const contextEngine = await cliCompactionDeps.resolveContextEngine(params.cfg);

205210

const sessionManager = cliCompactionDeps.openSessionManager(sessionFile);

206211

const settingsManager = await cliCompactionDeps.createPreparedEmbeddedPiSettingsManager({