Repository navigation
fix(id/worker-poc): handle SELECT step query in post-update-failure MemoryJournal stub - #8103
Conversation
…emoryJournal stub
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #6373 (task 14470).
src/worker.ts:128issuesSELECT step FROM journal ORDER BY step DESC LIMIT 1on cold start, but theMemoryJournalstub insmoke/post-update-failure.mjsonly handled theSELECT step, snapshot FROM journal ...shape and the journal INSERT, so the smoke threwunexpected SQLon clean main.Change (smoke stub only, no production behaviour change): handle the
SELECT step FROM journalshape, returning the latest journaled step — mirroring the existing step/snapshot branch.Verification on the laptop at origin/main 02f4ece + this change:
node smoke/post-update-failure.mjsfailed withError: unexpected SQL: SELECT step FROM journal ORDER BY step DESC LIMIT 1at worker.ts:128 (reproduced).node smoke/post-update-failure.mjs— post-update-failure: PASS.npm run smokein pkgs/id/worker-poc — full chain green (counter-smoke, participant-clamp, post-update-failure, participant-validation).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.