Skip to content

Let callers pass their own Model Target CAD data URL - #1537

Merged
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/vws-web-tools-issue-1495
Aug 27, 2026
Merged

Let callers pass their own Model Target CAD data URL#1537
adamtheturtle merged 2 commits into
mainfrom
adamtheturtle/vws-web-tools-issue-1495

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1495.

The CAD data URL was a private constant baked into get_model_target_web_api_details, so if it ever stops resolving, every consumer is stuck until this package makes a release.

get_model_target_web_api_details now takes a cad_data_url argument, and the default is public as MODEL_TARGET_WEB_API_CAD_DATA_URL.

On the reported risk itself: pinning to a commit SHA is the right call and I have not changed it. A raw.githubusercontent.com URL with a commit SHA does not depend on any branch, so moving or deleting a branch cannot 404 it — only renaming, deleting or rewriting the repository can, and no fallback URL protects against that either. What was missing was an escape hatch, which is what this adds. A tag or branch URL would trade a rare hard failure for a common silent one: the model changing under the tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

adamtheturtle and others added 2 commits August 27, 2026 07:22
Closes #1495

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM
@adamtheturtle
adamtheturtle force-pushed the adamtheturtle/vws-web-tools-issue-1495 branch from cc45706 to 627eecc Compare August 27, 2026 06:22
@adamtheturtle
adamtheturtle merged commit 1453b92 into main Aug 27, 2026
29 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/vws-web-tools-issue-1495 branch August 27, 2026 07:20
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.

Pinned _MODEL_TARGET_WEB_API_CAD_DATA_URL commit may 404 if GitHub moves branch

1 participant