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

推荐订阅源

F
Fox-IT International blog
Recent Announcements
Recent Announcements
D
Docker
IT之家
IT之家
B
Blog
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
量子位
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 司徒正美
李成银的技术随笔
美团技术团队
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
T
Tailwind CSS Blog
H
Help Net Security
Engineering at Meta
Engineering at Meta
小众软件
小众软件
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
M
Microsoft Research Blog - Microsoft Research
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog

Recent Commits to openclaw:main

fix: simplify testbox changed-check delegation · openclaw/openclaw@e20b8d7 fix(mac): require packaged app resources · openclaw/openclaw@198d0a5 test: update docker stats helper expectations · openclaw/openclaw@11512b1 fix(e2e): time out live Docker runs · openclaw/openclaw@d1f2eb0 fix(mac): remove unused codesign entitlements · openclaw/openclaw@e8cb2b5 fix(docker): time out setup image pulls · openclaw/openclaw@dcf0941 fix(mac): fail closed on missing staple app · openclaw/openclaw@da16a96 fix(qa-slack): preserve failure debug artifacts · openclaw/openclaw@4ebc13a fix(e2e): time out standalone Docker smokes · openclaw/openclaw@f1ceed9 fix(mac): clean codesign entitlement temps · openclaw/openclaw@68f877e fix(e2e): time out install smoke Docker copies · openclaw/openclaw@1c5b835 fix(mac): fail closed on dmg plist reads · openclaw/openclaw@7aedff8 fix(e2e): route gateway network client through Docker helper · openclaw/openclaw@f2ad94e fix(mac): fail closed on dist plist reads · openclaw/openclaw@8e110a2 test(codex): widen app-server wait timeout type fix(e2e): time out Docker image reuse probes docs: clarify compatibility defaults · openclaw/openclaw@4f1cd8e fix(e2e): route named container cleanup through helper · openclaw/openclaw@e295c86 fix(mac): fail closed on plist stamp errors · openclaw/openclaw@91080fd fix(e2e): route focused docker smokes through run helper · openclaw/openclaw@4838e70 fix(mattermost): tag typed text slash control commands · openclaw/openclaw@21aebd5 fix(e2e): route sampled docker runs through helpers fix(e2e): clean package docker artifacts on setup failure · openclaw/openclaw@90bcec9 ci(release): include performance run in validation manifest · openclaw/openclaw@0e73379 test(e2e): harden release media memory smoke · openclaw/openclaw@99032f0 fix(e2e): clean package onboarding artifacts · openclaw/openclaw@f63754b fix(e2e): honor Docker harness run timeouts · openclaw/openclaw@b34e1b3 fix(imessage): dedupe accounts sharing the local Messages source (#86… · openclaw/openclaw@9434228 fix(scripts): detect shell-wrapped changed gates fix(codex): preserve sandbox bootstrap path style · openclaw/openclaw@3f6b63a perf: skip canonical session migration parses · openclaw/openclaw@c5530c7 fix(e2e): clean skill install package mounts · openclaw/openclaw@d3bbfa1 fix(e2e): clean Codex plugin live artifacts · openclaw/openclaw@a5653c0 fix(e2e): clean sampled Docker logs on failure · openclaw/openclaw@b93cee4 refactor: migrate validators to TypeBox (#86639) · openclaw/openclaw@3548cff fix(e2e): clean package mount tarballs · openclaw/openclaw@b377618 fix(scripts): format auth expiries on macos · openclaw/openclaw@437a9e9 fix(e2e): clean functional Docker build inputs Fix iMessage image attachment roots (#86569) · openclaw/openclaw@2e17003 chore(release): refresh plugin sdk api baseline · openclaw/openclaw@918472a fix(e2e): fail on invalid test state payloads · openclaw/openclaw@4a1d772 ci(release): apply exact extension batch excludes fix(installer): reject invalid shell options ci(release): pass vitest batch options before roots ci(release): exclude codex app-server integration from plugin prerelease · openclaw/openclaw@a3cd90f fix(imessage): send group media via attachment command (#86770) · openclaw/openclaw@17f7ef5 test(e2e): assert release upgrade installs candidate · openclaw/openclaw@41eef4a ci(release): serialize plugin prerelease extension batch · openclaw/openclaw@a46556a fix(scripts): add docker e2e scheduler help · openclaw/openclaw@81f62a6 test(codex): wait for diagnostic event locally · openclaw/openclaw@083377a test(e2e): assert release plugin uninstall removes files · openclaw/openclaw@4b03e07 test(telegram): use platform temp path in bot harness · openclaw/openclaw@16d137d fix(imessage): seed direct DM history (#86706) · openclaw/openclaw@3452382 test(codex): complete diagnostic turn explicitly · openclaw/openclaw@11b1b7c test(scripts): make run-vitest test Windows-safe · openclaw/openclaw@5c3fb1f test: restore auth regression coverage · openclaw/openclaw@c04c03f fix(test): reject missing explicit vitest files · openclaw/openclaw@505aca9 test(plugins): canonicalize plugin install assertion paths · openclaw/openclaw@5174d97 fix(diagnostics): track model stream progress (#86757) · openclaw/openclaw@23e9bc8 Preserve runtime external auth snapshots (#85558) · openclaw/openclaw@711e963 fix(test): prepare macos runner tmpdir · openclaw/openclaw@7db4b3d test(agents): stabilize yielded exec timeout test · openclaw/openclaw@c14c043 test: stabilize media fallback and background timeout tests · openclaw/openclaw@3bb4be2 fix(whatsapp): warn once when group inbound dropped for missing chann… chore(release): refresh plugin sdk api baseline · openclaw/openclaw@e752f9b test(whatsapp): stabilize media format expectations · openclaw/openclaw@c43ed9e test(qqbot): make OPENCLAW_HOME media test Windows-safe · openclaw/openclaw@1e9b6b7 fix(test): forward installer smoke controls test: align image fast path expectations · openclaw/openclaw@21aefb8 test: align pnpm cache workflow assertion · openclaw/openclaw@c4f0682 test: enforce per-test ci threshold · openclaw/openclaw@4118a32 ci(mantis): pass crabbox capacity regions · openclaw/openclaw@4fdf617 ci: disable pnpm action cache on Windows · openclaw/openclaw@bc3d6ba fix(agents): skip wildcard catalog metadata refs (#86524) fix(test): bootstrap macos script stdin test(codex): avoid app-server diagnostic notification race fix(embedded-runner): preserve provider errors on cleanup takeover (#… · openclaw/openclaw@7fbca96 fix(agents): handle preflight compaction no-op budgets (#86709) · openclaw/openclaw@bcde7b1 fix: make QQ Bot media paths respect `OPENCLAW_HOME` configuration (#… · openclaw/openclaw@0d23c3b fix(tooling): skip gauntlet declaration prebuild fix(control-ui): support raw edits from editable config (#86726) · openclaw/openclaw@c9d0464 revert: iMessage group media attachment command (#86734) · openclaw/openclaw@5a33378 fix(release): stabilize beta validation after rebase · openclaw/openclaw@609d70d fix(test): measure kitchen sink gateway children · openclaw/openclaw@4738d0a fix(whatsapp): restore ack emoji identity fallback (#86697) · openclaw/openclaw@34d862d fix(imessage): send group media via attachment command · openclaw/openclaw@f322732 fix(test): harden plugin gauntlet proof · openclaw/openclaw@eab8d29 fix(release): stabilize beta validation after main rebase · openclaw/openclaw@9301598 refactor: use Rastermill for image processing (#86621) perf(discord): use libopus-wasm for voice opus fix(build): pin synthetic auth runtime dist entry (#86714) · openclaw/openclaw@3d06594 fix(plugin-sdk): preserve string-const unions as flat enum for deepse… · openclaw/openclaw@fddca99 fix(perf): bound session transcript stat fanout · openclaw/openclaw@2e6ba44 fix(test): bound plugin gauntlet prebuilds · openclaw/openclaw@6984a82 perf: speed up usage cost lookups · openclaw/openclaw@743bce2 Add OpenTelemetry LLM content spans (#86191) · openclaw/openclaw@f824e15 chore: remove unused tracked assets · openclaw/openclaw@592f192 fix(perf): tolerate passing filtered release gates · openclaw/openclaw@c410658 fix(release): accept optional Discord voice decoder · openclaw/openclaw@8f1f790 fix(release): stabilize beta validation tests · openclaw/openclaw@e049105
fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0
2026-04-16 · via Recent Commits to openclaw:main

@@ -2,6 +2,7 @@ import fs from "node:fs/promises";

22

import path from "node:path";

33

import { isUsageCountedSessionTranscriptFileName } from "../../config/sessions/artifacts.js";

44

import { resolveSessionTranscriptsDirForAgent } from "../../config/sessions/paths.js";

5+

import { loadSessionStore } from "../../config/sessions/store-load.js";

56

import { redactSensitiveText } from "../../logging/redact.js";

67

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

78

import { hashText } from "./internal.js";

@@ -24,6 +25,11 @@ export type SessionFileEntry = {

2425

generatedByDreamingNarrative?: boolean;

2526

};

262728+

export type BuildSessionEntryOptions = {

29+

/** Optional preclassification from a caller-managed dreaming transcript lookup. */

30+

generatedByDreamingNarrative?: boolean;

31+

};

32+2733

function isDreamingNarrativeBootstrapRecord(record: unknown): boolean {

2834

if (!record || typeof record !== "object" || Array.isArray(record)) {

2935

return false;

@@ -78,6 +84,79 @@ function isDreamingNarrativeGeneratedRecord(record: unknown): boolean {

7884

return hasDreamingNarrativeRunId(nested.runId) || hasDreamingNarrativeRunId(nested.sessionKey);

7985

}

808687+

function isDreamingNarrativeSessionStoreKey(sessionKey: string): boolean {

88+

const trimmed = sessionKey.trim();

89+

if (!trimmed) {

90+

return false;

91+

}

92+

const firstSeparator = trimmed.indexOf(":");

93+

if (firstSeparator < 0) {

94+

return trimmed.startsWith(DREAMING_NARRATIVE_RUN_PREFIX);

95+

}

96+

const secondSeparator = trimmed.indexOf(":", firstSeparator + 1);

97+

const sessionSegment = secondSeparator < 0 ? trimmed : trimmed.slice(secondSeparator + 1);

98+

return sessionSegment.startsWith(DREAMING_NARRATIVE_RUN_PREFIX);

99+

}

100+101+

function normalizeComparablePath(pathname: string): string {

102+

const resolved = path.resolve(pathname);

103+

return process.platform === "win32" ? resolved.toLowerCase() : resolved;

104+

}

105+106+

export function normalizeSessionTranscriptPathForComparison(pathname: string): string {

107+

return normalizeComparablePath(pathname);

108+

}

109+110+

function resolveSessionStoreTranscriptPath(

111+

sessionsDir: string,

112+

entry: { sessionFile?: unknown; sessionId?: unknown } | undefined,

113+

): string | null {

114+

if (typeof entry?.sessionFile === "string" && entry.sessionFile.trim().length > 0) {

115+

const sessionFile = entry.sessionFile.trim();

116+

const resolved = path.isAbsolute(sessionFile)

117+

? sessionFile

118+

: path.resolve(sessionsDir, sessionFile);

119+

return normalizeComparablePath(resolved);

120+

}

121+

if (typeof entry?.sessionId === "string" && entry.sessionId.trim().length > 0) {

122+

return normalizeComparablePath(path.join(sessionsDir, `${entry.sessionId.trim()}.jsonl`));

123+

}

124+

return null;

125+

}

126+127+

export function loadDreamingNarrativeTranscriptPathSetForSessionsDir(

128+

sessionsDir: string,

129+

): ReadonlySet<string> {

130+

const storePath = path.join(sessionsDir, "sessions.json");

131+

const store = loadSessionStore(storePath);

132+

const dreamingTranscriptPaths = new Set<string>();

133+

for (const [sessionKey, entry] of Object.entries(store)) {

134+

if (!isDreamingNarrativeSessionStoreKey(sessionKey)) {

135+

continue;

136+

}

137+

const transcriptPath = resolveSessionStoreTranscriptPath(sessionsDir, entry);

138+

if (transcriptPath) {

139+

dreamingTranscriptPaths.add(transcriptPath);

140+

}

141+

}

142+

return dreamingTranscriptPaths;

143+

}

144+145+

export function loadDreamingNarrativeTranscriptPathSetForAgent(

146+

agentId: string,

147+

): ReadonlySet<string> {

148+

return loadDreamingNarrativeTranscriptPathSetForSessionsDir(

149+

resolveSessionTranscriptsDirForAgent(agentId),

150+

);

151+

}

152+153+

function isDreamingNarrativeTranscriptFromSessionStore(absPath: string): boolean {

154+

const sessionsDir = path.dirname(absPath);

155+

const normalizedAbsPath = normalizeComparablePath(absPath);

156+

const dreamingTranscriptPaths = loadDreamingNarrativeTranscriptPathSetForSessionsDir(sessionsDir);

157+

return dreamingTranscriptPaths.has(normalizedAbsPath);

158+

}

159+81160

export async function listSessionFilesForAgent(agentId: string): Promise<string[]> {

82161

const dir = resolveSessionTranscriptsDirForAgent(agentId);

83162

try {

@@ -153,15 +232,19 @@ function parseSessionTimestampMs(

153232

return 0;

154233

}

155234156-

export async function buildSessionEntry(absPath: string): Promise<SessionFileEntry | null> {

235+

export async function buildSessionEntry(

236+

absPath: string,

237+

opts: BuildSessionEntryOptions = {},

238+

): Promise<SessionFileEntry | null> {

157239

try {

158240

const stat = await fs.stat(absPath);

159241

const raw = await fs.readFile(absPath, "utf-8");

160242

const lines = raw.split("\n");

161243

const collected: string[] = [];

162244

const lineMap: number[] = [];

163245

const messageTimestampsMs: number[] = [];

164-

let generatedByDreamingNarrative = false;

246+

let generatedByDreamingNarrative =

247+

opts.generatedByDreamingNarrative ?? isDreamingNarrativeTranscriptFromSessionStore(absPath);

165248

for (let jsonlIdx = 0; jsonlIdx < lines.length; jsonlIdx++) {

166249

const line = lines[jsonlIdx];

167250

if (!line.trim()) {