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

推荐订阅源

MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
小众软件
小众软件
F
Fortinet All Blogs
爱范儿
爱范儿
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
C
Check Point Blog
博客园 - 聂微东
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
宝玉的分享
宝玉的分享
Jina AI
Jina AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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
feat(bluebubbles): add reply-context API fallback for cac...
coletebou · 2026-05-01 · via Recent Commits to openclaw:main

@@ -60,6 +60,7 @@ import {

6060

resolveBlueBubblesMessageId,

6161

resolveReplyContextFromCache,

6262

} from "./monitor-reply-cache.js";

63+

import { fetchBlueBubblesReplyContext } from "./monitor-reply-fetch.js";

6364

import {

6465

hasBlueBubblesSelfChatCopy,

6566

rememberBlueBubblesSelfChatCopy,

@@ -1235,11 +1236,17 @@ async function processMessageAfterDedupe(

12351236

mediaTypes.push(saved.contentType);

12361237

}

12371238

} catch (err) {

1238-

logVerbose(

1239-

core,

1240-

runtime,

1241-

`attachment download failed guid=${sanitizeForLog(attachment.guid)} err=${sanitizeForLog(err)}`,

1239+

// Promote to runtime.error so silently-dropped inbound images are

1240+

// visible at default log level, while keeping verbose detail for

1241+

// debug sessions. Sanitize both fields — BB attachment GUIDs are

1242+

// user-influenced and the error chain can carry the password

1243+

// (see sanitizeForLog above).

1244+

const safeGuid = sanitizeForLog(attachment.guid, 80);

1245+

const safeErr = sanitizeForLog(err);

1246+

runtime.error?.(

1247+

`[bluebubbles] attachment download failed guid=${safeGuid} err=${safeErr}`,

12421248

);

1249+

logVerbose(core, runtime, `attachment download failed guid=${safeGuid} err=${safeErr}`);

12431250

}

12441251

}

12451252

}

@@ -1280,6 +1287,49 @@ async function processMessageAfterDedupe(

12801287

}

12811288

}

128212891290+

// Opt-in fallback: if the in-memory cache missed and the BB credentials are

1291+

// available, ask the BlueBubbles HTTP API for the original message. Useful

1292+

// when multiple OpenClaw instances share one BB account, after a restart,

1293+

// or when the cache TTL has evicted the message. Best-effort, never throws.

1294+

if (

1295+

replyToId &&

1296+

(!replyToBody || !replyToSender) &&

1297+

baseUrl &&

1298+

password &&

1299+

account.config.replyContextApiFallback === true

1300+

) {

1301+

const fetched = await fetchBlueBubblesReplyContext({

1302+

accountId: account.accountId,

1303+

replyToId,

1304+

baseUrl,

1305+

password,

1306+

accountConfig: account.config,

1307+

chatGuid: message.chatGuid,

1308+

chatIdentifier: message.chatIdentifier,

1309+

chatId: message.chatId,

1310+

});

1311+

if (fetched) {

1312+

if (!replyToBody && fetched.body) {

1313+

replyToBody = fetched.body;

1314+

}

1315+

if (!replyToSender && fetched.sender) {

1316+

replyToSender = fetched.sender;

1317+

}

1318+

if (core.logging.shouldLogVerbose()) {

1319+

// Run the body preview through sanitizeForLog so the redaction regex

1320+

// (?password=, ?token=, Authorization: …) catches credential-shaped

1321+

// strings that may appear in user message bodies, matching the

1322+

// hygiene of adjacent verbose log lines in this file.

1323+

const preview = sanitizeForLog((fetched.body ?? "").replace(/\s+/g, " "), 120);

1324+

logVerbose(

1325+

core,

1326+

runtime,

1327+

`reply-context API fallback replyToId=${sanitizeForLog(replyToId)} sender=${sanitizeForLog(fetched.sender ?? "")} body="${preview}"`,

1328+

);

1329+

}

1330+

}

1331+

}

1332+12831333

// If no cached short ID, try to get one from the UUID directly

12841334

if (replyToId && !replyToShortId) {

12851335

replyToShortId = getShortIdForUuid(replyToId);