mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Enable conversation-scoped speed selection for Cloud turns (#61178)
## What changed - Stage Cloud speed choices for the next new turn in the conversation, alongside pending model and effort selections. Update the displayed conversation speed after admission without changing the local default. - Offer speed commands supported by the pending model. Clear an incompatible pending speed change with a warning when switching models. - Carry `service_tier` through Cloud message requests, preserving omission to inherit the thread tier and explicit null to clear it. Translate `default` to null and reject tier overrides on queued requests. ## Testing Add tests for Cloud speed toggling, model-dependent speed choices, admission-time updates, and preserving the conversation tier when selecting a model. Extend request and wire tests to cover service-tier values, explicit clearing, and queue rejection. GitOrigin-RevId: b4daa701f1fe29593d90a938e60cc20cb980298a
This commit is contained in:
committed by
copyberry
parent
72532ecae5
commit
b279cfb170
@@ -76,6 +76,17 @@ fn user_input_uses_stable_id_and_the_existing_cloud_configuration() {
|
||||
);
|
||||
assert!(matches!(request.mode, cloud::SubmissionMode::StartIfIdle));
|
||||
assert!(!request.shared_access);
|
||||
assert_eq!(request.service_tier, None);
|
||||
|
||||
for (tier, expected) in [("ultrafast", Some("ultrafast")), ("default", None)] {
|
||||
let request = cloud_message(protocol::TurnStartParams {
|
||||
turn_trigger: Some("user".into()),
|
||||
service_tier: Some(Some(tier.into())),
|
||||
..message()
|
||||
})
|
||||
.unwrap();
|
||||
assert_eq!(request.service_tier, Some(expected.map(str::to_owned)));
|
||||
}
|
||||
|
||||
for tier in ["default", "priority"] {
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user