Skip to main content

vtcode_commons/
config_keys.rs

1//! Canonical dotted config keys shared by the settings editor, config loader,
2//! desktop settings bridge, and misconfiguration diagnostics.
3//!
4//! These keys cross crate boundaries: a typo in one surface silently misses a
5//! setting on another (the value still loads, it just never matches). Keep the
6//! spelling in one struct and reference it from every producer/consumer.
7
8/// Canonical dotted paths for first-party settings.
9pub struct ConfigKey;
10
11impl ConfigKey {
12    pub const DEFAULT_MODEL: &'static str = "agent.default_model";
13    pub const PROVIDER: &'static str = "agent.provider";
14    pub const THEME: &'static str = "agent.theme";
15    pub const SMALL_MODEL: &'static str = "agent.small_model";
16    pub const SMALL_MODEL_NAME: &'static str = "agent.small_model.model";
17    pub const EDITOR: &'static str = "tools.editor";
18    pub const CODEX_APP_SERVER: &'static str = "agent.codex_app_server";
19    pub const CODEX_APP_SERVER_COMMAND: &'static str = "agent.codex_app_server.command";
20    pub const CODEX_APP_SERVER_ARGS: &'static str = "agent.codex_app_server.args";
21}