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

推荐订阅源

H
Help Net Security
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
博客园_首页
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
B
Blog
D
DataBreaches.Net
腾讯CDC
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
月光博客
月光博客
V
V2EX
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
The Cloudflare Blog
博客园 - 叶小钗
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
chore(deadcode): dedupe repeated helpers · openclaw/openc...
vincentkoc · 2026-05-21 · via Recent Commits to openclaw:main

@@ -68,36 +68,41 @@ async function flushMicrotasks(): Promise<void> {

6868

await Promise.resolve();

6969

}

707071+

function createAgentWithSession(query: ManualAsyncIterator) {

72+

const agent = new ClaudeAcpAgent({

73+

sessionUpdate: vi.fn(),

74+

extNotification: vi.fn(),

75+

} as unknown as ConstructorParameters<typeof ClaudeAcpAgent>[0]);

76+

agent.sessions["session-1"] = {

77+

cancelled: false,

78+

accumulatedUsage: {

79+

inputTokens: 0,

80+

outputTokens: 0,

81+

cachedReadTokens: 0,

82+

cachedWriteTokens: 0,

83+

},

84+

contextWindowSize: 200_000,

85+

cwd: "/tmp",

86+

emitRawSDKMessages: false,

87+

input: {

88+

push: vi.fn(),

89+

end: vi.fn(),

90+

},

91+

nextPendingOrder: 0,

92+

pendingMessages: new Map(),

93+

promptRunning: false,

94+

query,

95+

settingsManager: {

96+

dispose: vi.fn(),

97+

},

98+

} as unknown as (typeof agent.sessions)[string];

99+

return agent;

100+

}

101+71102

describe("patched claude-agent-acp completion", () => {

72103

it("does not resolve a prompt on idle before the result message", async () => {

73104

const query = new ManualAsyncIterator();

74-

const agent = new ClaudeAcpAgent({

75-

sessionUpdate: vi.fn(),

76-

extNotification: vi.fn(),

77-

} as unknown as ConstructorParameters<typeof ClaudeAcpAgent>[0]);

78-

agent.sessions["session-1"] = {

79-

cancelled: false,

80-

accumulatedUsage: {

81-

inputTokens: 0,

82-

outputTokens: 0,

83-

cachedReadTokens: 0,

84-

cachedWriteTokens: 0,

85-

},

86-

contextWindowSize: 200_000,

87-

cwd: "/tmp",

88-

emitRawSDKMessages: false,

89-

input: {

90-

push: vi.fn(),

91-

end: vi.fn(),

92-

},

93-

nextPendingOrder: 0,

94-

pendingMessages: new Map(),

95-

promptRunning: false,

96-

query,

97-

settingsManager: {

98-

dispose: vi.fn(),

99-

},

100-

} as unknown as (typeof agent.sessions)[string];

105+

const agent = createAgentWithSession(query);

101106102107

let resolved = false;

103108

const promptPromise = agent

@@ -127,33 +132,7 @@ describe("patched claude-agent-acp completion", () => {

127132128133

it("does not resolve a prompt after a task-notification result goes idle", async () => {

129134

const query = new ManualAsyncIterator();

130-

const agent = new ClaudeAcpAgent({

131-

sessionUpdate: vi.fn(),

132-

extNotification: vi.fn(),

133-

} as unknown as ConstructorParameters<typeof ClaudeAcpAgent>[0]);

134-

agent.sessions["session-1"] = {

135-

cancelled: false,

136-

accumulatedUsage: {

137-

inputTokens: 0,

138-

outputTokens: 0,

139-

cachedReadTokens: 0,

140-

cachedWriteTokens: 0,

141-

},

142-

contextWindowSize: 200_000,

143-

cwd: "/tmp",

144-

emitRawSDKMessages: false,

145-

input: {

146-

push: vi.fn(),

147-

end: vi.fn(),

148-

},

149-

nextPendingOrder: 0,

150-

pendingMessages: new Map(),

151-

promptRunning: false,

152-

query,

153-

settingsManager: {

154-

dispose: vi.fn(),

155-

},

156-

} as unknown as (typeof agent.sessions)[string];

135+

const agent = createAgentWithSession(query);

157136158137

let resolved = false;

159138

const promptPromise = agent