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

推荐订阅源

云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
腾讯CDC
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
The GitHub Blog
The GitHub Blog
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
A
About on SuperTechFans
博客园 - 叶小钗

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): remove unused main-lane queue wrapper · ...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

@@ -25,7 +25,6 @@ type CommandQueueModule = typeof import("./command-queue.js");

2525

let clearCommandLane: CommandQueueModule["clearCommandLane"];

2626

let CommandLaneClearedError: CommandQueueModule["CommandLaneClearedError"];

2727

let CommandLaneTaskTimeoutError: CommandQueueModule["CommandLaneTaskTimeoutError"];

28-

let enqueueCommand: CommandQueueModule["enqueueCommand"];

2928

let enqueueCommandInLane: CommandQueueModule["enqueueCommandInLane"];

3029

let GatewayDrainingError: CommandQueueModule["GatewayDrainingError"];

3130

let getActiveTaskCount: CommandQueueModule["getActiveTaskCount"];

@@ -69,7 +68,7 @@ function enqueueBlockedMainTask<T = void>(

6968

release: () => void;

7069

} {

7170

const deferred = createDeferred();

72-

const task = enqueueCommand(async () => {

71+

const task = enqueueCommandInLane(CommandLane.Main, async () => {

7372

await deferred.promise;

7473

return (await onRelease?.()) as T;

7574

});

@@ -98,7 +97,6 @@ describe("command queue", () => {

9897

clearCommandLane,

9998

CommandLaneClearedError,

10099

CommandLaneTaskTimeoutError,

101-

enqueueCommand,

102100

enqueueCommandInLane,

103101

GatewayDrainingError,

104102

getActiveTaskCount,

@@ -152,9 +150,9 @@ describe("command queue", () => {

152150

};

153151154152

const results = await Promise.all([

155-

enqueueCommand(makeTask(1)),

156-

enqueueCommand(makeTask(2)),

157-

enqueueCommand(makeTask(3)),

153+

enqueueCommandInLane(CommandLane.Main, makeTask(1)),

154+

enqueueCommandInLane(CommandLane.Main, makeTask(2)),

155+

enqueueCommandInLane(CommandLane.Main, makeTask(3)),

158156

]);

159157160158

expect(results).toEqual([1, 2, 3]);

@@ -271,7 +269,7 @@ describe("command queue", () => {

271269

});

272270273271

it("logs enqueue depth after push", async () => {

274-

const task = enqueueCommand(async () => {});

272+

const task = enqueueCommandInLane(CommandLane.Main, async () => {});

275273276274

expect(diagnosticMocks.logLaneEnqueue).toHaveBeenCalledTimes(1);

277275

expect(mockCallArg(diagnosticMocks.logLaneEnqueue, "logLaneEnqueue", 1)).toBe(1);

@@ -286,11 +284,11 @@ describe("command queue", () => {

286284

vi.useFakeTimers();

287285

try {

288286

const blocker = createDeferred();

289-

const first = enqueueCommand(async () => {

287+

const first = enqueueCommandInLane(CommandLane.Main, async () => {

290288

await blocker.promise;

291289

});

292290293-

const second = enqueueCommand(async () => {}, {

291+

const second = enqueueCommandInLane(CommandLane.Main, async () => {}, {

294292

warnAfterMs: 5,

295293

onWait: (ms, ahead) => {

296294

waited = ms;

@@ -784,7 +782,7 @@ describe("command queue", () => {

784782

const { task: first, release } = enqueueBlockedMainTask(async () => "first");

785783786784

// Second task is queued behind the first.

787-

const second = enqueueCommand(async () => "second");

785+

const second = enqueueCommandInLane(CommandLane.Main, async () => "second");

788786789787

const removed = clearCommandLane();

790788

expect(removed).toBe(1); // only the queued (not active) entry

@@ -822,9 +820,9 @@ describe("command queue", () => {

822820823821

it("rejects new enqueues with GatewayDrainingError after markGatewayDraining", async () => {

824822

markGatewayDraining();

825-

await expect(enqueueCommand(async () => "blocked")).rejects.toBeInstanceOf(

826-

GatewayDrainingError,

827-

);

823+

await expect(

824+

enqueueCommandInLane(CommandLane.Main, async () => "blocked"),

825+

).rejects.toBeInstanceOf(GatewayDrainingError);

828826

});

829827830828

it("does not affect already-active tasks after markGatewayDraining", async () => {

@@ -837,7 +835,7 @@ describe("command queue", () => {

837835

it("resetAllLanes clears gateway draining flag and re-allows enqueue", async () => {

838836

markGatewayDraining();

839837

resetAllLanes();

840-

await expect(enqueueCommand(async () => "ok")).resolves.toBe("ok");

838+

await expect(enqueueCommandInLane(CommandLane.Main, async () => "ok")).resolves.toBe("ok");

841839

});

842840843841

it("migrates legacy queue state missing activeTaskWaiters without crashing", async () => {