Skip to content

fix(studio): make optional file reads explicit#883

Merged
miguel-heygen merged 1 commit into
heygen-com:mainfrom
func25:optional-file-read
May 16, 2026
Merged

fix(studio): make optional file reads explicit#883
miguel-heygen merged 1 commit into
heygen-com:mainfrom
func25:optional-file-read

Conversation

@func25
Copy link
Copy Markdown
Contributor

@func25 func25 commented May 16, 2026

What

Make optional file reads explicit in the Studio file API.

Why

Studio still has a compatibility read for .hyperframes/studio-motion.json. That read is optional, but the file route treated it like a normal required file. This caused 404 console noise when the file was missing.

How

Let callers mark optional reads with optional=1. When that flag is set, missing files return empty content. Normal file reads still return 404 for missing files.

Test plan

How was this tested?

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)

@miguel-heygen miguel-heygen merged commit 395cbaf into heygen-com:main May 16, 2026
42 checks passed
@func25 func25 deleted the optional-file-read branch May 16, 2026 02:57
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.

2 participants