Skip to content

Cache STEP model conversions by normalized URL#885

Open
newmattock wants to merge 1 commit into
tscircuit:mainfrom
newmattock:codex/step-model-cache-key-93
Open

Cache STEP model conversions by normalized URL#885
newmattock wants to merge 1 commit into
tscircuit:mainfrom
newmattock:codex/step-model-cache-key-93

Conversation

@newmattock
Copy link
Copy Markdown

@newmattock newmattock commented May 12, 2026

/claim #93

Summary

  • normalize STEP model conversion/cache keys by stripping only cachebust_origin from the STEP URL
  • keep the original stepUrl for fetching and converting, so meaningful query params still reach the model server
  • reuse the normalized key for in-progress conversions, completed conversions, and localStorage GLB cache entries
  • add focused regression tests for cachebust_origin placement, hashes, and meaningful query params

Non-overlap

The active PRs I found cover OBJ loader cache keys, GLTF/GLB loader caching, STL shared-loader behavior, and generic load3DModel URL detection. This PR only touches the STEP-to-GLB path in StepModel.

Verification

  • bun test /Users/jakehatchett/Documents/Codex/2026-05-11/can-you-make-a-goal-for/3d-viewer/tests/step-model-cache-key.test.ts
  • git diff --check
  • GitHub checks are green: format-check, Test Node Bundle Load, type-check, Vercel, and Vercel Preview Comments

AI-assisted with Codex; I reviewed the diff before submitting.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

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

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview, Comment May 12, 2026 10:08pm

Request Review

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.

1 participant