Skip to content

Load direnv environments for provider sessions#5

Open
tim-smart wants to merge 4 commits into
t3code/open-with-applicationsfrom
t3code/add-direnv-shell-support
Open

Load direnv environments for provider sessions#5
tim-smart wants to merge 4 commits into
t3code/open-with-applicationsfrom
t3code/add-direnv-shell-support

Conversation

@tim-smart

Copy link
Copy Markdown
Owner

Summary

  • Load trusted direnv environment variables for provider sessions based on the working directory.
  • Apply the resolved environment consistently across Codex, Claude, Cursor, Grok, OpenCode, and ACP-based runtimes.
  • Preserve the existing process environment and gracefully fall back when direnv is unavailable or cannot resolve a directory.
  • Add focused coverage for direnv resolution and provider environment propagation.

Testing

  • Not run (PR content generated from the supplied commit and diff details).

@tim-smart
tim-smart force-pushed the t3code/add-direnv-shell-support branch 4 times, most recently from 5959546 to 6dc2135 Compare July 23, 2026 21:08
@tim-smart
tim-smart force-pushed the t3code/add-direnv-shell-support branch from 6dc2135 to e07911b Compare July 24, 2026 00:44
@tim-smart
tim-smart force-pushed the t3code/add-direnv-shell-support branch 2 times, most recently from 1244a93 to e5be18e Compare July 24, 2026 03:34
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Jul 24, 2026
@tim-smart
tim-smart changed the base branch from main to t3code/open-with-applications July 24, 2026 03:34
@tim-smart
tim-smart force-pushed the t3code/open-with-applications branch from 46548bf to 8df3f53 Compare July 24, 2026 08:52
@tim-smart
tim-smart force-pushed the t3code/add-direnv-shell-support branch from e5be18e to 1a7901d Compare July 24, 2026 08:52
@github-actions github-actions Bot added size:L and removed size:XXL labels Jul 24, 2026
@github-actions
github-actions Bot force-pushed the t3code/add-direnv-shell-support branch from 1a7901d to d786974 Compare July 24, 2026 09:40
@github-actions
github-actions Bot force-pushed the t3code/open-with-applications branch from 8df3f53 to bee6c5d Compare July 24, 2026 09:40
@github-actions
github-actions Bot force-pushed the t3code/add-direnv-shell-support branch from d786974 to 41540af Compare July 24, 2026 14:12
@github-actions
github-actions Bot force-pushed the t3code/open-with-applications branch from bee6c5d to 2ced369 Compare July 24, 2026 14:12
- Apply cwd-specific `.envrc` changes across supported provider runtimes
- Preserve provider invariants and surface safe, actionable direnv errors
- Run `direnv allow` for a root `.envrc` after creating a worktree
- Keep worktree creation successful when approval fails
- Resolve approved direnv variables for provider processes and Git commands
- Share live and no-op direnv layers with cached executable lookup
@tim-smart
tim-smart force-pushed the t3code/open-with-applications branch from 2ced369 to 8c4bdfb Compare July 25, 2026 10:26
@tim-smart
tim-smart force-pushed the t3code/add-direnv-shell-support branch from 41540af to 8f5fc87 Compare July 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant