Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. Source inspection on current main shows nonempty cron Real behavior proof Next step before merge Security Review detailsBest possible solution: Land the doctor migration if maintainers accept it as the persistence cleanup, and keep or open a separate focused follow-up for any UI/update clear-path behavior that should make inherit-agent-default easier. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows nonempty cron Is this the best way to solve the issue? Unclear as a complete issue fix. The PR is a narrow, maintainable doctor repair for bad persisted state, but maintainer judgment is needed on whether the linked Web UI clear/inherit path should be fixed before this closes the related issue. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against d05415d6036c. |
* fix(cron): repair bad persisted model sentinels * test(cron): relax model preservation assertion (cherry picked from commit 6aafdf1)
* fix(cron): repair bad persisted model sentinels * test(cron): relax model preservation assertion
* fix(cron): repair bad persisted model sentinels * test(cron): relax model preservation assertion
* fix(cron): repair bad persisted model sentinels * test(cron): relax model preservation assertion
Summary
payload.modelis stored as"default","null", blank, or JSONnullby deleting the bad model override inopenclaw doctor --fix.payload.modelstrings still resolve as explicit model refs and must passagents.defaults.models.Fixes #78549
Verification
pnpm changed:lanes --json-> lanes: core, coreTests, docspnpm check:docs-> passedpnpm exec oxfmt --check --threads=1 src/commands/doctor-cron-store-migration.ts src/commands/doctor-cron.ts src/commands/doctor-cron-store-migration.test.ts src/commands/doctor-cron.test.ts docs/cli/cron.md docs/automation/cron-jobs.md docs/gateway/doctor.md CHANGELOG.md-> passedgit diff --check-> passeduvx showboat verify /Users/kevinlin/code/openclaw/.mem/main/proofs/78549-cron-model-doctor-fixed.md-> passedpnpm check:changed-> blocked in local worktree by incomplete dependency install: git-hosted@openclaw/[email protected]failed normalpnpm installprepack twice, and the fallback--ignore-scriptsinstall leaves@openclaw/fs-safe/*exports without builtdistfiles.pnpm test:changed-> blocked before test collection by the same missing@openclaw/fs-safe/configexport.Real behavior proof
payload.modelsentinels such as"default","null", blank strings, or JSONnullcan fail cron preflight as explicit model overrides. This patch givesopenclaw doctor --fixa repair path for those bad stored cron configs without supporting default/null runtime fallback aliases./Users/kevinlin/code/openclaw/.mem/integ/tmp/doctor-cron-model-sentinel-78549, running the patched CLI from a detached worktree at commitc6a5e2526b86a18ab2233dbb4c9cc8b009a6d8a6.state/cron/jobs.jsonwith two bad persisted cron job payload models ("default"and"null") plus one valid real model ("minimax-portal/MiniMax-M2.7"), then ranopenclaw doctor --fix --yes --non-interactivethroughnode --import tsx src/entry.ts doctor --fix --yes --non-interactivewithOPENCLAW_STATE_DIRpointed at that isolated dev workspace.openclaw doctor --fixremoved the badpayload.modeloverrides for the persisted sentinel values and preserved the valid real model override. Runtime support for"default"or"null"fallback aliases was not added.check:changedcould not complete in this worktree because normalpnpm installfails while preparing git-hosted@openclaw/[email protected]; the ignored-scripts fallback leaves@openclaw/fs-safe/configmissing its builtdist/config.js, so tests fail before collection.