-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(run_in_container): optionally mount ~/.codex
so Linux users keep configs & logs
#789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
3 tasks done
Comments
braun-viathan
added a commit
to braun-viathan/codex-cli
that referenced
this issue
May 7, 2025
Enables users to persist Codex CLI configuration across container runs by optionally mounting their local `.codex` directory using the `--config` parameter. Fixes openai#789
4 tasks
braun-viathan
added a commit
to braun-viathan/codex-cli
that referenced
this issue
May 9, 2025
Enables users to persist Codex CLI configuration across container runs by optionally mounting their local `.codex` directory using the `--config` parameter. Fixes openai#789
4 tasks
braun-viathan
added a commit
to braun-viathan/codex-cli
that referenced
this issue
May 12, 2025
Enables users to persist Codex CLI configuration across container runs by optionally mounting their local `.codex` directory using the `--config` parameter. Fixes openai#789
braun-viathan
added a commit
to braun-viathan/codex-cli
that referenced
this issue
May 12, 2025
Enables users to persist Codex CLI configuration across container runs by optionally mounting their local `.codex` directory using the `--config` parameter. Fixes openai#789
braun-viathan
added a commit
to braun-viathan/codex-cli
that referenced
this issue
May 16, 2025
Enables users to persist Codex CLI configuration across container runs by optionally mounting their local `.codex` directory using the `--config` parameter. Fixes openai#789
braun-viathan
added a commit
to braun-viathan/codex-cli
that referenced
this issue
May 20, 2025
Enables users to persist Codex CLI configuration across container runs by optionally mounting their local `.codex` directory using the `--config` parameter. Fixes openai#789
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this solve?
scripts/run_in_container.sh
.Inside the container Codex looks for configs at
/home/node/.codex
(instructions, approval presets, session logs).Because the host
$HOME/.codex
is not bind‑mounted today, every container start loses those files — users cannot persist settings or share them between runs.Proposed solution
run_in_container.sh
--config PATH
so power‑users can point to an alternative folder/file (future‑proof for dot‑file minimalists). ([GitHub][1])/home/node/.codex/log
, which is safe. ([GitHub][2])Why now?
Acceptance criteria
run_in_container.sh
mounts$HOME/.codex
when present.config.json
and shows the chosen approval mode in the banner.Checklist
pnpm test && pnpm lint && pnpm typecheck
The text was updated successfully, but these errors were encountered: