Skip to content

fix(scripts): resolve root env in worktrees - #3

Merged
emmepra merged 1 commit into
devfrom
fix-worktree-runtime-env
Mar 31, 2026
Merged

fix(scripts): resolve root env in worktrees#3
emmepra merged 1 commit into
devfrom
fix-worktree-runtime-env

Conversation

@emmepra

@emmepra emmepra commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • resolve .env from the shared repo root when scripts run inside git worktrees
  • keep worktree-local runtime helpers able to inherit OpenRouter keys without duplicating .env files
  • verified both public MASE and the private MIND worktree export the expected OpenRouter variables from repo-root .env

Verification

  • bash scripts/runtime_env.sh <worktree-path> exports OPENROUTER_API_KEY, AGENT_LAUNCHER_OPENROUTER_API_KEY, and SIM_CTRL_OPENROUTER_API_KEY
  • forced internal controller/launcher recreate picked up the resolved env values
  • no-api_key MIND run launch succeeded after controller restart

@emmepra
emmepra merged commit 14a6bb0 into dev Mar 31, 2026
4 checks passed
@emmepra
emmepra deleted the fix-worktree-runtime-env branch March 31, 2026 16:34
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