Fix Bedrock not being used: enable by default, remove model_id gating, set fallback default model

- bedrock_enabled default: false -> true (was never routing to Bedrock)
- Remove is_bedrock_model check from bedrock_config_if_applicable (model_id
  could be 'auto' from server-populated prefs, causing Bedrock to be skipped)
- Default to claude-sonnet-4 when model_id is empty or 'auto'
- fallback_to_warp default: true -> false (no server exists)
- Smoke test: exit immediately on no-text with diagnostic info instead of
  polling forever
This commit is contained in:
Ryan Ward
2026-05-12 10:10:00 -05:00
parent 0009f1366a
commit e13ed355f6
5 changed files with 62 additions and 35 deletions
@@ -14,7 +14,7 @@ use crate::{
conversation::AIConversationId,
AIIdentifiers, CancellationReason,
},
bedrock::{client::BedrockClientConfig, models::is_bedrock_model},
bedrock::client::BedrockClientConfig,
},
network::NetworkStatus,
report_error, send_telemetry_from_ctx,
@@ -85,17 +85,13 @@ pub struct ResponseStream {
impl ResponseStream {
fn bedrock_config_if_applicable(
model_id: &str,
_model_id: &str,
ctx: &ModelContext<Self>,
) -> Option<BedrockClientConfig> {
let settings = AISettings::as_ref(ctx);
if !*settings.bedrock_enabled.value() {
return None;
}
let configured_models = settings.bedrock_models.value().clone();
if !is_bedrock_model(model_id, &configured_models) {
return None;
}
let auth_method = *settings.bedrock_auth_method.value();
Some(BedrockClientConfig {
auth_method,