feat(agents): chat-style conversation view with folded tool runs, tags, jump-to-latest and retract (#2067)

* feat(agents): chat-style conversation view with folded tool runs, tags, jump-to-latest and retract (#1980)

- Lay the conversation out as chat: user messages on the right, agent replies on the left, each with an author row, a card, actions in the header and a time/duration footer.
- Fold consecutive reasoning and finished tool calls into one collapsible 'Reasoning - N tool calls' row with +added / -removed counts; running tools stay expanded.
- Render @file and /skill references in message text as distinct tags.
- Load earlier entries in batches without moving the viewport, offer 'Jump to Latest' when scrolled away, and defer loading while the scrollbar is dragged.
- Add 'Retract Message': stop the agent, drop that turn and every later one, and put the original text/images back in the composer.
- Drop the catalog entry for the replaced duration tooltip.

* fix(agents): preserve conversation scrolling and retract state

---------

Co-authored-by: SunZhiQiang <[email protected]>
Co-authored-by: l0ng-ai <[email protected]>
Цей коміт міститься в:
authored and GitHub committed 2026-11-08 06:57:09 +08:00
1 джерело 04b1b863df
коміт 826e5837b1
17 files changed
+1042 -234

No files matched your search

+7 -1
Переглянути файл
@@ -369,5 +369,11 @@
"Absolute Path": "Absolute Path",
"Nothing to paste: the clipboard history is empty": "Nothing to paste: the clipboard history is empty",
"Filter clipboard history": "Filter clipboard history",
"Ask": "Ask"
"Ask": "Ask",
"You": "You",
"Jump to Latest": "Jump to Latest",
"Retract Message": "Retract Message",
"Retract": "Retract",
"Couldn't retract the message": "Couldn't retract the message",
"The agent is still stopping. Try again once it has stopped.": "The agent is still stopping. Try again once it has stopped."
}
-1
Переглянути файл
@@ -4470,7 +4470,6 @@
"Find in Conversation": "Buscar en la conversación",
"Find in conversation": "Buscar en la conversación",
"0 results": "0 resultados",
"Time the agent took to answer": "Tiempo que tardó el agente en responder",
"Time the agent spent on this task": "Tiempo que dedicó el agente a esta tarea",
"Send Again": "Enviar de nuevo",
"Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Personalice la apariencia y el comportamiento del IDE: cambie temas y tamaño de fuente, configure ajustes del sistema y notificaciones.",
-1
Переглянути файл
@@ -4319,7 +4319,6 @@
"Find in Conversation": "Rechercher dans la conversation",
"Find in conversation": "Rechercher dans la conversation",
"0 results": "0 résultat",
"Time the agent took to answer": "Temps de réponse de l'agent",
"Time the agent spent on this task": "Temps passé par l'agent sur cette tâche",
"Send Again": "Renvoyer",
"Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Personnalisez l'apparence et le comportement de l'IDE : thèmes, taille de police, paramètres système et notifications.",
-1
Переглянути файл
@@ -4543,7 +4543,6 @@
"Find in Conversation": "대화에서 찾기",
"Find in conversation": "대화에서 찾기",
"0 results": "결과 0개",
"Time the agent took to answer": "에이전트가 응답하는 데 걸린 시간",
"Time the agent spent on this task": "에이전트가 이 작업에 소요한 시간",
"Send Again": "다시 보내기",
"Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "IDE 모양과 동작을 사용자 지정합니다. 테마와 글꼴 크기를 변경하고 시스템 설정과 알림을 구성합니다.",
-1
Переглянути файл
@@ -4422,7 +4422,6 @@
"Find in Conversation": "Znajdź w rozmowie",
"Find in conversation": "Znajdź w rozmowie",
"0 results": "0 wyników",
"Time the agent took to answer": "Czas odpowiedzi agenta",
"Time the agent spent on this task": "Czas spędzony przez agenta nad tym zadaniem",
"Send Again": "Wyślij ponownie",
"Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Dostosuj wygląd i zachowanie IDE: zmieniaj motywy i rozmiary czcionek, konfiguruj ustawienia systemowe i powiadomienia.",
-1
Переглянути файл
@@ -4435,7 +4435,6 @@
"Find in Conversation": "Localizar na conversa",
"Find in conversation": "Localizar na conversa",
"0 results": "0 resultados",
"Time the agent took to answer": "Tempo que o agente levou para responder",
"Time the agent spent on this task": "Tempo que o agente gastou nesta tarefa",
"Send Again": "Enviar novamente",
"Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "Personalize a aparência e o comportamento da IDE: altere temas e tamanho da fonte, configure as opções do sistema e notificações.",
+7 -2
Переглянути файл
@@ -4725,7 +4725,6 @@
"Find in Conversation": "在对话中查找",
"Find in conversation": "在对话中查找",
"0 results": "0 个结果",
"Time the agent took to answer": "智能体回答所用的时间",
"Time the agent spent on this task": "智能体在此任务上花费的时间",
"Send Again": "再次发送",
"Customize IDE appearance and behavior: change themes and font size, configure system settings and notifications.": "自定义 IDE 的外观和行为:更改主题和字号,配置系统设置和通知。",
@@ -6724,5 +6723,11 @@
"Copy Path From Source Root": "复制相对于源根的路径",
"Copied {text}": "已复制 {text}",
"Reference": "引用",
"Insert imports on paste": "粘贴时插入导入"
"Insert imports on paste": "粘贴时插入导入",
"You": "你",
"Jump to Latest": "跳转到最新位置",
"Retract Message": "撤回消息",
"Retract": "撤回",
"Couldn't retract the message": "无法撤回消息",
"The agent is still stopping. Try again once it has stopped.": "智能体仍在停止中。请在停止后重试。"
}