Skip to content

Commit 9e0b17f

Browse files
committed
message import fixes
1 parent 7796ed1 commit 9e0b17f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.config/nextest.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
[profile.default]
3+
final-status-level = "slow"
4+
5+
[profile.ci]
6+
# Don't fail fast in CI to run the full test suite.
7+
fail-fast = false
8+
slow-timeout = { period = "60s", terminate-after = 1 }

crates/pattern_surreal_compat/src/convert.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ use crate::groups::{AgentGroup, CoordinationPattern};
4040
use crate::memory::{MemoryBlock as OldMemoryBlock, MemoryPermission as OldPermission, MemoryType};
4141
use crate::message::{
4242
AgentMessageRelation, BatchType as OldBatchType, ChatRole, Message as OldMessage,
43+
MessageRelationType,
4344
};
4445

4546
/// Options for CAR conversion.
@@ -837,7 +838,7 @@ fn convert_message(
837838
batch_type: old.batch_type.map(|bt| convert_batch_type(&bt)),
838839
source: None,
839840
source_metadata: None,
840-
is_archived: false,
841+
is_archived: matches!(relation.message_type, MessageRelationType::Archived),
841842
is_deleted: false,
842843
created_at: old.created_at,
843844
}

0 commit comments

Comments
 (0)