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

推荐订阅源

C
Check Point Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 叶小钗
S
SegmentFault 最新的问题
雷峰网
雷峰网
H
Help Net Security
宝玉的分享
宝玉的分享
A
About on SuperTechFans
IT之家
IT之家
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator 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
test: tighten process input hint assertions · openclaw/op...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -28,6 +28,14 @@ function textOf(result: ProcessToolResult): string {

2828

return item?.type === "text" ? item.text : "";

2929

}

303031+

function expectRecordFields(record: unknown, expected: Record<string, unknown>) {

32+

expect(record).toBeDefined();

33+

const actual = record as Record<string, unknown>;

34+

for (const [key, value] of Object.entries(expected)) {

35+

expect(actual[key]).toEqual(value);

36+

}

37+

}

38+3139

function installWritableStdin(

3240

session: ReturnType<typeof createProcessSessionFixture>,

3341

state?: { writableEnded?: boolean; writableFinished?: boolean; destroyed?: boolean },

@@ -68,7 +76,7 @@ describe("process input-wait hints", () => {

6876

expect(text).toContain("Name? ");

6977

expect(text).toContain("No new output for 20s");

7078

expect(text).toContain("Use process write, send-keys, submit, or paste to provide input.");

71-

expect(result.details).toMatchObject({

79+

expectRecordFields(result.details, {

7280

status: "running",

7381

sessionId: "sess-log-hint",

7482

stdinWritable: true,

@@ -98,7 +106,7 @@ describe("process input-wait hints", () => {

9810699107

expect(textOf(result)).toContain("(no new output)");

100108

expect(textOf(result)).toContain("may be waiting for input");

101-

expect(result.details).toMatchObject({

109+

expectRecordFields(result.details, {

102110

status: "running",

103111

sessionId: "sess-poll",

104112

stdinWritable: true,

@@ -126,7 +134,7 @@ describe("process input-wait hints", () => {

126134

expect(textOf(result)).toContain("sess-list");

127135

expect(textOf(result)).toContain("[input-wait]");

128136

const sessions = (result.details as { sessions?: Array<Record<string, unknown>> }).sessions;

129-

expect(sessions?.[0]).toMatchObject({

137+

expectRecordFields(sessions?.[0], {

130138

sessionId: "sess-list",

131139

stdinWritable: true,

132140

waitingForInput: true,

@@ -156,7 +164,7 @@ describe("process input-wait hints", () => {

156164

expect(textOf(result)).toContain("Password: ");

157165

expect(textOf(result)).toContain("No new output for 25s");

158166

expect(textOf(result)).toContain("Use process write, send-keys, submit, or paste");

159-

expect(result.details).toMatchObject({

167+

expectRecordFields(result.details, {

160168

status: "running",

161169

sessionId: "sess-log",

162170

stdinWritable: true,

@@ -183,7 +191,7 @@ describe("process input-wait hints", () => {

183191

sessionId: "sess-ended",

184192

});

185193

expect(textOf(log)).not.toContain("provide input");

186-

expect(log.details).toMatchObject({

194+

expectRecordFields(log.details, {

187195

status: "running",

188196

stdinWritable: false,

189197

waitingForInput: false,

@@ -195,7 +203,7 @@ describe("process input-wait hints", () => {

195203

data: "answer\n",

196204

});

197205

expect(textOf(write)).toContain("stdin is not writable");

198-

expect(write.details).toMatchObject({ status: "failed" });

206+

expectRecordFields(write.details, { status: "failed" });

199207

});

200208201209

it("can read finished session logs without exposing input controls", async () => {

@@ -216,7 +224,7 @@ describe("process input-wait hints", () => {

216224217225

expect(textOf(result)).toContain("done");

218226

expect(textOf(result)).not.toContain("provide input");

219-

expect(result.details).toMatchObject({

227+

expectRecordFields(result.details, {

220228

status: "completed",

221229

sessionId: "sess-finished",

222230

exitCode: 0,