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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
罗磊的独立博客
B
Blog
博客园_首页
A
About on SuperTechFans
有赞技术团队
有赞技术团队
V
V2EX
U
Unit 42
I
InfoQ
IT之家
IT之家
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
H
Help Net Security

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
refactor(gateway): remove sync session reader surface (#7...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -64,7 +64,7 @@ describe("loadCliSessionHistoryMessages", () => {

6464

vi.unstubAllEnvs();

6565

});

666667-

it("reads the canonical session transcript instead of an arbitrary external path", () => {

67+

it("reads the canonical session transcript instead of an arbitrary external path", async () => {

6868

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

6969

const outsideDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-outside-"));

7070

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

@@ -82,7 +82,7 @@ describe("loadCliSessionHistoryMessages", () => {

82828383

try {

8484

expect(

85-

loadCliSessionHistoryMessages({

85+

await loadCliSessionHistoryMessages({

8686

sessionId: "session-test",

8787

sessionFile: outsideFile,

8888

sessionKey: "agent:main:main",

@@ -95,7 +95,7 @@ describe("loadCliSessionHistoryMessages", () => {

9595

}

9696

});

979798-

it("keeps only the newest bounded history window", () => {

98+

it("keeps only the newest bounded history window", async () => {

9999

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

100100

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

101101

const sessionFile = createSessionTranscript({

@@ -108,7 +108,7 @@ describe("loadCliSessionHistoryMessages", () => {

108108

});

109109110110

try {

111-

const history = loadCliSessionHistoryMessages({

111+

const history = await loadCliSessionHistoryMessages({

112112

sessionId: "session-bounded",

113113

sessionFile,

114114

sessionKey: "agent:main:main",

@@ -125,7 +125,7 @@ describe("loadCliSessionHistoryMessages", () => {

125125

}

126126

});

127127128-

it("rejects symlinked transcripts instead of following them outside the sessions directory", () => {

128+

it("rejects symlinked transcripts instead of following them outside the sessions directory", async () => {

129129

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

130130

const outsideDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-outside-"));

131131

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

@@ -147,7 +147,7 @@ describe("loadCliSessionHistoryMessages", () => {

147147148148

try {

149149

expect(

150-

loadCliSessionHistoryMessages({

150+

await loadCliSessionHistoryMessages({

151151

sessionId: "session-symlink",

152152

sessionFile: canonicalSessionFile,

153153

sessionKey: "agent:main:main",

@@ -160,7 +160,7 @@ describe("loadCliSessionHistoryMessages", () => {

160160

}

161161

});

162162163-

it("drops oversized transcript files instead of loading them into hook payloads", () => {

163+

it("drops oversized transcript files instead of loading them into hook payloads", async () => {

164164

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

165165

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

166166

const sessionFile = path.join(

@@ -175,7 +175,7 @@ describe("loadCliSessionHistoryMessages", () => {

175175176176

try {

177177

expect(

178-

loadCliSessionHistoryMessages({

178+

await loadCliSessionHistoryMessages({

179179

sessionId: "session-oversized",

180180

sessionFile,

181181

sessionKey: "agent:main:main",

@@ -187,7 +187,7 @@ describe("loadCliSessionHistoryMessages", () => {

187187

}

188188

});

189189190-

it("honors custom session store roots when resolving hook history transcripts", () => {

190+

it("honors custom session store roots when resolving hook history transcripts", async () => {

191191

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

192192

const customStoreDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-store-"));

193193

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

@@ -202,7 +202,7 @@ describe("loadCliSessionHistoryMessages", () => {

202202203203

try {

204204

expect(

205-

loadCliSessionHistoryMessages({

205+

await loadCliSessionHistoryMessages({

206206

sessionId: "session-custom-store",

207207

sessionFile,

208208

sessionKey: "agent:main:main",

@@ -226,7 +226,7 @@ describe("loadCliSessionReseedMessages", () => {

226226

vi.unstubAllEnvs();

227227

});

228228229-

it("does not reseed fresh CLI sessions from raw transcript history before compaction", () => {

229+

it("does not reseed fresh CLI sessions from raw transcript history before compaction", async () => {

230230

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

231231

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

232232

const sessionFile = createSessionTranscript({

@@ -237,7 +237,7 @@ describe("loadCliSessionReseedMessages", () => {

237237238238

try {

239239

expect(

240-

loadCliSessionReseedMessages({

240+

await loadCliSessionReseedMessages({

241241

sessionId: "session-no-compaction",

242242

sessionFile,

243243

sessionKey: "agent:main:main",

@@ -249,7 +249,7 @@ describe("loadCliSessionReseedMessages", () => {

249249

}

250250

});

251251252-

it("reseeds fresh CLI sessions from the latest compaction summary and post-compaction tail", () => {

252+

it("reseeds fresh CLI sessions from the latest compaction summary and post-compaction tail", async () => {

253253

const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-cli-state-"));

254254

vi.stubEnv("OPENCLAW_STATE_DIR", stateDir);

255255

const sessionFile = createSessionTranscript({

@@ -287,7 +287,7 @@ describe("loadCliSessionReseedMessages", () => {

287287

);

288288289289

try {

290-

const reseed = loadCliSessionReseedMessages({

290+

const reseed = await loadCliSessionReseedMessages({

291291

sessionId: "session-compacted",

292292

sessionFile,

293293

sessionKey: "agent:main:main",