Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 41 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 41 additions & 7 deletions crates/openhuman-app/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/openhuman-core/src/channels/context_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fn channel_message(channel: &str) -> traits::ChannelMessage {
reply_target: "reply".into(),
thread_ts: Some("thread-1".into()),
timestamp: 0,
sender_name: None,
}
}

Expand Down
10 changes: 10 additions & 0 deletions crates/openhuman-core/src/channels/routes_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ fn model_command_messages_use_thread_aware_history_keys() {
channel: "discord".into(),
timestamp: 0,
thread_ts: Some("thread-1".into()),
sender_name: None,
};
assert_eq!(
super::super::context::conversation_history_key(&msg),
Expand Down Expand Up @@ -252,6 +253,7 @@ async fn handle_runtime_command_unknown_provider_sends_helpful_error() {
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("thread-1".into()),
sender_name: None,
};

let handled = handle_runtime_command_if_needed(&ctx, &msg, Some(&channel)).await;
Expand Down Expand Up @@ -283,6 +285,7 @@ async fn handle_runtime_command_set_model_clears_sender_history_and_persists_rou
channel: "telegram".into(),
timestamp: 0,
thread_ts: None,
sender_name: None,
};

let handled = handle_runtime_command_if_needed(&ctx, &msg, Some(&channel)).await;
Expand Down Expand Up @@ -320,6 +323,7 @@ async fn handle_runtime_command_telegram_status_replies_without_agent() {
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("42".into()),
sender_name: None,
};

let handled = handle_runtime_command_if_needed(&ctx, &msg, Some(&channel)).await;
Expand All @@ -342,6 +346,7 @@ async fn handle_runtime_command_without_target_channel_still_consumes_command()
channel: "telegram".into(),
timestamp: 0,
thread_ts: None,
sender_name: None,
};

let handled = handle_runtime_command_if_needed(&ctx, &msg, None).await;
Expand All @@ -361,6 +366,7 @@ async fn handle_runtime_command_telegram_help_replies_with_remote_command_list()
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("42".into()),
sender_name: None,
};

let handled = handle_runtime_command_if_needed(&ctx, &msg, Some(&channel)).await;
Expand Down Expand Up @@ -391,6 +397,7 @@ async fn handle_runtime_command_telegram_sessions_reports_empty_store() {
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("42".into()),
sender_name: None,
};

let handled = handle_runtime_command_if_needed(&ctx, &msg, Some(&channel)).await;
Expand Down Expand Up @@ -425,6 +432,7 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("42".into()),
sender_name: None,
};
assert!(handle_runtime_command_if_needed(&ctx, &new_msg, Some(&channel)).await);
assert!(ctx
Expand Down Expand Up @@ -469,6 +477,7 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("42".into()),
sender_name: None,
};
assert!(handle_runtime_command_if_needed(&ctx, &status_msg, Some(&channel)).await);

Expand All @@ -480,6 +489,7 @@ async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {
channel: "telegram".into(),
timestamp: 0,
thread_ts: Some("42".into()),
sender_name: None,
};
assert!(handle_runtime_command_if_needed(&ctx, &sessions_msg, Some(&channel)).await);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fn cm(channel: &str, reply_target: &str) -> traits::ChannelMessage {
reply_target: reply_target.into(),
thread_ts: None,
timestamp: 0,
sender_name: None,
}
}

Expand Down
1 change: 1 addition & 0 deletions crates/openhuman-core/src/channels/runtime/test_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ pub async fn run_dispatch_harness(options: DispatchHarnessOptions) -> DispatchHa
channel: options.channel_name,
timestamp: 1,
thread_ts: options.thread_ts,
sender_name: None,
};
if let Some(inbound_envelope) = options.inbound_envelope {
process_channel_runtime_message(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ async fn discord_inbound_dispatches_through_full_pipeline() {
channel: "discord".to_string(),
timestamp: 1,
thread_ts: None,
sender_name: None,
},
)
.await;
Expand Down Expand Up @@ -205,6 +206,7 @@ async fn discord_threaded_message_does_not_emit_reaction_ack() {
channel: "discord".to_string(),
timestamp: 1,
thread_ts: Some("thread-42".to_string()),
sender_name: None,
},
)
.await;
Expand Down Expand Up @@ -253,6 +255,7 @@ async fn discord_thread_ts_splits_conversation_history_end_to_end() {
channel: "discord".to_string(),
timestamp: 1,
thread_ts: Some("thread-A".to_string()),
sender_name: None,
};

let second = traits::ChannelMessage {
Expand Down
Loading
Loading