style(runner): rustfmt the sidecar rejection change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Opus 5.5 committed 2026-11-24 16:46:10 -06:00
1 parent 48caed2d3a
commit 113cc95262
2 files changed
+11 -4

No files matched your search

@@ -1311,8 +1311,13 @@ fn sidecar_rejection_detail(command: &str, error: &ResponseError) -> Value {
"invalid_code"
};
let mut detail = json!({ "command": command, "code": code });
let cause_message = validated_provider_failure(error.provider_failure.clone())
.and_then(|cause| cause.get("message").and_then(Value::as_str).map(str::to_owned));
let cause_message =
validated_provider_failure(error.provider_failure.clone()).and_then(|cause| {
cause
.get("message")
.and_then(Value::as_str)
.map(str::to_owned)
});
if cause_message.as_deref() != Some(error.message.as_str()) {
let message: String = crate::durable::redact_sensitive_text_values(&error.message)
.chars()
@@ -376,8 +376,10 @@ fn session_open_rejection_keeps_the_sidecar_code_and_reason_outside_the_error_te
assert_eq!(error.provider_failure(), Some(cause));
assert_eq!(
error.sidecar_rejection(),
Some(json!({ "command": "session.open", "code": "ANTIGRAVITY_SWARM_UNAVAILABLE",
"message": "The Antigravity CLI offered 2 models: gemini-4-argon-low, gemini-3.8-flash-low" }))
Some(
json!({ "command": "session.open", "code": "ANTIGRAVITY_SWARM_UNAVAILABLE",
"message": "The Antigravity CLI offered 2 models: gemini-4-argon-low, gemini-3.8-flash-low" })
)
);
sidecar.shutdown().unwrap();
// A code outside the closed identifier shape fails the frame contract and is never echoed.