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

推荐订阅源

Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Vercel News
Vercel News
Martin Fowler
Martin Fowler
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LangChain Blog
云风的 BLOG
云风的 BLOG
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs

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
feat(ui): improve Workboard task details · openclaw/openc...
vincentkoc · 2026-06-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -80,6 +80,64 @@ describe("dispatchAndStartWorkboardCards", () => {

8080

});

8181

});

8282
83+

it("does not let review cards consume an agent running slot", async () => {

84+

const store = new WorkboardStore(createMemoryStore());

85+

await store.create({

86+

title: "Waiting for operator review",

87+

status: "review",

88+

priority: "normal",

89+

agentId: "codex-main",

90+

});

91+

const ready = await store.create({

92+

title: "Next ready card",

93+

status: "ready",

94+

priority: "high",

95+

agentId: "codex-main",

96+

});

97+

const run = vi.fn().mockResolvedValue({ runId: "run-next" });

98+
99+

const result = await dispatchAndStartWorkboardCards({

100+

store,

101+

subagent: { run },

102+

options: { now: 10, maxStarts: 3 },

103+

});

104+
105+

expect(result.started).toEqual([

106+

expect.objectContaining({

107+

cardId: ready.id,

108+

runId: "run-next",

109+

}),

110+

]);

111+

expect(run).toHaveBeenCalledOnce();

112+

});

113+
114+

it("keeps claimed review cards in the owner running slot", async () => {

115+

const store = new WorkboardStore(createMemoryStore());

116+

const review = await store.create({

117+

title: "Claimed operator review",

118+

status: "review",

119+

priority: "normal",

120+

agentId: "codex-main",

121+

});

122+

await store.claim(review.id, { ownerId: "codex-main", token: "review-token" });

123+

await store.create({

124+

title: "Next ready card",

125+

status: "ready",

126+

priority: "high",

127+

agentId: "codex-main",

128+

});

129+

const run = vi.fn().mockResolvedValue({ runId: "run-next" });

130+
131+

const result = await dispatchAndStartWorkboardCards({

132+

store,

133+

subagent: { run },

134+

options: { now: 10, maxStarts: 3 },

135+

});

136+
137+

expect(result.started).toEqual([]);

138+

expect(run).not.toHaveBeenCalled();

139+

});

140+
83141

it("blocks a card when worker start fails after claim", async () => {

84142

const store = new WorkboardStore(createMemoryStore());

85143

const card = await store.create({ title: "Fail worker", status: "ready" });

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,7 @@

11

import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

22

import type { PluginRuntime } from "openclaw/plugin-sdk/plugin-runtime";

33

import { WorkboardStore, type WorkboardDispatchResult } from "./store.js";

4-

import type { WorkboardCard, WorkboardExecution, WorkboardStatus } from "./types.js";

4+

import type { WorkboardCard, WorkboardExecution } from "./types.js";

55
66

const DEFAULT_DISPATCH_MAX_STARTS = 3;

77

const DEFAULT_DISPATCH_OWNER = "workboard-dispatcher";

@@ -126,10 +126,13 @@ function selectStartableCards(cards: WorkboardCard[], limit: number): WorkboardC

126126

if (limit <= 0) {

127127

return [];

128128

}

129-

const activeStatuses = new Set<WorkboardStatus>(["running", "review"]);

130129

const runningByOwner = new Map<string, number>();

131130

for (const card of cards) {

132-

if (!activeStatuses.has(card.status) || cardIsArchived(card)) {

131+

const consumesOwnerSlot =

132+

card.status === "running" ||

133+

Boolean(card.metadata?.claim) ||

134+

card.execution?.status === "running";

135+

if (!consumesOwnerSlot || cardIsArchived(card)) {

133136

continue;

134137

}

135138

const owner = card.agentId ?? DEFAULT_DISPATCH_OWNER;

Original file line numberDiff line numberDiff line change

@@ -977,7 +977,7 @@ export function createWorkboardTools(params: {

977977

name: "workboard_dispatch",

978978

label: "Workboard Dispatch",

979979

description:

980-

"Nudge Workboard dependency promotion and reclaim expired claims or timed-out runs.",

980+

"Run one Workboard dispatcher pass: promote unblocked cards, reclaim expired claims, and block timed-out runs.",

981981

parameters: Type.Object({}, { additionalProperties: false }),

982982

execute: async () => {

983983

const result = await store.dispatch();