Skip to content

fix: correct host agent default data directory to match Docker mount path#737

Merged
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom
yasinBursali:fix/host-agent-extensions-dir-default
Apr 3, 2026
Merged

fix: correct host agent default data directory to match Docker mount path#737
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom
yasinBursali:fix/host-agent-extensions-dir-default

Conversation

@yasinBursali
Copy link
Copy Markdown
Contributor

What

Default DREAM_DATA_DIR to INSTALL_DIR/data instead of ~/.dream-server in the host agent.

Why

The host agent reads .env directly, but DREAM_DATA_DIR is only injected inside Docker containers (not written to .env). The agent defaulted to ~/.dream-server/user-extensions/ while the dashboard-api container used INSTALL_DIR/data/user-extensions/, causing all extension operations to return 404.

How

Change the fallback from Path.home() / ".dream-server" to INSTALL_DIR / "data" — aligning with the Docker volume mount path.

Testing

  • Python syntax validation ✅
  • INSTALL_DIR is resolved and guard-checked before use (line 323-326)

Platform Impact

All platforms (host agent Python)

🤖 Generated with Claude Code

…path

Default DREAM_DATA_DIR to INSTALL_DIR/data instead of ~/.dream-server so
the host agent resolves the same user-extensions directory as the
dashboard-api container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit 9575267 into Light-Heart-Labs:main Apr 3, 2026
20 of 28 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.

2 participants