Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(todos): remove unnecessary Option wrapper in hex decoding\n\nThe `bytes` variable was wrapped in `Option<Vec<u8>>` but the subsequent code always expects a `Vec<u8>`, making the `Option` redundant. This change removes the unnecessary wrapper to simplify the type and avoid potential confusion.\n\nAuto-committed-on: dragonfly\n

Steven Enamakeld23f755d8035
diff --git a/src/openhuman/threads/todos/runs.rs b/src/openhuman/threads/todos/runs.rs
index 3cb360633e..eafdae2315 100644
--- a/src/openhuman/threads/todos/runs.rs
+++ b/src/openhuman/threads/todos/runs.rs
@@ -228,7 +228,7 @@ fn legacy_thread_id(path: &Path) -> Option<String> {
if hex.is_empty() || hex.len() % 2 != 0 || !hex.is_ascii() {
return None;
}
- let bytes: Option<Vec<u8>> = hex
+ let bytes: Vec<u8> = hex
.as_bytes()
.chunks_exact(2)
.map(|pair| {