Skip to content

Fix production build (broken since #26) and make CI type-check like the build - #30

Merged
Divide-By-0 merged 2 commits into
mainfrom
stack/12-fix-prod-build
Oct 4, 2026
Merged

Divide-By-0 merged 2 commits into
mainfrom
stack/12-fix-prod-build

Conversation

@Divide-By-0

Copy link
Copy Markdown
Member

Human intent

#29 was merged but never appeared on redacted.zk.email. Get it live.

Cause

Every Render deploy since #26 (7313499, 2026-10-01) failed at yarn build, which runs tsc -b && vite build, with 5 type errors:

  • EmailCard.tsx: unplacedRedactions can be undefined.
  • proofOutputs.ts: decodeMaskedBytes reassigned its readonly unknown[] parameter, so its elements stayed unknown.

So production stayed on ac35414 (#25), and #26's security fixes and #29 never went live. CI didn't catch it: it ran yarn tsc --noEmit on the root tsconfig, which has "files": [] and project references, so it type-checked nothing.

Fix

  • Fix the 5 errors. Behaviour is unchanged.
  • CI now runs yarn tsc -b, the same check the production build runs.

Verification

  • tsc -b: clean (5 errors on main).
  • vite build: OK.
  • Tests: 46/46.

🤖 Generated with Claude Code

…w runs tsc -b

Render's Docker build runs 'yarn build' (tsc -b && vite build) and has failed since 7313499
(#26): EmailCard passed string[] | undefined, and decodeMaskedBytes passed unknown elements
after reassigning its readonly unknown[] parameter. Production stayed on ac35414, so #26's
security fixes and #29 never went live. CI ran 'tsc --noEmit' on the root tsconfig, whose
files: [] means it checked nothing; it now runs 'tsc -b' like the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 257e3193-f8dc-4152-aca4-b296d44b80aa
📥 Commits

Reviewing files that changed from the base of the PR and between ed245ba and f4f5101.

📒 Files selected for processing (4)
  • .agents/skills/redacted-circuit-maintenance/SKILL.md
  • .github/workflows/ci.yml
  • src/components/EmailCard.tsx
  • src/utils/proofOutputs.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

…w to confirm a deploy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Divide-By-0
Divide-By-0 merged commit 1871e21 into main Oct 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant