Lots of changes... not done yet.
This commit is contained in:
@@ -178,8 +178,10 @@ impl TerminalView {
|
||||
|
||||
let mut result = Vec::new();
|
||||
for exchange in conversation.root_task_exchanges() {
|
||||
let formatted_exchange =
|
||||
exchange.format_for_copy(Some(self.ai_action_model.as_ref(ctx)));
|
||||
let formatted_exchange = exchange.format_for_copy_for_conversation(
|
||||
Some(self.ai_action_model.as_ref(ctx)),
|
||||
Some(conversation_id),
|
||||
);
|
||||
if !formatted_exchange.is_empty() {
|
||||
result.push(formatted_exchange);
|
||||
}
|
||||
|
||||
@@ -364,7 +364,9 @@ impl TerminalView {
|
||||
}) => {
|
||||
if let Some(result) =
|
||||
self.ai_action_model.read(ctx, |action_model, _| {
|
||||
action_model.get_action_result(&action.id).cloned()
|
||||
action_model
|
||||
.get_action_result(conversation_id, &action.id)
|
||||
.cloned()
|
||||
})
|
||||
{
|
||||
if let AIAgentActionResultType::CreateDocuments(
|
||||
@@ -402,7 +404,9 @@ impl TerminalView {
|
||||
AIAgentActionType::EditDocuments { .. } => {
|
||||
if let Some(result) =
|
||||
self.ai_action_model.read(ctx, |action_model, _| {
|
||||
action_model.get_action_result(&action.id).cloned()
|
||||
action_model
|
||||
.get_action_result(conversation_id, &action.id)
|
||||
.cloned()
|
||||
})
|
||||
{
|
||||
if let AIAgentActionResultType::EditDocuments(
|
||||
@@ -449,8 +453,10 @@ impl TerminalView {
|
||||
|
||||
for conversation in &conversations {
|
||||
self.ai_action_model.update(ctx, |action_model, _ctx| {
|
||||
action_model
|
||||
.restore_action_results_from_exchanges(exchanges_for_blocklist(conversation));
|
||||
action_model.restore_action_results_from_exchanges(
|
||||
conversation.id(),
|
||||
exchanges_for_blocklist(conversation),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user