Skip to content

fix(installer): use platform-specific yt-dlp config path#493

Draft
yupoet wants to merge 1 commit into
Panniantong:mainfrom
yupoet:agent/fix-macos-ytdlp-config-path
Draft

fix(installer): use platform-specific yt-dlp config path#493
yupoet wants to merge 1 commit into
Panniantong:mainfrom
yupoet:agent/fix-macos-ytdlp-config-path

Conversation

@yupoet

@yupoet yupoet commented Jul 11, 2026

Copy link
Copy Markdown

What changed

  • Reuse get_ytdlp_config_path() when the installer configures the Node.js runtime for yt-dlp.
  • Add a regression test that simulates macOS and verifies the installer writes --js-runtimes node under ~/Library/Application Support/yt-dlp/config.

Why

In v1.5.0, _install_system_deps() hardcodes the Linux path ~/.config/yt-dlp/config, while the YouTube doctor check uses the platform-aware path helper. On macOS this makes installation report success, but the following agent-reach doctor cannot find the setting and warns that the JS runtime is not configured.

Using the existing shared helper keeps installation and health checks aligned on every supported platform.

User impact

After agent-reach install --env=auto on macOS, YouTube readiness is detected correctly without requiring users to duplicate the yt-dlp setting manually.

Validation

  • python3 -m pytest tests/ -q — 197 passed
  • python3 -m ruff check --select F401 agent_reach/cli.py tests/test_cli.py — 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