Skip to content

Create the engine config directory before any spawn - #498

Merged
sandersonstabo merged 1 commit into
masterfrom
engine-config-dir
Sep 27, 2026
Merged

sandersonstabo merged 1 commit into
masterfrom
engine-config-dir

Conversation

@sandersonstabo

@sandersonstabo sandersonstabo commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Codex login and runs failed because CODEX_HOME pointed at a directory nothing created.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Fixes Codex login and runs that failed because CODEX_HOME pointed to a directory that was never created – the managed home now creates the engine config directory (.codex/.claude) before any spawn, including login.

  • The engine config directory has a single definition reused for both environment variables and directory creation.
  • Other engines (Grok, Cursor, OpenCode2) are unaffected; their config directories remain unmanaged.

Written for commit 46e4520. Summary will update on new commits.

Review in cubic

The managed environment pointed CODEX_HOME at <home>/.codex but nothing
created it, and Codex refuses to start (login included) when CODEX_HOME
names a missing directory. The config directory now has one definition
shared by the environment and the home preparation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sandersonstabo
sandersonstabo merged commit 00af61e into master Sep 27, 2026
9 of 14 checks passed
@sandersonstabo
sandersonstabo deleted the engine-config-dir branch September 27, 2026 05:23
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