fix: repair main build after cross-PR merge skew (#1020)

This commit is contained in:
Will Pfleger
2026-06-12 18:20:16 -04:00
committed by GitHub
parent 87e45c65bf
commit b8c0556e7c
2 changed files with 2 additions and 1 deletions

View File

@@ -3159,6 +3159,7 @@ mod error_outcome_emission_tests {
max_turn_duration_secs: 3600,
agents: 1,
heartbeat_interval_secs: 0,
turn_liveness_secs: 10,
heartbeat_prompt: None,
system_prompt: None,
initial_message: None,

View File

@@ -80,7 +80,7 @@ fn decode_webkit_local_storage_value(bytes: &[u8]) -> Option<String> {
return Some(String::new());
}
if bytes.len() % 2 == 0 {
if bytes.len().is_multiple_of(2) {
let has_utf16_ascii_shape = bytes.chunks_exact(2).any(|chunk| chunk[1] == 0);
if has_utf16_ascii_shape {
let utf16: Vec<u16> = bytes