Compare commits

...

2 Commits

Author SHA1 Message Date
jif-oai
3f4c85c95a Merge branch 'main' into jif/hack-auth 2026-03-24 16:01:43 +00:00
jif-oai
e4f2f092aa chore: force file auth for 0.0.0 2026-03-24 12:53:38 +00:00

View File

@@ -2610,11 +2610,22 @@ impl Config {
commit_attribution,
// The config.toml omits "_mode" because it's a config file. However, "_mode"
// is important in code to differentiate the mode from the store implementation.
cli_auth_credentials_store_mode: cfg.cli_auth_credentials_store.unwrap_or_default(),
cli_auth_credentials_store_mode: if env!("CARGO_PKG_VERSION") == "0.0.0"
&& cfg.cli_auth_credentials_store.unwrap_or_default()
!= AuthCredentialsStoreMode::Ephemeral
{
AuthCredentialsStoreMode::File
} else {
cfg.cli_auth_credentials_store.unwrap_or_default()
},
mcp_servers,
// The config.toml omits "_mode" because it's a config file. However, "_mode"
// is important in code to differentiate the mode from the store implementation.
mcp_oauth_credentials_store_mode: cfg.mcp_oauth_credentials_store.unwrap_or_default(),
mcp_oauth_credentials_store_mode: if env!("CARGO_PKG_VERSION") == "0.0.0" {
OAuthCredentialsStoreMode::File
} else {
cfg.mcp_oauth_credentials_store.unwrap_or_default()
},
mcp_oauth_callback_port: cfg.mcp_oauth_callback_port,
mcp_oauth_callback_url: cfg.mcp_oauth_callback_url.clone(),
model_providers,