Fix child agent startup routing and terminal failure status

This commit is contained in:
2026-09-18 16:30:34 -05:00
parent a29ee94d84
commit 2790407ad5
4 changed files with 134 additions and 7 deletions
+4 -2
View File
@@ -3445,7 +3445,7 @@ impl AIConversation {
};
let current_comment_state = self.code_review.as_ref().cloned();
task.add_messages(
let add_result = task.add_messages(
messages,
exchange_id,
TaskMessageContext {
@@ -3459,9 +3459,11 @@ impl AIConversation {
// to mimic the normal conversation flow. (If this is not a shared session, the
// exchange inputs will already be populated).
self.is_viewing_shared_session,
)?;
);
// Keep the task available for failure reporting even if message projection fails.
self.task_store.insert(task);
add_result?;
if !added_exchanges
.iter()
.any(|new_exchange_info| new_exchange_info.exchange_id == exchange_id)