Lots of changes... not done yet.

This commit is contained in:
Ryan Ward
2026-08-17 18:19:37 -05:00
parent b5f3290d1a
commit 56e3b51d48
55 changed files with 4494 additions and 1098 deletions
+4 -2
View File
@@ -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);
}
+10 -4
View File
@@ -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),
);
});
}