Skip to content

Fix cached STEP blob URL reuse - #922

Open
silktravelsadmin wants to merge 2 commits into
tscircuit:mainfrom
silktravelsadmin:main
Open

Fix cached STEP blob URL reuse#922
silktravelsadmin wants to merge 2 commits into
tscircuit:mainfrom
silktravelsadmin:main

Conversation

@silktravelsadmin

Copy link
Copy Markdown

Summary

  • Reuse completed STEP URL conversions before reading persistent cache
  • Avoid recreating blob URLs for a STEP URL that is already present in the in-memory registry
  • Add focused coverage for repeated cached STEP lookups

Testing

  • bun test tests/step-model-cache.test.ts
  • bunx tsc --noEmit
  • bunx biome format src/three-components/StepModel.tsx tests/step-model-cache.test.ts
  • bun run build

Note: bun test still has existing failures in outline-bounds.test.ts and preprocess-circuit-json.test.ts that are unrelated to this STEP cache change.

/claim #93

AI-assisted with Codex; I reviewed the patch and verification results.

Reuse the in-memory STEP conversion before rebuilding a blob URL from localStorage.
Cover reuse of completed STEP conversions before reading persistent cache again.
@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview, Comment May 22, 2026 9:58pm

Request Review

Copy link
Copy Markdown

Quick status check on this one: the scoped STEP cache fix is still open/mergeable, Vercel is green, and the Algora claim is still pending.

Happy to adjust the approach if you want this handled differently before merge.

Copy link
Copy Markdown

Follow-up status: this PR is still open/mergeable, and the current head has Type Check, Format Check, Test Node Bundle Load, and Vercel all passing. The Algora claim page is still showing Total paid $0 / Status Pending.

Happy to make any final adjustments needed for merge.

@MikeGarciaAGM MikeGarciaAGM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Extracting the STEP cache path into a reusable helper is a tidy improvement, and the tests cover the cache reuse behavior.

@MikeGarciaAGM MikeGarciaAGM left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants