The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(tinyagents): add round-trip test for checkpoint survival through transcript conversion
Steven Enamakel4ef4f75659cc
diff --git a/crates/openhuman-core/src/agent/tinyagents/compaction_carry_tests.rs b/crates/openhuman-core/src/agent/tinyagents/compaction_carry_tests.rsindex c62f0f4e29..822647f087 100644--- a/crates/openhuman-core/src/agent/tinyagents/compaction_carry_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/compaction_carry_tests.rs@@ -126,3 +126,16 @@ fn the_last_user_message_skips_checkpoints() {assert_eq!(last_user_message(&history), Some(&Message::user("real")));assert_eq!(last_user_message(&[checkpoint("only")]), None);}++#[test]+fn a_checkpoint_survives_the_session_transcript_round_trip() {+ // The driver hands persisted history to the harness through the native+ // transcript form; the checkpoint must still read as one on the far side,+ // or the next turn would summarize it as raw history.+ let original = checkpoint("## Goal\nship it");+ let native = crate::agent::message_convert::message_to_native_chat_message(&original)+ .expect("user rows convert");+ let back = crate::agent::message_convert::chat_message_to_message(&native);+ assert!(is_checkpoint(&back), "{back:?}");+ assert_eq!(back.text(), original.text());+}