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

推荐订阅源

爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
U
Unit 42
B
Blog RSS Feed
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
腾讯CDC
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
博客园 - 聂微东
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
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
chore(deadcode): inline constant helper stubs · openclaw/...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -171,7 +171,7 @@ export class SqliteBackedMatrixSyncStore extends MemoryStore {

171171
172172

constructor(private readonly storageRootDir: string) {

173173

super();

174-

this.stateKey = resolveSyncCacheStateKey(storageRootDir);

174+

this.stateKey = SYNC_CACHE_STATE_KEY;

175175
176176

let restoredSavedSync: ISyncData | null = null;

177177

let restoredClientOptions: IStoredClientOpts | undefined;

@@ -426,10 +426,6 @@ function openMatrixSyncCacheStore(

426426

);

427427

}

428428
429-

function resolveSyncCacheStateKey(_storageRootDir: string): string {

430-

return SYNC_CACHE_STATE_KEY;

431-

}

432-
433429

function metaKey(stateKey: string): string {

434430

return `${stateKey}:meta`;

435431

}

@@ -557,7 +553,7 @@ export async function hasMatrixSyncCacheStateInStore(params: {

557553

storageRootDir: string;

558554

store: Pick<PluginStateKeyedStore<MatrixSyncCacheRecord>, "lookup">;

559555

}): Promise<boolean> {

560-

const stateKey = resolveSyncCacheStateKey(params.storageRootDir);

556+

const stateKey = SYNC_CACHE_STATE_KEY;

561557

const meta = await params.store.lookup(metaKey(stateKey));

562558

if (!isSyncCacheMeta(meta) || meta.chunkCount <= 0) {

563559

return false;

@@ -586,7 +582,7 @@ export async function writeMatrixSyncCacheStateToStore(params: {

586582

payload: PersistedMatrixSyncStore;

587583

store: MatrixSyncCacheAsyncStore;

588584

}): Promise<void> {

589-

const stateKey = resolveSyncCacheStateKey(params.storageRootDir);

585+

const stateKey = SYNC_CACHE_STATE_KEY;

590586

const rows = buildSyncCacheRows(stateKey, params.payload);

591587

for (const row of rows.chunks) {

592588

await params.store.register(row.key, row.value);

Original file line numberDiff line numberDiff line change

@@ -151,14 +151,8 @@ function formatFallbackWriteFailure(err: unknown): string {

151151

return "unknown error";

152152

}

153153
154-

// Raw snippets and promotions are pre-processing memory staging fragments

155-

// (session metadata, conversation summaries, operational logs). They must never

156-

// be persisted to the human-readable dream diary. When narrative generation

157-

// fails, always fall back to a generic placeholder so no staging content leaks

158-

// into DREAMS.md.

159-

function buildRequestScopedFallbackNarrative(_data: NarrativePhaseData): string {

160-

return "A memory trace surfaced, but details were unavailable in this run.";

161-

}

154+

const REQUEST_SCOPED_FALLBACK_NARRATIVE =

155+

"A memory trace surfaced, but details were unavailable in this run.";

162156
163157

export async function appendFallbackNarrativeEntry(params: {

164158

workspaceDir: string;

@@ -171,7 +165,9 @@ export async function appendFallbackNarrativeEntry(params: {

171165

try {

172166

await appendNarrativeEntry({

173167

workspaceDir: params.workspaceDir,

174-

narrative: buildRequestScopedFallbackNarrative(params.data),

168+

// Raw snippets and promotions are pre-processing memory staging fragments.

169+

// Keep fallback diary text generic so DREAMS.md never leaks staging content.

170+

narrative: REQUEST_SCOPED_FALLBACK_NARRATIVE,

175171

nowMs: params.nowMs,

176172

timezone: params.timezone,

177173

});

Original file line numberDiff line numberDiff line change

@@ -125,18 +125,6 @@ function formatFrontmatterValue(value: string): string {

125125

return value;

126126

}

127127
128-

/**

129-

* Mark an AST as "dirty" — useful for callers that mutate the AST

130-

* structurally and want emitMd() to re-render rather than round-trip.

131-

*

132-

* Currently a no-op flag — emitMd() decides based on `opts.mode`. Kept

133-

* as an extension point for a future invariant where the AST tracks

134-

* its own dirty state.

135-

*/

136-

export function markDirty(_ast: MdAst): void {

137-

// intentionally empty

138-

}

139-
140128

// Re-export the frontmatter type for convenience so tests don't need

141129

// to import from ast.ts.

142130

export type { FrontmatterEntry };

Original file line numberDiff line numberDiff line change

@@ -73,7 +73,7 @@ export type { JsonlParseResult } from "./jsonl/parse.js";

7373

export type { YamlParseResult } from "./yaml/parse.js";

7474
7575

export type { EmitOptions } from "./emit.js";

76-

export { emitMd, markDirty } from "./emit.js";

76+

export { emitMd } from "./emit.js";

7777

export type { JsoncEmitOptions } from "./jsonc/emit.js";

7878

export { emitJsonc } from "./jsonc/emit.js";

7979

export type { JsonlEmitOptions } from "./jsonl/emit.js";

Original file line numberDiff line numberDiff line change

@@ -62,10 +62,6 @@ export type AuthHealthSummary = {

6262
6363

export const DEFAULT_OAUTH_WARN_MS = 24 * 60 * 60 * 1000;

6464
65-

function resolveAuthProfileSource(_profileId: string): AuthProfileSource {

66-

return "store";

67-

}

68-
6965

/** Format a remaining-duration value for compact auth status displays. */

7066

export function formatRemainingShort(

7167

remainingMs?: number,

@@ -141,7 +137,7 @@ function buildProfileHealth(params: {

141137

allowKeychainPrompt,

142138

} = params;

143139

const label = resolveAuthProfileDisplayLabel({ cfg, store, profileId });

144-

const source = resolveAuthProfileSource(profileId);

140+

const source: AuthProfileSource = "store";

145141

const healthCredential = runtimeCredential ?? credential;

146142

const provider = normalizeProviderId(healthCredential.provider);

147143
Original file line numberDiff line numberDiff line change

@@ -7,11 +7,7 @@ import {

77

normalizeQueueMode,

88

} from "./normalize.js";

99

import { DEFAULT_QUEUE_CAP, DEFAULT_QUEUE_DEBOUNCE_MS, DEFAULT_QUEUE_DROP } from "./state.js";

10-

import type { QueueMode, QueueSettings, ResolveQueueSettingsParams } from "./types.js";

11-
12-

function defaultQueueModeForChannel(_channel?: string): QueueMode {

13-

return "steer";

14-

}

10+

import type { QueueSettings, ResolveQueueSettingsParams } from "./types.js";

1511
1612

/** Resolve per-channel debounce override from debounceMsByChannel map. */

1713

function resolveChannelDebounce(

@@ -37,7 +33,7 @@ export function resolveQueueSettings(params: ResolveQueueSettingsParams): QueueS

3733

normalizePersistedQueueMode(params.sessionEntry?.queueMode) ??

3834

normalizeQueueMode(providerModeRaw) ??

3935

normalizeQueueMode(queueCfg?.mode) ??

40-

defaultQueueModeForChannel(channelKey);

36+

"steer";

4137

const debounceRaw =

4238

params.inlineOptions?.debounceMs ??

4339

params.sessionEntry?.queueDebounceMs ??