WIP fase 2b-3: rimozione sottosistemi solo-ChatGPT (plugin remoti, image gen, daybreak, cyber, attestation, cloud config, app/connettori) - test in corso
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,8 @@ use codex_core::InheritedSessionId;
|
||||
use codex_core::ThreadManager;
|
||||
use codex_core::TurnInputRequest;
|
||||
use codex_core::TurnStartOptions;
|
||||
use codex_core::X_CODEX_ROUTING_HINT_HEADER;
|
||||
/// No request may carry the hosted backend routing hint.
|
||||
const X_CODEX_ROUTING_HINT_HEADER: &str = "x-codex-routing-hint";
|
||||
use codex_features::Feature;
|
||||
use codex_protocol::ThreadId;
|
||||
use codex_protocol::config_types::ServiceTier;
|
||||
@@ -156,15 +157,7 @@ async fn spawned_agent_prewarm_handshake_inherits_effective_root_service_tier(
|
||||
"child startup should connect before its first turn"
|
||||
);
|
||||
let handshakes = server.handshakes();
|
||||
let expected_hint = if tier_enabled {
|
||||
format!("model=gpt-5.4;tier={tier}")
|
||||
} else {
|
||||
"model=gpt-5.4".to_string()
|
||||
};
|
||||
assert_eq!(
|
||||
handshakes[1].header(X_CODEX_ROUTING_HINT_HEADER),
|
||||
Some(expected_hint)
|
||||
);
|
||||
assert_eq!(handshakes[1].header(X_CODEX_ROUTING_HINT_HEADER), None);
|
||||
let child_warmup = tokio::time::timeout(
|
||||
Duration::from_secs(5),
|
||||
server.wait_for_request(/*connection_index*/ 1, /*request_index*/ 0),
|
||||
@@ -361,7 +354,7 @@ async fn detached_host_child_inherits_root_service_tier_at_prewarm_and_each_step
|
||||
.body_json();
|
||||
assert_eq!(
|
||||
server.handshakes()[1].header(X_CODEX_ROUTING_HINT_HEADER),
|
||||
Some("model=gpt-5.4;tier=priority".into())
|
||||
None
|
||||
);
|
||||
assert_eq!(warmup["generate"], false);
|
||||
assert_eq!(warmup["service_tier"], "priority");
|
||||
@@ -901,10 +894,7 @@ async fn websocket_v2_first_turn_sends_full_create_when_tier_changes_after_start
|
||||
server
|
||||
.single_handshake()
|
||||
.header(X_CODEX_ROUTING_HINT_HEADER),
|
||||
Some(match startup_tier {
|
||||
Some(tier) => format!("model={model};tier={tier}"),
|
||||
None => format!("model={model}"),
|
||||
})
|
||||
None
|
||||
);
|
||||
let connection = server.single_connection();
|
||||
assert_eq!(connection.len(), 2);
|
||||
|
||||
Reference in New Issue
Block a user