Skip to content

fix(electron): drop $HOME default from media roots#75

Merged
ubugeeei merged 1 commit into
codex/vue-supportfrom
codex/prod-media-root-scope
Jun 2, 2026
Merged

fix(electron): drop $HOME default from media roots#75
ubugeeei merged 1 commit into
codex/vue-supportfrom
codex/prod-media-root-scope

Conversation

@ubugeeei
Copy link
Copy Markdown
Collaborator

Summary

  • Default FRAMESCRIPT_MEDIA_ROOTS to the project working directory plus a curated set of ~/Videos, ~/Movies, ~/Music, ~/Pictures, ~/Documents (only the ones that actually exist) instead of the whole $HOME.
  • Operators who need a broader scope can still set FRAMESCRIPT_MEDIA_ROOTS explicitly.
  • Documented the new defaults in the production runbook.

Closes #47.

Test plan

  • npm run typecheck
  • npm run lint
  • Manually verify media loading from ~/Videos and the project root works in dev.

🤖 Generated with Claude Code

Closes #47.

Default to the project working directory plus any of ~/Videos,
~/Movies, ~/Music, ~/Pictures, ~/Documents that actually exist,
rather than exposing the entire user home directory through the
backend's /file, /video, /audio handlers. FRAMESCRIPT_MEDIA_ROOTS
still wins when set.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ubugeeei ubugeeei merged commit 579b1fe into codex/vue-support Jun 2, 2026
3 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