Skip to content

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

test: add prefix_reset field to transcript meta fixtures

Steven Enamakel00ffb8cc3cd5
diff --git a/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs b/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs
index d3d1071a24..09b746b83b 100644
--- a/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/codec_adoption_tests.rs
@@ -5,6 +5,7 @@ fn meta() -> tinyagents_session::transcript::TranscriptMeta {
tinyagents_session::transcript::TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "adapter-test".into(),
agent_id: Some("adapter-test".into()),
agent_type: Some("root".into()),
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
index a01c753029..a8725871df 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
@@ -343,6 +343,7 @@ fn meta() -> TranscriptMeta {
TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "adapter-test".into(),
agent_id: Some("adapter-test".into()),
agent_type: Some("root".into()),
diff --git a/crates/openhuman-core/src/agent/session_store/mod_tests.rs b/crates/openhuman-core/src/agent/session_store/mod_tests.rs
index 549e277dd4..8583faad86 100644
--- a/crates/openhuman-core/src/agent/session_store/mod_tests.rs
+++ b/crates/openhuman-core/src/agent/session_store/mod_tests.rs
@@ -98,6 +98,7 @@ async fn without_a_store_transcripts_come_from_the_workspace_store_not_files() {
task_id: None,
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
};
let history = locator
.open_stem(
diff --git a/crates/openhuman-core/src/agent/session_store/splice_fixture.rs b/crates/openhuman-core/src/agent/session_store/splice_fixture.rs
index 51f56c2eb0..4473ec5804 100644
--- a/crates/openhuman-core/src/agent/session_store/splice_fixture.rs
+++ b/crates/openhuman-core/src/agent/session_store/splice_fixture.rs
@@ -88,5 +88,6 @@ pub(crate) fn blank_meta() -> TranscriptMeta {
task_id: None,
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
}
}
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs
index 53ce3f4b89..74674def15 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs
@@ -57,6 +57,7 @@ fn read_stem(
task_id: None,
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
};
locator
.open_stem(stem, seed)
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
index f0ec662f3a..7917ff10c7 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
@@ -34,6 +34,7 @@ fn read_stem(
task_id: None,
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
};
locator
.open_stem(stem, seed)
diff --git a/crates/openhuman-core/src/config/migrations/mod_tests.rs b/crates/openhuman-core/src/config/migrations/mod_tests.rs
index 4234363c1c..ffa1177589 100644
--- a/crates/openhuman-core/src/config/migrations/mod_tests.rs
+++ b/crates/openhuman-core/src/config/migrations/mod_tests.rs
@@ -52,6 +52,7 @@ fn meta() -> TranscriptMeta {
TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "main".into(),
agent_id: None,
agent_type: None,
diff --git a/crates/openhuman-core/src/config/migrations/phase_out_profile_md_tests.rs b/crates/openhuman-core/src/config/migrations/phase_out_profile_md_tests.rs
index 8efc858527..34e8982408 100644
--- a/crates/openhuman-core/src/config/migrations/phase_out_profile_md_tests.rs
+++ b/crates/openhuman-core/src/config/migrations/phase_out_profile_md_tests.rs
@@ -15,6 +15,7 @@ fn meta() -> TranscriptMeta {
TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "main".into(),
agent_id: None,
agent_type: None,
diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
index 5cf4b4eee3..76a78506cb 100644
--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery_tests.rs
@@ -197,6 +197,7 @@ fn meta() -> TranscriptMeta {
TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "orchestrator".into(),
agent_id: Some("orchestrator".into()),
agent_type: None,
diff --git a/crates/openhuman-core/src/storage/import/sessions_tests.rs b/crates/openhuman-core/src/storage/import/sessions_tests.rs
index 0edb5b1d1b..1ad25a54e7 100644
--- a/crates/openhuman-core/src/storage/import/sessions_tests.rs
+++ b/crates/openhuman-core/src/storage/import/sessions_tests.rs
@@ -62,6 +62,7 @@ fn meta(thread: &str, agent: &str) -> TranscriptMeta {
task_id: None,
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
}
}
diff --git a/crates/openhuman-core/src/threads/ops/edit_tests.rs b/crates/openhuman-core/src/threads/ops/edit_tests.rs
index 778330c6c6..5787fa8e23 100644
--- a/crates/openhuman-core/src/threads/ops/edit_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/edit_tests.rs
@@ -45,6 +45,7 @@ fn base_meta(agent_id: &str, thread_id: &str) -> TranscriptMeta {
task_id: None,
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
}
}
diff --git a/crates/openhuman-core/src/threads/ops/transcript_tests.rs b/crates/openhuman-core/src/threads/ops/transcript_tests.rs
index 30180be306..ec39109b84 100644
--- a/crates/openhuman-core/src/threads/ops/transcript_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/transcript_tests.rs
@@ -56,6 +56,7 @@ fn meta(agent: &str, agent_type: &str) -> TranscriptMeta {
session_id: None,
parent_session_id: None,
prefix_reset: false,
+ prefix_reset: false,
}
}
diff --git a/crates/openhuman-core/src/threads/transcript_host_tests.rs b/crates/openhuman-core/src/threads/transcript_host_tests.rs
index 3eb4bcbedf..58ba544734 100644
--- a/crates/openhuman-core/src/threads/transcript_host_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_host_tests.rs
@@ -177,6 +177,7 @@ fn text_dialect_tool_turn_projects_calls_on_their_issuing_row_as_settled() {
let meta = transcript::TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "orchestrator".into(),
agent_id: Some("orchestrator".into()),
agent_type: Some("root".into()),
@@ -361,6 +362,7 @@ fn tool_failure_metadata_round_trips_write_to_display_line() {
let meta = transcript::TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "orchestrator".into(),
agent_id: Some("orchestrator".into()),
agent_type: Some("root".into()),
diff --git a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
index cc38a08422..37c7d9b898 100644
--- a/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
+++ b/crates/openhuman-core/src/web_chat/session_checkout_tests.rs
@@ -57,6 +57,7 @@ fn write_thread_transcript(workspace_dir: &Path, stem: &str, thread_id: &str, ro
let meta = TranscriptMeta {
session_id: None,
parent_session_id: None,
+ prefix_reset: false,
agent_name: "orchestrator_thread".into(),
agent_id: Some("orchestrator".into()),
agent_type: Some("root".into()),