Skip to content

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

test: add new struct fields to test fixtures

Steven Enamakel251b8681f999
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs
index 9d448de932..8d8b3da861 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs
@@ -301,6 +301,7 @@ fn resumed<'a>(prefix: &'a PrefixSnapshot, history: &'a [Message]) -> SessionSta
history,
raw_history: &[],
prefix,
+ prefix_is_frozen: !prefix.messages().is_empty(),
transcript_target: None,
committed_turns: 1,
resumed: true,
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
index d53d71b0cc..b9c46134cb 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
@@ -359,6 +359,7 @@ async fn reserved_channel_thread_id_survives_metadata_edit_without_prefix_collis
message_id.into(),
ConversationMessagePatch {
extra_metadata: Some(json!({"scope": "web"})),
+ merge_extra_metadata: None,
},
)
.await
diff --git a/crates/openhuman-core/src/threads/ops/crud.rs b/crates/openhuman-core/src/threads/ops/crud.rs
index e66bca3e46..d8b022bd04 100644
--- a/crates/openhuman-core/src/threads/ops/crud.rs
+++ b/crates/openhuman-core/src/threads/ops/crud.rs
@@ -408,6 +408,7 @@ pub async fn message_update(
request.message_id.clone(),
ConversationMessagePatch {
extra_metadata: request.extra_metadata,
+ merge_extra_metadata: None,
},
)
.await?;
diff --git a/crates/openhuman-core/src/threads/store/blocking_tests.rs b/crates/openhuman-core/src/threads/store/blocking_tests.rs
index c152480297..9c8624ca57 100644
--- a/crates/openhuman-core/src/threads/store/blocking_tests.rs
+++ b/crates/openhuman-core/src/threads/store/blocking_tests.rs
@@ -346,6 +346,7 @@ async fn update_message_patches_metadata_and_search_finds_content() {
"m1".to_string(),
ConversationMessagePatch {
extra_metadata: Some(json!({"pinned": true})),
+ merge_extra_metadata: None,
},
)
.await