Repository navigation
fix(tasks): serialize structured task values for sqlite - #71885
likewen-tech wants to merge 1 commit into
Conversation
Greptile SummaryAdds a Confidence Score: 5/5Safe to merge — the change is narrowly scoped, has a direct regression test, and does not alter the read path. No P0 or P1 issues found. The serialization logic is correct for all runtime-reachable values, the string fast-path is preserved, and the test validates the stored byte representation end-to-end. No files require special attention. Reviews (1): Last reviewed commit: "fix(tasks): serialize structured task va..." | Re-trigger Greptile |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep this PR open, but it is not merge-ready: the submitted fix protects only the SQLite bind step while current main keeps Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? No high-confidence real OpenClaw reproduction is available. Source inspection plus an in-memory node:sqlite check show object binding can throw, but current public task APIs and types keep task text string-only. Is this the best way to solve the issue? No. SQLite-only serialization is too late in the lifecycle unless maintainers intentionally widen the task-value contract across live state and all consumers. Security review: Security review cleared: The diff is limited to task SQLite serialization and a regression test, with no dependency, CI, secret, permission, package, download, or release-path change. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 4fc504d321b6. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
TaskRecord.taskvalues before binding them into sqliteRoot cause
The sqlite task registry store binds
record.taskdirectly into thetask_runs.taskcolumn. Most task values are strings, but structured task payloads can appear from agent/runtime paths. Passing a non-string object directly to sqlite binding can throw or persist incorrectly. The store should normalize the value before binding.Verification
pnpm exec oxfmt --write --threads=1 src/tasks/task-registry.store.sqlite.ts src/tasks/task-registry.store.test.tsgit diff --checknode scripts/test-projects.mjs src/tasks/task-registry.store.test.tssrc/tasks/task-registry.store.test.ts: 11 passedpnpm tsgopnpm lint