feat(app-server): add an --analytics-default-enabled flag (#9118)

Add a new `codex app-server --analytics-default-enabled` CLI flag that
controls whether analytics are enabled by default.

Analytics are disabled by default for app-server. Users have to
explicitly opt in
via the `analytics` section in the config.toml file.

However, for first-party use cases like the VSCode IDE extension, we
default analytics
to be enabled by default by setting this flag. Users can still opt out
by setting this
in their config.toml:

```toml
[analytics]
enabled = false
```

See https://developers.openai.com/codex/config-advanced/#metrics for
more details.
This commit is contained in:
Owen Lin
2026-01-13 11:59:39 -08:00
committed by GitHub
parent 58e8f75b27
commit bde734fd1e
5 changed files with 110 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
mod account;
mod analytics;
mod config_rpc;
mod initialize;
mod model_list;