fix(cron): guard list sorting against malformed legacy jobs#28896
Merged
Takhoffman merged 2 commits intoopenclaw:mainfrom Mar 1, 2026
Merged
fix(cron): guard list sorting against malformed legacy jobs#28896Takhoffman merged 2 commits intoopenclaw:mainfrom
Takhoffman merged 2 commits intoopenclaw:mainfrom
Conversation
Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862
Contributor
Greptile SummaryAdds defensive guards to
Confidence Score: 5/5
Last reviewed commit: b59d759 |
18 tasks
hwb96
pushed a commit
to hwb96/openclaw
that referenced
this pull request
Mar 1, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
ansh
pushed a commit
to vibecode/openclaw
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
safzanpirani
pushed a commit
to safzanpirani/clawdbot
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
robertchang-ga
pushed a commit
to robertchang-ga/openclaw
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
hanqizheng
pushed a commit
to hanqizheng/openclaw
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Mar 2, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
dorgonman
pushed a commit
to kanohorizonia/openclaw
that referenced
this pull request
Mar 3, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
sachinkundu
pushed a commit
to sachinkundu/openclaw
that referenced
this pull request
Mar 6, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
Mateljan1
pushed a commit
to Mateljan1/openclaw
that referenced
this pull request
Mar 7, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]>
alexey-pelykh
pushed a commit
to remoteclaw/remoteclaw
that referenced
this pull request
Mar 16, 2026
…#28896) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit 29a5594)
alexey-pelykh
added a commit
to remoteclaw/remoteclaw
that referenced
this pull request
Mar 16, 2026
…#28896) (#1518) * fix(cron): guard list sorting against malformed legacy jobs Prevent list operations from crashing when old or corrupted cron entries are missing name/id fields by hardening sort comparators. Closes openclaw#28862 * cron: format list sort guard test imports --------- (cherry picked from commit 29a5594) Co-authored-by: Sid <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TypeError: Cannot read properties of undefined (reading 'localeCompare')when legacy/corrupted records are missingnameorid.sortJobsinsrc/cron/service/ops.tsto safely normalize missingname/idbeforelocaleCompare; added regression tests insrc/cron/service.list-page-sort-guards.test.ts.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
cron.list/cron.listPageno longer crash on malformed entries missingname/id.Security Impact (required)
NoNoNoNoNoRepro + Verification
Environment
Steps
nameor missingidfields.nameor with tied sort requiring id tie-break.Expected
Actual
localeComparecould be called onundefinedand throw.Evidence
src/cron/service.list-page-sort-guards.test.tspnpm --dir /Users/sidqin/Desktop/openclaw-contrib exec vitest src/cron/service.list-page-sort-guards.test.tsHuman Verification (required)
namedoes not breaksortBy: "name".iddoes not break tie-break sorting path.Compatibility / Migration
YesNoNoFailure Recovery (if this breaks)
src/cron/service/ops.ts.Risks and Mitigations