aKode: eliminato chatgpt_base_url ormai inutilizzato
- La chiave è ancora accettata nei file di configurazione ma ignorata. - Schemi JSON e TypeScript dell'app-server rigenerati; i bundle ora si chiamano akode_app_server_protocol*.schemas.json, come produce il generatore. - app-server: niente più avviso unused_mut nella build release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -424,7 +424,8 @@ pub struct ConfigToml {
|
||||
/// `default`, `priority`, or `flex`; legacy `fast` also works).
|
||||
pub service_tier: Option<String>,
|
||||
|
||||
/// Base URL for requests to ChatGPT (as opposed to the OpenAI API).
|
||||
/// Ignored. Kept so existing config files still load.
|
||||
#[schemars(skip)]
|
||||
pub chatgpt_base_url: Option<String>,
|
||||
|
||||
/// Optional product SKU forwarded on host-owned Codex Apps MCP requests.
|
||||
@@ -1025,6 +1026,25 @@ mod tests {
|
||||
const WORKSPACE_ID_A: &str = "123e4567-e89b-42d3-a456-426614174000";
|
||||
const WORKSPACE_ID_B: &str = "123e4567-e89b-42d3-a456-426614174001";
|
||||
|
||||
#[test]
|
||||
fn removed_chatgpt_base_url_key_is_still_accepted() {
|
||||
let config: ConfigToml = toml::from_str(
|
||||
r#"
|
||||
chatgpt_base_url = "https://example.test/backend-api/"
|
||||
|
||||
[profiles.work]
|
||||
chatgpt_base_url = "https://example.test/backend-api/"
|
||||
"#,
|
||||
)
|
||||
.expect("config with the removed key should still load");
|
||||
assert!(config.profiles.contains_key("work"));
|
||||
|
||||
toml::from_str::<crate::ConfigRequirementsToml>(
|
||||
r#"chatgpt_base_url = "https://example.test/backend-api/""#,
|
||||
)
|
||||
.expect("requirements with the removed key should still load");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sandbox_mode_uses_executor_platform_and_sandbox_level() {
|
||||
use Platform::Linux;
|
||||
|
||||
Reference in New Issue
Block a user