Skip to content

feat(core): add configurable log_dir#10678

Merged
joshka-oai merged 1 commit intomainfrom
joshka/override-log-dir
Feb 5, 2026
Merged

feat(core): add configurable log_dir#10678
joshka-oai merged 1 commit intomainfrom
joshka/override-log-dir

Conversation

@joshka-oai
Copy link
Collaborator

Adds a top-level log_dir config key (defaults to $CODEX_HOME/log) so
one-off runs can redirect codex-tui.log via -c, e.g.:

codex -c log_dir=./.codex-log

Also resolves relative paths in CLI -c/--config overrides for
AbsolutePathBuf values against the effective cwd (when available).

Tests:

  • cargo test -p codex-core

Add a top-level `log_dir` config key (defaults to `$CODEX_HOME/log`) so
one-off runs can redirect `codex-tui.log` without changing the normal
setup, e.g. `codex -c log_dir=./.codex-log`.

CLI `-c/--config` overrides now resolve relative paths for
`AbsolutePathBuf` values against the effective cwd (when available),
so relative `log_dir` overrides work.
@joshka-oai joshka-oai requested a review from bolinfest February 4, 2026 22:02
@joshka-oai joshka-oai enabled auto-merge (squash) February 4, 2026 22:14
@joshka-oai joshka-oai merged commit cddfd1e into main Feb 5, 2026
36 of 38 checks passed
@joshka-oai joshka-oai deleted the joshka/override-log-dir branch February 5, 2026 01:23
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants