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

推荐订阅源

博客园_首页
The GitHub Blog
The GitHub Blog
美团技术团队
Know Your Adversary
Know Your Adversary
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
Attack and Defense Labs
Attack and Defense Labs
G
Google Developers Blog
I
InfoQ
博客园 - 司徒正美
T
Troy Hunt's Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
S
Security Affairs
M
MIT News - Artificial intelligence
Simon Willison's Weblog
Simon Willison's Weblog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Tailwind CSS Blog
量子位
Vercel News
Vercel News
月光博客
月光博客
V
Vulnerabilities – Threatpost
N
News and Events Feed by Topic
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
L
LINUX DO - 最新话题
F
Full Disclosure
The Hacker News
The Hacker News
Hacker News: Ask HN
Hacker News: Ask HN
T
Tor Project blog
A
Arctic Wolf
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Y
Y Combinator Blog
GbyAI
GbyAI
B
Blog RSS Feed
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(cron): complete jobs filters · openclaw/openclaw@ff21b4e
Alix-007 · 2026-05-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -5458,6 +5458,8 @@ public struct CronListParams: Codable, Sendable {

54585458

public let offset: Int?

54595459

public let query: String?

54605460

public let enabled: AnyCodable?

5461+

public let schedulekind: AnyCodable?

5462+

public let lastrunstatus: AnyCodable?

54615463

public let sortby: AnyCodable?

54625464

public let sortdir: AnyCodable?

54635465

public let agentid: String?

@@ -5468,6 +5470,8 @@ public struct CronListParams: Codable, Sendable {

54685470

offset: Int?,

54695471

query: String?,

54705472

enabled: AnyCodable?,

5473+

schedulekind: AnyCodable?,

5474+

lastrunstatus: AnyCodable?,

54715475

sortby: AnyCodable?,

54725476

sortdir: AnyCodable?,

54735477

agentid: String?)

@@ -5477,6 +5481,8 @@ public struct CronListParams: Codable, Sendable {

54775481

self.offset = offset

54785482

self.query = query

54795483

self.enabled = enabled

5484+

self.schedulekind = schedulekind

5485+

self.lastrunstatus = lastrunstatus

54805486

self.sortby = sortby

54815487

self.sortdir = sortdir

54825488

self.agentid = agentid

@@ -5488,6 +5494,8 @@ public struct CronListParams: Codable, Sendable {

54885494

case offset

54895495

case query

54905496

case enabled

5497+

case schedulekind = "scheduleKind"

5498+

case lastrunstatus = "lastRunStatus"

54915499

case sortby = "sortBy"

54925500

case sortdir = "sortDir"

54935501

case agentid = "agentId"

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

import fs from "node:fs/promises";

2+

import os from "node:os";

3+

import path from "node:path";

14

import { describe, expect, it } from "vitest";

25

import { createMockCronStateForJobs } from "./service.test-harness.js";

36

import { listPage } from "./service/ops.js";

@@ -102,4 +105,54 @@ describe("cron listPage sort guards", () => {

102105
103106

expect(page.jobs.map((job) => job.id)).toEqual(["job-main", "job-ops"]);

104107

});

108+
109+

it("matches job ids in listPage text search", async () => {

110+

const jobs = [

111+

createBaseJob({ id: "daily-report", name: "Morning report" }),

112+

createBaseJob({ id: "tax-digest", name: "Finance digest" }),

113+

];

114+

const state = createMockCronStateForJobs({ jobs });

115+
116+

const page = await listPage(state, { query: "tax" });

117+
118+

expect(page.jobs.map((job) => job.id)).toEqual(["tax-digest"]);

119+

});

120+
121+

it("applies schedule and last-run status filters before paging", async () => {

122+

const nextRunAtMs = Date.parse("2030-02-27T15:30:00.000Z");

123+

const jobs = [

124+

createBaseJob({

125+

id: "at-unknown",

126+

schedule: { kind: "at", at: "2030-02-27T15:30:00.000Z" },

127+

state: { nextRunAtMs },

128+

}),

129+

createBaseJob({

130+

id: "cron-error",

131+

schedule: { kind: "cron", expr: "0 9 * * *" },

132+

state: { nextRunAtMs, lastStatus: "error" },

133+

}),

134+

createBaseJob({

135+

id: "cron-unknown",

136+

schedule: { kind: "cron", expr: "0 10 * * *" },

137+

state: { nextRunAtMs },

138+

}),

139+

];

140+

const state = createMockCronStateForJobs({ jobs });

141+

const storeDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-cron-list-page-"));

142+

try {

143+

state.deps.storePath = path.join(storeDir, "jobs.json");

144+
145+

const page = await listPage(state, {

146+

scheduleKind: "cron",

147+

lastRunStatus: "unknown",

148+

limit: 1,

149+

});

150+
151+

expect(page.jobs.map((job) => job.id)).toEqual(["cron-unknown"]);

152+

expect(page.total).toBe(1);

153+

expect(page.hasMore).toBe(false);

154+

} finally {

155+

await fs.rm(storeDir, { recursive: true, force: true });

156+

}

157+

});

105158

});

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,8 @@

1-

import type { CronJob } from "../types.js";

1+

import type { CronJob, CronRunStatus } from "../types.js";

22
33

export type CronJobsEnabledFilter = "all" | "enabled" | "disabled";

4+

export type CronJobsScheduleKindFilter = "all" | "at" | "every" | "cron";

5+

export type CronJobsLastRunStatusFilter = "all" | CronRunStatus | "unknown";

46

export type CronJobsSortBy = "nextRunAtMs" | "updatedAtMs" | "name";

57

export type CronSortDir = "asc" | "desc";

68

@@ -10,6 +12,8 @@ export type CronListPageOptions = {

1012

offset?: number;

1113

query?: string;

1214

enabled?: CronJobsEnabledFilter;

15+

scheduleKind?: CronJobsScheduleKindFilter;

16+

lastRunStatus?: CronJobsLastRunStatusFilter;

1317

sortBy?: CronJobsSortBy;

1418

sortDir?: CronSortDir;

1519

agentId?: string;

Original file line numberDiff line numberDiff line change

@@ -27,6 +27,8 @@ import {

2727

} from "./jobs.js";

2828

import type {

2929

CronJobsEnabledFilter,

30+

CronJobsLastRunStatusFilter,

31+

CronJobsScheduleKindFilter,

3032

CronJobsSortBy,

3133

CronListPageOptions,

3234

CronListPageResult,

@@ -275,6 +277,35 @@ function resolveEnabledFilter(opts?: CronListPageOptions): CronJobsEnabledFilter

275277

return opts?.includeDisabled ? "all" : "enabled";

276278

}

277279
280+

function resolveScheduleKindFilter(opts?: CronListPageOptions): CronJobsScheduleKindFilter {

281+

if (

282+

opts?.scheduleKind === "all" ||

283+

opts?.scheduleKind === "at" ||

284+

opts?.scheduleKind === "every" ||

285+

opts?.scheduleKind === "cron"

286+

) {

287+

return opts.scheduleKind;

288+

}

289+

return "all";

290+

}

291+
292+

function resolveLastRunStatusFilter(opts?: CronListPageOptions): CronJobsLastRunStatusFilter {

293+

if (

294+

opts?.lastRunStatus === "all" ||

295+

opts?.lastRunStatus === "ok" ||

296+

opts?.lastRunStatus === "error" ||

297+

opts?.lastRunStatus === "skipped" ||

298+

opts?.lastRunStatus === "unknown"

299+

) {

300+

return opts.lastRunStatus;

301+

}

302+

return "all";

303+

}

304+
305+

function resolveJobLastRunStatus(job: CronJob): CronJobsLastRunStatusFilter {

306+

return job.state.lastRunStatus ?? job.state.lastStatus ?? "unknown";

307+

}

308+
278309

function sortJobs(jobs: CronJob[], sortBy: CronJobsSortBy, sortDir: CronSortDir) {

279310

const dir = sortDir === "desc" ? -1 : 1;

280311

return jobs.toSorted((a, b) => {

@@ -320,6 +351,8 @@ export async function listPage(state: CronServiceState, opts?: CronListPageOptio

320351

await ensureLoadedForRead(state);

321352

const query = normalizeLowercaseStringOrEmpty(opts?.query);

322353

const enabledFilter = resolveEnabledFilter(opts);

354+

const scheduleKindFilter = resolveScheduleKindFilter(opts);

355+

const lastRunStatusFilter = resolveLastRunStatusFilter(opts);

323356

const sortBy = opts?.sortBy ?? "nextRunAtMs";

324357

const sortDir = opts?.sortDir ?? "asc";

325358

const requestedAgentId = normalizeOptionalAgentId(opts?.agentId);

@@ -337,11 +370,17 @@ export async function listPage(state: CronServiceState, opts?: CronListPageOptio

337370

) {

338371

return false;

339372

}

373+

if (scheduleKindFilter !== "all" && job.schedule.kind !== scheduleKindFilter) {

374+

return false;

375+

}

376+

if (lastRunStatusFilter !== "all" && resolveJobLastRunStatus(job) !== lastRunStatusFilter) {

377+

return false;

378+

}

340379

if (!query) {

341380

return true;

342381

}

343382

const haystack = normalizeLowercaseStringOrEmpty(

344-

[job.name, job.description ?? "", job.agentId ?? ""].join(" "),

383+

[job.id, job.name, job.description ?? "", job.agentId ?? ""].join(" "),

345384

);

346385

return haystack.includes(query);

347386

});

Original file line numberDiff line numberDiff line change

@@ -117,13 +117,17 @@ describe("cron protocol validators", () => {

117117

offset: 0,

118118

query: "daily",

119119

enabled: "all",

120+

scheduleKind: "cron",

121+

lastRunStatus: "unknown",

120122

sortBy: "nextRunAtMs",

121123

sortDir: "asc",

122124

agentId: "ops",

123125

}),

124126

).toBe(true);

125127

expect(validateCronListParams({ offset: -1 })).toBe(false);

126128

expect(validateCronListParams({ agentId: "" })).toBe(false);

129+

expect(validateCronListParams({ scheduleKind: "yearly" })).toBe(false);

130+

expect(validateCronListParams({ lastRunStatus: "pending" })).toBe(false);

127131

});

128132
129133

it("enforces runs limit minimum for id and jobId selectors", () => {

Original file line numberDiff line numberDiff line change

@@ -40,6 +40,19 @@ const CronJobsEnabledFilterSchema = Type.Union([

4040

Type.Literal("enabled"),

4141

Type.Literal("disabled"),

4242

]);

43+

const CronJobsScheduleKindFilterSchema = Type.Union([

44+

Type.Literal("all"),

45+

Type.Literal("at"),

46+

Type.Literal("every"),

47+

Type.Literal("cron"),

48+

]);

49+

const CronJobsLastRunStatusFilterSchema = Type.Union([

50+

Type.Literal("all"),

51+

Type.Literal("ok"),

52+

Type.Literal("error"),

53+

Type.Literal("skipped"),

54+

Type.Literal("unknown"),

55+

]);

4356

const CronJobsSortBySchema = Type.Union([

4457

Type.Literal("nextRunAtMs"),

4558

Type.Literal("updatedAtMs"),

@@ -360,6 +373,8 @@ export const CronListParamsSchema = Type.Object(

360373

offset: Type.Optional(Type.Integer({ minimum: 0 })),

361374

query: Type.Optional(Type.String()),

362375

enabled: Type.Optional(CronJobsEnabledFilterSchema),

376+

scheduleKind: Type.Optional(CronJobsScheduleKindFilterSchema),

377+

lastRunStatus: Type.Optional(CronJobsLastRunStatusFilterSchema),

363378

sortBy: Type.Optional(CronJobsSortBySchema),

364379

sortDir: Type.Optional(CronSortDirSchema),

365380

agentId: Type.Optional(NonEmptyString),

Original file line numberDiff line numberDiff line change

@@ -213,6 +213,8 @@ export const cronHandlers: GatewayRequestHandlers = {

213213

offset?: number;

214214

query?: string;

215215

enabled?: "all" | "enabled" | "disabled";

216+

scheduleKind?: "all" | "at" | "every" | "cron";

217+

lastRunStatus?: "all" | "ok" | "error" | "skipped" | "unknown";

216218

sortBy?: "nextRunAtMs" | "updatedAtMs" | "name";

217219

sortDir?: "asc" | "desc";

218220

agentId?: string;

@@ -223,6 +225,8 @@ export const cronHandlers: GatewayRequestHandlers = {

223225

offset: p.offset,

224226

query: p.query,

225227

enabled: p.enabled,

228+

scheduleKind: p.scheduleKind,

229+

lastRunStatus: p.lastRunStatus,

226230

sortBy: p.sortBy,

227231

sortDir: p.sortDir,

228232

agentId: p.agentId,

Original file line numberDiff line numberDiff line change

@@ -167,9 +167,9 @@ function requireRecord(value: unknown, label: string): Record<string, unknown> {

167167

return value as Record<string, unknown>;

168168

}

169169
170-

function requireArray(value: unknown, label: string): unknown[] {

170+

function requireArray(value: unknown, label: string): Array<unknown> {

171171

expect(Array.isArray(value), label).toBe(true);

172-

return value as unknown[];

172+

return value as Array<unknown>;

173173

}

174174
175175

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

@@ -183,9 +183,10 @@ function expectPluginRecordFields(record: unknown, expected: Record<string, unkn

183183

}

184184
185185

function expectDiagnosticCodes(diagnostics: unknown, expectedCodes: string[]) {

186-

const codes = requireArray(diagnostics, "diagnostics").map(

187-

(diagnostic) => requireRecord(diagnostic, "diagnostic").code,

188-

);

186+

const codes: Array<unknown> = [];

187+

for (const diagnostic of requireArray(diagnostics, "diagnostics")) {

188+

codes.push(requireRecord(diagnostic, "diagnostic").code);

189+

}

189190

expect(codes).toEqual(expectedCodes);

190191

}

191192
Original file line numberDiff line numberDiff line change

@@ -2261,16 +2261,18 @@ export function renderApp(state: AppViewState) {

22612261

updateCronRunsFilter(state, { cronRunsScope: "job" });

22622262

await loadCronRuns(state, jobId);

22632263

},

2264-

onLoadMoreJobs: () => loadCronJobsPage(state, { append: true }),

2264+

onLoadMoreJobs: () => loadCronJobsPage(state, { append: true, tableFilters: true }),

22652265

onJobsFiltersChange: async (patch) => {

22662266

updateCronJobsFilter(state, patch);

22672267

const shouldReload =

22682268

typeof patch.cronJobsQuery === "string" ||

22692269

Boolean(patch.cronJobsEnabledFilter) ||

2270+

Boolean(patch.cronJobsScheduleKindFilter) ||

2271+

Boolean(patch.cronJobsLastStatusFilter) ||

22702272

Boolean(patch.cronJobsSortBy) ||

22712273

Boolean(patch.cronJobsSortDir);

22722274

if (shouldReload) {

2273-

await loadCronJobsPage(state, { append: false });

2275+

await loadCronJobsPage(state, { append: false, tableFilters: true });

22742276

}

22752277

},

22762278

onJobsFiltersReset: async () => {

@@ -2282,7 +2284,7 @@ export function renderApp(state: AppViewState) {

22822284

cronJobsSortBy: "nextRunAtMs",

22832285

cronJobsSortDir: "asc",

22842286

});

2285-

await loadCronJobsPage(state, { append: false });

2287+

await loadCronJobsPage(state, { append: false, tableFilters: true });

22862288

},

22872289

onLoadMoreRuns: () => loadMoreCronRuns(state),

22882290

onRunsFiltersChange: async (patch) => {

Original file line numberDiff line numberDiff line change

@@ -250,7 +250,7 @@ describe("refreshActiveTab", () => {

250250

expectCommonAgentsTabRefresh(host);

251251

expect(mocks.loadChannelsMock).toHaveBeenCalledWith(host, false);

252252

expect(mocks.loadCronStatusMock).toHaveBeenCalledOnce();

253-

expect(mocks.loadCronJobsPageMock).toHaveBeenCalledOnce();

253+

expect(mocks.loadCronJobsPageMock).toHaveBeenCalledWith(host, { tableFilters: false });

254254

expect(mocks.loadCronRunsMock).toHaveBeenCalledWith(host, "job-123");

255255

expect(mocks.loadAgentFilesMock).not.toHaveBeenCalled();

256256

expect(mocks.loadAgentSkillsMock).not.toHaveBeenCalled();

@@ -451,7 +451,7 @@ describe("refreshActiveTab", () => {

451451

expect(outcome).toBe("resolved");

452452

expect(mocks.loadChannelsMock).toHaveBeenCalledWith(host, false);

453453

expect(mocks.loadCronStatusMock).toHaveBeenCalledOnce();

454-

expect(mocks.loadCronJobsPageMock).toHaveBeenCalledOnce();

454+

expect(mocks.loadCronJobsPageMock).toHaveBeenCalledWith(host, { tableFilters: true });

455455

expect(mocks.loadCronRunsMock).toHaveBeenCalledOnce();

456456

});

457457