diff --git a/.changeset/four-emus-invite.md b/.changeset/four-emus-invite.md new file mode 100644 index 00000000000..34c5ebf5afd --- /dev/null +++ b/.changeset/four-emus-invite.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Add a UI indicator while the context is condensing diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 63ed2253544..8777f595ce3 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -32,7 +32,7 @@ import { Markdown } from "./Markdown" import { CommandExecution } from "./CommandExecution" import { CommandExecutionError } from "./CommandExecutionError" import { AutoApprovedRequestLimitWarning } from "./AutoApprovedRequestLimitWarning" -import { ContextCondenseRow } from "./ContextCondenseRow" +import { CondensingContextRow, ContextCondenseRow } from "./ContextCondenseRow" interface ChatRowProps { message: ClineMessage @@ -929,6 +929,9 @@ export const ChatRowContent = ({ /> ) case "condense_context": + if (message.partial) { + return + } return message.contextCondense ? : null default: return ( diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 4c1ce902b2f..2f5eadc3ab9 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -979,8 +979,18 @@ const ChatViewComponent: React.ForwardRefRenderFunction { const { t } = useTranslation() @@ -14,6 +15,19 @@ export const ContextCondenseRow = ({ cost, prevContextTokens, newContextTokens,
setIsExpanded(!isExpanded)}> +
+ +
{t("chat:contextCondense.title")} @@ -33,3 +47,14 @@ export const ContextCondenseRow = ({ cost, prevContextTokens, newContextTokens,
) } + +export const CondensingContextRow = () => { + const { t } = useTranslation() + return ( +
+ + + {t("chat:contextCondense.condensing")} +
+ ) +} diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json index bff7eb1efb3..c84b2da67eb 100644 --- a/webview-ui/src/i18n/locales/ca/chat.json +++ b/webview-ui/src/i18n/locales/ca/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Context condensat", + "condensing": "Condensant context...", "tokens": "tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json index 89145300ce7..03ad678f2dd 100644 --- a/webview-ui/src/i18n/locales/de/chat.json +++ b/webview-ui/src/i18n/locales/de/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Kontext komprimiert", + "condensing": "Kontext wird komprimiert...", "tokens": "Tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index d443df39aa0..ce3ee7d7d3c 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -132,6 +132,7 @@ }, "contextCondense": { "title": "Context Condensed", + "condensing": "Condensing context...", "tokens": "tokens" }, "instructions": { diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json index 3b2576ac0e3..228f2668e99 100644 --- a/webview-ui/src/i18n/locales/es/chat.json +++ b/webview-ui/src/i18n/locales/es/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Contexto condensado", + "condensing": "Condensando contexto...", "tokens": "tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json index 860eb989472..f8bafe98e12 100644 --- a/webview-ui/src/i18n/locales/fr/chat.json +++ b/webview-ui/src/i18n/locales/fr/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Contexte condensé", + "condensing": "Condensation du contexte...", "tokens": "tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json index 21886ad0a57..f903fd97453 100644 --- a/webview-ui/src/i18n/locales/hi/chat.json +++ b/webview-ui/src/i18n/locales/hi/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "संदर्भ संक्षिप्त किया गया", + "condensing": "संदर्भ संघनित कर रहा है...", "tokens": "टोकन" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json index 34b737a4231..f6df9e2ff2b 100644 --- a/webview-ui/src/i18n/locales/it/chat.json +++ b/webview-ui/src/i18n/locales/it/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Contesto condensato", + "condensing": "Condensazione del contesto...", "tokens": "token" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json index 3b91864ac8b..822849b2ab0 100644 --- a/webview-ui/src/i18n/locales/ja/chat.json +++ b/webview-ui/src/i18n/locales/ja/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "コンテキスト要約", + "condensing": "コンテキストを圧縮中...", "tokens": "トークン" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json index 40222b5a370..04056f2010e 100644 --- a/webview-ui/src/i18n/locales/ko/chat.json +++ b/webview-ui/src/i18n/locales/ko/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "컨텍스트 요약됨", + "condensing": "컨텍스트 압축 중...", "tokens": "토큰" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json index f37cbfe4914..365f222f282 100644 --- a/webview-ui/src/i18n/locales/nl/chat.json +++ b/webview-ui/src/i18n/locales/nl/chat.json @@ -211,6 +211,7 @@ }, "contextCondense": { "title": "Context samengevat", + "condensing": "Context aan het samenvatten...", "tokens": "tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json index 22bdbbea4a9..7fbb1695767 100644 --- a/webview-ui/src/i18n/locales/pl/chat.json +++ b/webview-ui/src/i18n/locales/pl/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Kontekst skondensowany", + "condensing": "Kondensowanie kontekstu...", "tokens": "tokeny" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json index 63d7b205e0d..ee97a9051e3 100644 --- a/webview-ui/src/i18n/locales/pt-BR/chat.json +++ b/webview-ui/src/i18n/locales/pt-BR/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Contexto condensado", + "condensing": "Condensando contexto...", "tokens": "tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json index 44892244522..cf0c9355c66 100644 --- a/webview-ui/src/i18n/locales/ru/chat.json +++ b/webview-ui/src/i18n/locales/ru/chat.json @@ -211,6 +211,7 @@ }, "contextCondense": { "title": "Контекст сжат", + "condensing": "Сжатие контекста...", "tokens": "токены" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json index a7ee2117c71..8cf36f8d3e2 100644 --- a/webview-ui/src/i18n/locales/tr/chat.json +++ b/webview-ui/src/i18n/locales/tr/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Bağlam Özetlendi", + "condensing": "Bağlam yoğunlaştırılıyor...", "tokens": "token" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json index 46a7dfd7bcc..6480061d325 100644 --- a/webview-ui/src/i18n/locales/vi/chat.json +++ b/webview-ui/src/i18n/locales/vi/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "Ngữ cảnh đã tóm tắt", + "condensing": "Đang cô đọng ngữ cảnh...", "tokens": "token" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index 05a7d389ca8..db2161baf53 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "上下文已压缩", + "condensing": "正在压缩上下文...", "tokens": "tokens" }, "followUpSuggest": { diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json index aca6da7412f..ab7f573b60d 100644 --- a/webview-ui/src/i18n/locales/zh-TW/chat.json +++ b/webview-ui/src/i18n/locales/zh-TW/chat.json @@ -201,6 +201,7 @@ }, "contextCondense": { "title": "上下文已壓縮", + "condensing": "正在壓縮上下文...", "tokens": "tokens" }, "followUpSuggest": {