Tolti i link alla documentazione OpenAI dai messaggi (B)

Parte "sicurezza" di 9636b74c e 83959bcc (senza protezione dai loop ne' grafo del codice):
- via i riferimenti a developers.openai.com da avvisi dei feature flag, profili, bubblewrap,
  memorie, MCP e sandbox di Windows (i link non sono sostituiti da altri);
- firma del baseline git: aKode <akode@localhost> invece di noreply@openai.com;
- test dei soli link rimossi (conservazione dell'hyperlink della documentazione MCP e Windows)
  eliminati con il codice che verificavano; altri test di messaggi adattati.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 12:50:15 +01:00
parent a354f0f00c
commit 8147e89f28
12 changed files with 10 additions and 134 deletions

View File

@@ -133,8 +133,6 @@ async fn first_layer_config_error_from_entries(layers: &[ConfigLayerEntry]) -> O
///
/// (*) Only available on macOS via managed device profiles.
///
/// See https://developers.openai.com/codex/security for details.
///
/// When loading the config stack for a thread, there should be a `cwd`
/// associated with it such that `cwd` should be `Some(...)`. Only for
/// thread-agnostic config loading (e.g., for the app server's `/config`
@@ -286,7 +284,7 @@ pub async fn load_config_layers_state(
return Err(io::Error::new(
io::ErrorKind::InvalidData,
format!(
"--profile `{active_user_profile}` cannot be used while {} contains legacy `profile = \"{active_user_profile}\"` or `[profiles.{active_user_profile}]` config; move those settings into {} and remove the legacy profile selector/table. See https://developers.openai.com/codex/config-advanced#profiles for more information.",
"--profile `{active_user_profile}` cannot be used while {} contains legacy `profile = \"{active_user_profile}\"` or `[profiles.{active_user_profile}]` config; move those settings into {} and remove the legacy profile selector/table.",
base_user_file.as_path().display(),
active_user_file.as_path().display()
),

View File

@@ -897,10 +897,6 @@ model = "gpt-work"
message.contains("[profiles.work]"),
"unexpected error message: {message}"
);
assert!(
message.contains("https://developers.openai.com/codex/config-advanced#profiles"),
"unexpected error message: {message}"
);
}
#[tokio::test]