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

推荐订阅源

博客园_首页
C
Check Point Blog
B
Blog RSS Feed
G
Google Developers Blog
H
Help Net Security
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Recent Announcements
Recent Announcements
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
小众软件
小众软件
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
T
Tailwind CSS Blog
J
Java Code Geeks
MyScale Blog
MyScale 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(memory-lancedb): retry failed runtime initialization ...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -65,6 +65,7 @@ test -d "$package_root/dist/extensions/telegram"

6565

test -d "$package_root/dist/extensions/discord"

6666

test -d "$package_root/dist/extensions/slack"

6767

test -d "$package_root/dist/extensions/feishu"

68+

test -d "$package_root/dist/extensions/memory-lancedb"

68696970

if [ -d "$package_root/dist/extensions/$CHANNEL/node_modules" ]; then

7071

echo "$CHANNEL runtime deps should not be preinstalled in package" >&2

@@ -156,6 +157,35 @@ if (mode === "feishu") {

156157

},

157158

};

158159

}

160+

if (mode === "memory-lancedb") {

161+

config.plugins = {

162+

...(config.plugins || {}),

163+

enabled: true,

164+

allow: [...new Set([...(config.plugins?.allow || []), "memory-lancedb"])],

165+

slots: {

166+

...(config.plugins?.slots || {}),

167+

memory: "memory-lancedb",

168+

},

169+

entries: {

170+

...(config.plugins?.entries || {}),

171+

"memory-lancedb": {

172+

...(config.plugins?.entries?.["memory-lancedb"] || {}),

173+

enabled: true,

174+

config: {

175+

...(config.plugins?.entries?.["memory-lancedb"]?.config || {}),

176+

embedding: {

177+

...(config.plugins?.entries?.["memory-lancedb"]?.config?.embedding || {}),

178+

apiKey: process.env.OPENAI_API_KEY,

179+

model: "text-embedding-3-small",

180+

},

181+

dbPath: "~/.openclaw/memory/lancedb-e2e",

182+

autoCapture: false,

183+

autoRecall: false,

184+

},

185+

},

186+

},

187+

};

188+

}

159189160190

fs.mkdirSync(path.dirname(configPath), { recursive: true });

161191

fs.writeFileSync(configPath, `${JSON.stringify(config, null, 2)}\n`, "utf8");

@@ -206,6 +236,10 @@ wait_for_gateway_health() {

206236207237

assert_channel_status() {

208238

local channel="$1"

239+

if [ "$channel" = "memory-lancedb" ]; then

240+

echo "memory-lancedb plugin activation verified by dependency sentinel"

241+

return 0

242+

fi

209243

local out="/tmp/openclaw-channel-status-$channel.json"

210244

openclaw gateway call channels.status \

211245

--url "ws://127.0.0.1:$PORT" \

@@ -635,7 +669,6 @@ export OPENAI_API_KEY="sk-openclaw-bundled-channel-update-e2e"

635669

export OPENCLAW_NO_ONBOARD=1

636670

export OPENCLAW_UPDATE_PACKAGE_SPEC=""

637671638-

BASELINE_VERSION="${OPENCLAW_BUNDLED_CHANNEL_UPDATE_BASELINE_VERSION:?missing baseline version}"

639672

TOKEN="bundled-channel-update-token"

640673

PORT="18790"

641674

@@ -736,6 +769,35 @@ config.channels = {

736769

enabled: mode === "feishu",

737770

},

738771

};

772+

if (mode === "memory-lancedb") {

773+

config.plugins = {

774+

...(config.plugins || {}),

775+

enabled: true,

776+

allow: [...new Set([...(config.plugins?.allow || []), "memory-lancedb"])],

777+

slots: {

778+

...(config.plugins?.slots || {}),

779+

memory: "memory-lancedb",

780+

},

781+

entries: {

782+

...(config.plugins?.entries || {}),

783+

"memory-lancedb": {

784+

...(config.plugins?.entries?.["memory-lancedb"] || {}),

785+

enabled: true,

786+

config: {

787+

...(config.plugins?.entries?.["memory-lancedb"]?.config || {}),

788+

embedding: {

789+

...(config.plugins?.entries?.["memory-lancedb"]?.config?.embedding || {}),

790+

apiKey: process.env.OPENAI_API_KEY,

791+

model: "text-embedding-3-small",

792+

},

793+

dbPath: "~/.openclaw/memory/lancedb-update-e2e",

794+

autoCapture: false,

795+

autoRecall: false,

796+

},

797+

},

798+

},

799+

};

800+

}

739801740802

fs.mkdirSync(path.dirname(configPath), { recursive: true });

741803

fs.writeFileSync(configPath, `${JSON.stringify(config, null, 2)}\n`, "utf8");

@@ -857,8 +919,8 @@ run_update_and_capture() {

857919

fi

858920

}

859921860-

echo "Installing known-bad baseline $BASELINE_VERSION..."

861-

npm install -g "openclaw@$BASELINE_VERSION" --omit=optional --no-fund --no-audit >/tmp/openclaw-update-baseline-install.log 2>&1

922+

echo "Installing current candidate as update baseline..."

923+

npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-update-baseline-install.log 2>&1

862924

command -v openclaw >/dev/null

863925

baseline_root="$(package_root)"

864926

test -d "$baseline_root/dist/extensions/telegram"

@@ -871,16 +933,14 @@ set +e

871933

openclaw doctor --non-interactive >/tmp/openclaw-baseline-doctor.log 2>&1

872934

baseline_doctor_status=$?

873935

set -e

874-

if [ "$baseline_doctor_status" -eq 0 ] || ! grep -Eq "grammy|ERR_MODULE_NOT_FOUND|Cannot find module" /tmp/openclaw-baseline-doctor.log; then

875-

echo "expected baseline doctor to fail on missing Telegram runtime deps" >&2

876-

cat /tmp/openclaw-baseline-doctor.log >&2

877-

exit 1

878-

fi

936+

echo "baseline doctor exited with $baseline_doctor_status"

937+

remove_runtime_dep telegram grammy

938+

assert_no_dep_available telegram grammy

879939880940

echo "Updating from baseline to current candidate; candidate doctor must repair Telegram deps..."

881941

run_update_and_capture telegram /tmp/openclaw-update-telegram.json

882942

cat /tmp/openclaw-update-telegram.json

883-

assert_update_ok /tmp/openclaw-update-telegram.json "$BASELINE_VERSION"

943+

assert_update_ok /tmp/openclaw-update-telegram.json "$candidate_version"

884944

assert_dep_available telegram grammy

885945886946

echo "Mutating installed package: remove Telegram deps, then update-mode doctor repairs them..."

@@ -920,6 +980,15 @@ cat /tmp/openclaw-update-feishu.json

920980

assert_update_ok /tmp/openclaw-update-feishu.json "$candidate_version"

921981

assert_dep_available feishu @larksuiteoapi/node-sdk

922982983+

echo "Mutating config to memory-lancedb and rerunning same-version update path..."

984+

write_config memory-lancedb

985+

remove_runtime_dep memory-lancedb @lancedb/lancedb

986+

assert_no_dep_available memory-lancedb @lancedb/lancedb

987+

run_update_and_capture memory-lancedb /tmp/openclaw-update-memory-lancedb.json

988+

cat /tmp/openclaw-update-memory-lancedb.json

989+

assert_update_ok /tmp/openclaw-update-memory-lancedb.json "$candidate_version"

990+

assert_dep_available memory-lancedb @lancedb/lancedb

991+923992

echo "bundled channel runtime deps Docker update E2E passed"

924993

EOF

925994

then

@@ -937,6 +1006,7 @@ if [ "$RUN_CHANNEL_SCENARIOS" != "0" ]; then

9371006

run_channel_scenario discord discord-api-types

9381007

run_channel_scenario slack @slack/web-api

9391008

run_channel_scenario feishu @larksuiteoapi/node-sdk

1009+

run_channel_scenario memory-lancedb @lancedb/lancedb

9401010

fi

9411011

if [ "$RUN_UPDATE_SCENARIO" != "0" ]; then

9421012

run_update_scenario