🩹 fix(codeapi): add session cache recovery utility - #60
Conversation
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c553eb167
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
What
Adds a dry-run-first utility for restoring expired Redis
session:<session_id>ownership keys from a trusted JSONL manifest.SESSION_RECOVERY_*configuration.SET NX EXso apply never overwrites an existing owner./app/.build-migrations/rehydrate-session-cache.js.Recovery manifests and deployment runbooks remain outside this repository.
Verification
bunx eslint scripts/rehydrate-session-cache.ts src/rehydrate-session-cache.test.tsbun test src/rehydrate-session-cache.test.ts— 11 passedCalldiff
calldiff diff HEAD --file service/scripts/rehydrate-session-cache.ts --maxDepth 4 --locs