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

推荐订阅源

J
Java Code Geeks
腾讯CDC
Jina AI
Jina AI
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
小众软件
小众软件
M
MIT News - Artificial intelligence
MyScale Blog
MyScale Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
月光博客
月光博客
L
LangChain Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
C
Check Point Blog
U
Unit 42
人人都是产品经理
人人都是产品经理

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-wiki): default non-finite page line options · ...
steipete · 2026-05-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1311,6 +1311,32 @@ describe("getMemoryWikiPage", () => {

13111311

expect(result?.truncated).toBe(true);

13121312

});

13131313
1314+

it("defaults non-finite wiki line options before slicing", async () => {

1315+

const { rootDir, config } = await createQueryVault({

1316+

initialize: true,

1317+

});

1318+

await fs.writeFile(

1319+

path.join(rootDir, "sources", "alpha.md"),

1320+

renderWikiMarkdown({

1321+

frontmatter: { pageType: "source", id: "source.alpha", title: "Alpha Source" },

1322+

body: "# Alpha Source\n\nline one\nline two\n",

1323+

}),

1324+

"utf8",

1325+

);

1326+
1327+

const result = await getMemoryWikiPage({

1328+

config,

1329+

lookup: "sources/alpha.md",

1330+

fromLine: Number.NaN,

1331+

lineCount: Number.POSITIVE_INFINITY,

1332+

});

1333+
1334+

expect(result?.corpus).toBe("wiki");

1335+

expect(result?.content).toContain("line one");

1336+

expect(result?.fromLine).toBe(1);

1337+

expect(result?.lineCount).toBe(200);

1338+

});

1339+
13141340

it("resolves compiled claim ids back to the owning page", async () => {

13151341

const { rootDir, config } = await createQueryVault({

13161342

initialize: true,

@@ -1429,6 +1455,38 @@ describe("getMemoryWikiPage", () => {

14291455

});

14301456

});

14311457
1458+

it("defaults non-finite memory line options before memory reads", async () => {

1459+

const { config } = await createQueryVault({

1460+

initialize: true,

1461+

config: {

1462+

search: { backend: "shared", corpus: "memory" },

1463+

},

1464+

});

1465+

const manager = createMemoryManager({

1466+

readResult: {

1467+

path: "MEMORY.md",

1468+

text: "durable alpha memory",

1469+

},

1470+

});

1471+

getActiveMemorySearchManagerMock.mockResolvedValue({ manager });

1472+
1473+

const result = await getMemoryWikiPage({

1474+

config,

1475+

appConfig: createAppConfig(),

1476+

lookup: "MEMORY.md",

1477+

fromLine: Number.NaN,

1478+

lineCount: Number.POSITIVE_INFINITY,

1479+

});

1480+
1481+

expect(result?.fromLine).toBe(1);

1482+

expect(result?.lineCount).toBe(200);

1483+

expect(manager.readFile).toHaveBeenCalledWith({

1484+

relPath: "MEMORY.md",

1485+

from: 1,

1486+

lines: 200,

1487+

});

1488+

});

1489+
14321490

it("skips session memory reads outside the caller visibility policy", async () => {

14331491

const { config } = await createQueryVault({

14341492

initialize: true,