Skip to content

fix(web): repair Redis promise typecheck regression - #1658

Draft
groupthinking wants to merge 1 commit into
mainfrom
codex/video-pack-redis-typecheck-followup
Draft

fix(web): repair Redis promise typecheck regression#1658
groupthinking wants to merge 1 commit into
mainfrom
codex/video-pack-redis-typecheck-followup

Conversation

@groupthinking

Copy link
Copy Markdown
Owner

Summary

Repairs the production web-build regression introduced when the atomic Video Pack Redis claim implementation merged in #1639.

The Redis initializer declared promise and captured it inside its own async initializer. TypeScript reports TS2454: Variable 'promise' is used before being assigned, causing next build to fail on current main and on unrelated Python PRs.

This change removes the self-reference. A failed import clears the only memoized Redis promise directly; concurrent callers still share that promise.

Evidence

  • CI 3547: Python tests pass; web build fails at video-pack-store.ts:132
  • CI 3548: independent reproduction on another Python-only branch

Safety boundary

Draft only. No Redis call, deployment, merge, production mutation, or data mutation is included.

@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Canceled Canceled v0 Sep 6, 2026 7:40am UTC

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the javascript Pull requests that update javascript code label Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 7c24b2a.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant