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

推荐订阅源

量子位
博客园_首页
罗磊的独立博客
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
Last Week in AI
Last Week in AI
D
DataBreaches.Net
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
D
Docker
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
H
Help Net Security
T
The Blog of Author Tim Ferriss

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): expand home paths in extra memory paths (#85...
steipete · 2026-05-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -45,6 +45,7 @@ Docs: https://docs.openclaw.ai

4545

- Gateway/LaunchAgent: treat a concurrent launchd bootstrap as a successful restart when the service is already loaded, avoiding false macOS Gateway restart failures. Fixes #84721. (#84722) Thanks @googlerest.

4646

- Gateway/service: include the active `openclaw` command bin directory in managed service PATH generation and doctor audit expectations for npm-global macOS installs. Fixes #84201. (#84475) Thanks @jbetala7.

4747

- Control UI/chat: disable the thinking selector for known non-reasoning models instead of showing duplicate Off choices. Fixes #84069. Thanks @DrippingMellow.

48+

- Memory: expand `~` in configured extra memory paths before resolving them, so home-relative folders are not treated as workspace-relative. Fixes #58026. Thanks @stadman.

4849

- CLI/update: preserve managed Gateway service environment during package cutovers so macOS LaunchAgent repair/restart reads the pre-update service state instead of caller shell state. (#83026)

4950

- Agents/providers: honor per-model `api` and `baseUrl` overrides in custom provider auth hooks and transport selection. Fixes #80487. (#80488) Thanks @huveewomg.

5051

- Gateway/restart: eager-load the lifecycle runtime before in-place upgrade signal handling so package replacement does not deadlock restart imports. (#84890) Thanks @myps6415.

Original file line numberDiff line numberDiff line change

@@ -97,8 +97,21 @@ describe("memory host SDK package internals", () => {

9797

const workspaceDir = path.join(os.tmpdir(), "memory-test-workspace");

9898

const absPath = path.resolve(path.sep, "shared-notes");

9999

expect(

100-

normalizeExtraMemoryPaths(workspaceDir, [" notes ", "./notes", absPath, absPath, ""]),

101-

).toEqual([path.resolve(workspaceDir, "notes"), absPath]);

100+

normalizeExtraMemoryPaths(workspaceDir, [

101+

" notes ",

102+

"./notes",

103+

absPath,

104+

absPath,

105+

"~/shared-notes",

106+

"~",

107+

"",

108+

]),

109+

).toEqual([

110+

path.resolve(workspaceDir, "notes"),

111+

absPath,

112+

path.join(os.homedir(), "shared-notes"),

113+

os.homedir(),

114+

]);

102115

});

103116
104117

it("lists canonical markdown and enabled multimodal files", async () => {

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,7 @@

11

import crypto from "node:crypto";

22

import fsSync from "node:fs";

33

import fs from "node:fs/promises";

4+

import { homedir } from "node:os";

45

import path from "node:path";

56

import { CANONICAL_ROOT_MEMORY_FILENAME } from "./config-utils.js";

67

import { estimateStructuredEmbeddingInputBytes } from "./embedding-input-limits.js";

@@ -74,13 +75,24 @@ export function normalizeRelPath(value: string): string {

7475

return trimmed.replace(/\\/g, "/");

7576

}

7677
78+

function expandHomePath(value: string): string {

79+

if (value === "~") {

80+

return homedir();

81+

}

82+

if (value.startsWith("~/") || value.startsWith("~\\")) {

83+

return path.join(homedir(), value.slice(2));

84+

}

85+

return value;

86+

}

87+
7788

export function normalizeExtraMemoryPaths(workspaceDir: string, extraPaths?: string[]): string[] {

7889

if (!extraPaths?.length) {

7990

return [];

8091

}

8192

const resolved = extraPaths

8293

.map((value) => value.trim())

8394

.filter(Boolean)

95+

.map((value) => expandHomePath(value))

8496

.map((value) =>

8597

path.isAbsolute(value) ? path.resolve(value) : path.resolve(workspaceDir, value),

8698

);