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

推荐订阅源

D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
IT之家
IT之家
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research

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(sessions): remove session store rotation · openclaw/o...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -156,6 +156,11 @@ const legacyConfigMigrationForTest = vi.hoisted(() => {

156156

}

157157158158

migrateThreadBinding(next.session, changes, "session");

159+

const sessionMaintenance = asRecord(asRecord(next.session)?.maintenance);

160+

if (sessionMaintenance && "rotateBytes" in sessionMaintenance) {

161+

delete sessionMaintenance.rotateBytes;

162+

changes.push("Removed deprecated session.maintenance.rotateBytes.");

163+

}

159164

const channels = asRecord(next.channels);

160165

for (const [channelId, channelRaw] of Object.entries(channels ?? {})) {

161166

if (channelId === "defaults") {

@@ -333,6 +338,14 @@ vi.mock("../config/legacy.js", () => {

333338

'session.threadBindings.ttlHours is legacy; use session.threadBindings.idleHours. Run "openclaw doctor --fix".',

334339

);

335340

}

341+

const sessionMaintenance = asRecord(asRecord(root.session)?.maintenance);

342+

if (sessionMaintenance && "rotateBytes" in sessionMaintenance) {

343+

addIssue(

344+

issues,

345+

["session", "maintenance"],

346+

'session.maintenance.rotateBytes is deprecated and ignored; run "openclaw doctor --fix" to remove it.',

347+

);

348+

}

336349

const xSearch = asRecord(asRecord(asRecord(root.tools)?.web)?.x_search);

337350

if (xSearch && "apiKey" in xSearch) {

338351

addIssue(

@@ -1563,6 +1576,11 @@ describe("doctor config flow", () => {

15631576

bridge: { bind: "auto" },

15641577

gateway: { auth: { mode: "token", token: "ok", extra: true } },

15651578

agents: { list: [{ id: "pi" }] },

1579+

session: {

1580+

maintenance: {

1581+

rotateBytes: "10mb",

1582+

},

1583+

},

15661584

browser: {

15671585

relayBindHost: "0.0.0.0",

15681586

profiles: {

@@ -2304,6 +2322,9 @@ describe("doctor config flow", () => {

23042322

bind?: string;

23052323

};

23062324

session?: {

2325+

maintenance?: {

2326+

rotateBytes?: unknown;

2327+

};

23072328

threadBindings?: {

23082329

idleHours?: number;

23092330

ttlHours?: number;

@@ -2348,6 +2369,7 @@ describe("doctor config flow", () => {

23482369

every: "30m",

23492370

});

23502371

expect(cfg.gateway?.bind).toBe("lan");

2372+

expect(cfg.session?.maintenance?.rotateBytes).toBeUndefined();

23512373

expect(cfg.session?.threadBindings).toMatchObject({

23522374

idleHours: 24,

23532375

});

@@ -2414,6 +2436,9 @@ describe("doctor config flow", () => {

24142436

},

24152437

},

24162438

session: {

2439+

maintenance: {

2440+

rotateBytes: "10mb",

2441+

},

24172442

threadBindings: {

24182443

ttlHours: 24,

24192444

},

@@ -2454,6 +2479,8 @@ describe("doctor config flow", () => {

24542479

expect(legacyMessages).toContain("does not rewrite this shape automatically");

24552480

expect(legacyMessages).toContain("session.threadBindings.ttlHours");

24562481

expect(legacyMessages).toContain("session.threadBindings.idleHours");

2482+

expect(legacyMessages).toContain("session.maintenance.rotateBytes");

2483+

expect(legacyMessages).toContain("deprecated and ignored");

24572484

expect(legacyMessages).toContain("channels.<id>.threadBindings.ttlHours");

24582485

expect(legacyMessages).toContain("channels.<id>.threadBindings.idleHours");

24592486

expect(legacyMessages).toContain("talk:");