Skip to content

perf: improve codex onboarding speed - #63

Merged
bespoyasov merged 3 commits into
mainfrom
perf/codex-shell-config
Sep 8, 2026
Merged

perf: improve codex onboarding speed#63
bespoyasov merged 3 commits into
mainfrom
perf/codex-shell-config

Conversation

@bespoyasov

Copy link
Copy Markdown
Collaborator

Inheriting code in shell_environment_policy speeds up package installation from 1.5 min till 15 sec

Codex exec mode defaults to a restricted shell environment — commands
the agent runs don't see proxy settings, npm registry config, or auth
tokens from the parent process. On corporate networks this caused npm
install to fall back to direct connections that time out, turning a
15-second step into minutes of waiting.

Pass `-c 'shell_environment_policy.inherit="core"'` so the agent's
commands inherit PATH, HOME, proxy vars, and other essentials.

@filipmyllari filipmyllari left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully CI does not fail 🙏🏻

@bespoyasov
bespoyasov merged commit 476c3cb into main Sep 8, 2026
2 checks passed
@bespoyasov
bespoyasov deleted the perf/codex-shell-config branch September 8, 2026 14:57
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