mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
Honor the configured SQLite home in the logs client (#35695)
## Why `just log` derived the logs database path from `CODEX_HOME`, so it could read the wrong database when `sqlite_home` or `CODEX_SQLITE_HOME` selected a different location. ## What changed - Move `logs_client` into `codex-cli` so it can resolve the shared `SqliteConfig` through the standard configuration loader. - Keep `--db` as a direct override that skips config loading and preserves native path bytes. - Update the `just log` recipes to run the client from its new crate. ## Testing - Add coverage for bypassing invalid Codex config with `--db`. - Add Unix coverage for non-UTF-8 database paths. GitOrigin-RevId: fabd64a66543be26a6f5d3b5e509016c3270350e
This commit is contained in:
committed by
copyberry
parent
f029bb795c
commit
3418498f01
4
justfile
4
justfile
@@ -196,8 +196,8 @@ argument-comment-lint-from-source *args:
|
||||
# Tail logs from the state SQLite database
|
||||
[unix]
|
||||
log *args:
|
||||
if [ "${1:-}" = "--" ]; then shift; fi; cargo run -p codex-state --bin logs_client -- "$@"
|
||||
if [ "${1:-}" = "--" ]; then shift; fi; cargo run -p codex-cli --bin logs_client -- "$@"
|
||||
|
||||
[windows]
|
||||
log *args:
|
||||
$forwarded_args = @($args | Select-Object -Skip 1); if ($forwarded_args.Count -gt 0 -and $forwarded_args[0] -eq "--") { $forwarded_args = @($forwarded_args | Select-Object -Skip 1) }; cargo run -p codex-state --bin logs_client -- @forwarded_args
|
||||
$forwarded_args = @($args | Select-Object -Skip 1); if ($forwarded_args.Count -gt 0 -and $forwarded_args[0] -eq "--") { $forwarded_args = @($forwarded_args | Select-Object -Skip 1) }; cargo run -p codex-cli --bin logs_client -- @forwarded_args
|
||||
|
||||
Reference in New Issue
Block a user