diff --git a/.changeset/v3.45.0.md b/.changeset/v3.45.0.md
new file mode 100644
index 00000000000..74e5b3511b6
--- /dev/null
+++ b/.changeset/v3.45.0.md
@@ -0,0 +1,7 @@
+---
+"roo-cline": minor
+---
+
+
+
+- Smart Code Folding: Context condensation now intelligently preserves a lightweight map of files you worked on—function signatures, class declarations, and type definitions—so Roo can continue referencing them accurately after condensing. Files are prioritized by most recent access, with a ~50k character budget ensuring your latest work is always preserved. (Idea by @shariqriazz, PR #10942 by @hannesrudolph)
diff --git a/releases/3.45.0-release.png b/releases/3.45.0-release.png
new file mode 100644
index 00000000000..53e2016420f
Binary files /dev/null and b/releases/3.45.0-release.png differ
diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts
index 7c7a749eca9..a13c0f00677 100644
--- a/src/core/webview/ClineProvider.ts
+++ b/src/core/webview/ClineProvider.ts
@@ -159,7 +159,7 @@ export class ClineProvider
public isViewLaunched = false
public settingsImportedAt?: number
- public readonly latestAnnouncementId = "jan-2026-v3.44.0-worktrees" // v3.44.0 Worktrees
+ public readonly latestAnnouncementId = "jan-2026-v3.45.0-smart-code-folding" // v3.45.0 Smart Code Folding
public readonly providerSettingsManager: ProviderSettingsManager
public readonly customModesManager: CustomModesManager
diff --git a/webview-ui/src/components/chat/Announcement.tsx b/webview-ui/src/components/chat/Announcement.tsx
index f005e25f29c..7e13c34de68 100644
--- a/webview-ui/src/components/chat/Announcement.tsx
+++ b/webview-ui/src/components/chat/Announcement.tsx
@@ -44,12 +44,7 @@ const Announcement = ({ hideAnnouncement }: AnnouncementProps) => {
{t("chat:announcement.release.heading")}
- -
- }}
- />
-
+ - {t("chat:announcement.release.smartCodeFolding")}
@@ -127,18 +122,4 @@ const CareersLink = ({ children }: { children?: ReactNode }) => (
)
-const WorktreesSettingsLink = ({ children }: { children?: ReactNode }) => (
- {
- e.preventDefault()
- window.postMessage(
- { type: "action", action: "settingsButtonClicked", values: { section: "worktrees" } },
- "*",
- )
- }}>
- {children}
-
-)
-
export default memo(Announcement)
diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json
index e8ffafde5ea..a00728e481a 100644
--- a/webview-ui/src/i18n/locales/ca/chat.json
+++ b/webview-ui/src/i18n/locales/ca/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Què hi ha de nou:",
- "worktrees": "Worktrees: Treballa en múltiples branques simultàniament amb Git worktrees. Cada worktree obté la seva pròpia finestra VS Code amb Roo Code, habilitant desenvolupament paral·lel sense canvi de branches. Prova-ho"
+ "smartCodeFolding": "Plegament intel·ligent de codi: La condensació de context ara preserva un mapa lleuger dels teus fitxers—signatures de funcions, declaracions de classe i definicions de tipus. Això proporciona millor continuïtat després de condensar i edicions més intel·ligents quan es fa referència a feina anterior."
},
"cloudAgents": {
"heading": "Novetats al núvol:",
diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json
index cda292c3056..90c68683c58 100644
--- a/webview-ui/src/i18n/locales/de/chat.json
+++ b/webview-ui/src/i18n/locales/de/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Was ist neu:",
- "worktrees": "Worktrees: Arbeite gleichzeitig an mehreren Branches mit Git Worktrees. Jedes Worktree bekommt sein eigenes VS Code Fenster mit Roo Code, was parallele Entwicklung ohne Branches-Wechsel ermöglicht. Probiere es aus"
+ "smartCodeFolding": "Intelligentes Code-Folding: Kontextkomprimierung bewahrt jetzt eine leichte Karte deiner Dateien—Funktionssignaturen, Klassendeklarationen und Typdefinitionen. Dies ermöglicht bessere Kontinuität nach der Komprimierung und intelligentere Bearbeitungen beim Verweisen auf vorherige Arbeiten."
},
"cloudAgents": {
"heading": "Neu in der Cloud:",
diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json
index 5bd990fb935..f585d882610 100644
--- a/webview-ui/src/i18n/locales/en/chat.json
+++ b/webview-ui/src/i18n/locales/en/chat.json
@@ -346,7 +346,7 @@
},
"release": {
"heading": "What's New:",
- "worktrees": "Worktrees: Work on multiple branches simultaneously with Git worktrees. Each worktree gets its own VS Code window with Roo Code, enabling parallel development without branch switching. Try it out"
+ "smartCodeFolding": "Smart Code Folding: Context condensation now preserves a lightweight map of your files: function signatures, class declarations, and type definitions. This provides better continuity after condensing and smarter edits when referencing previous work."
},
"cloudAgents": {
"heading": "New in the Cloud:",
diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json
index 4c46f61231d..3140b7834be 100644
--- a/webview-ui/src/i18n/locales/es/chat.json
+++ b/webview-ui/src/i18n/locales/es/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Qué hay de nuevo:",
- "worktrees": "Worktrees: Trabaja en múltiples ramas simultáneamente con Git worktrees. Cada worktree obtiene su propia ventana VS Code con Roo Code, permitiendo desarrollo paralelo sin cambiar de rama. Pruébalo"
+ "smartCodeFolding": "Plegado de código inteligente: La condensación de contexto ahora preserva un mapa ligero de tus archivos—firmas de función, declaraciones de clase y definiciones de tipo. Esto proporciona mejor continuidad después de condensar y ediciones más inteligentes al referenciar trabajo anterior."
},
"cloudAgents": {
"heading": "Novedades en la Nube:",
diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json
index 0c64efb2168..ec8c68c521b 100644
--- a/webview-ui/src/i18n/locales/fr/chat.json
+++ b/webview-ui/src/i18n/locales/fr/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Quoi de neuf :",
- "worktrees": "Worktrees : Travaillez sur plusieurs branches simultanément avec Git worktrees. Chaque worktree obtient sa propre fenêtre VS Code avec Roo Code, permettant un développement parallèle sans changement de branche. Essaie"
+ "smartCodeFolding": "Pliage de code intelligent : La condensation du contexte préserve maintenant une carte légère de vos fichiers—signatures de fonctions, déclarations de classes et définitions de types. Cela offre une meilleure continuité après la condensation et des éditions plus intelligentes lors du référencement de travail antérieur."
},
"cloudAgents": {
"heading": "Nouveautés dans le Cloud :",
diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json
index 3f536f4f71e..bf6556f7f74 100644
--- a/webview-ui/src/i18n/locales/hi/chat.json
+++ b/webview-ui/src/i18n/locales/hi/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "नया क्या है:",
- "worktrees": "Worktrees: Git worktrees के साथ एक साथ कई शाखाओं पर काम करें। प्रत्येक worktree को Roo Code के साथ अपनी VS Code विंडो मिलती है, शाखा स्विच किए बिना समानांतर विकास को सक्षम करता है। इसे आज़माएं"
+ "smartCodeFolding": "स्मार्ट कोड फोल्डिंग: संदर्भ संघनन अब आपकी फ़ाइलों का एक हल्का मानचित्र संरक्षित करता है—फ़ंक्शन सिग्नेचर, क्लास घोषणाएँ, और टाइप परिभाषाएँ। यह संघनन के बाद बेहतर निरंतरता और पिछले काम को संदर्भित करते समय स्मार्ट संपादन प्रदान करता है।"
},
"cloudAgents": {
"heading": "क्लाउड में नया:",
diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json
index 89c7d4369b0..9695949df6e 100644
--- a/webview-ui/src/i18n/locales/id/chat.json
+++ b/webview-ui/src/i18n/locales/id/chat.json
@@ -353,7 +353,7 @@
},
"release": {
"heading": "Yang Baru:",
- "worktrees": "Worktrees: Bekerja di beberapa branch secara bersamaan dengan Git worktrees. Setiap worktree mendapat jendela VS Code sendiri dengan Roo Code, memungkinkan pengembangan paralel tanpa pengalihan branch. Coba"
+ "smartCodeFolding": "Smart Code Folding: Kondensasi konteks sekarang mempertahankan peta ringan dari file Anda—tanda tangan fungsi, deklarasi kelas, dan definisi tipe. Ini memberikan kontinuitas yang lebih baik setelah kondensasi dan pengeditan yang lebih cerdas saat merujuk pekerjaan sebelumnya."
},
"cloudAgents": {
"heading": "Baru di Cloud:",
diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json
index dee7a4e61cc..6926a0b2214 100644
--- a/webview-ui/src/i18n/locales/it/chat.json
+++ b/webview-ui/src/i18n/locales/it/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Novità:",
- "worktrees": "Worktrees: Lavora su più branch contemporaneamente con Git worktrees. Ogni worktree ottiene la sua finestra VS Code con Roo Code, abilitando lo sviluppo parallelo senza cambio di branch. Provalo"
+ "smartCodeFolding": "Smart Code Folding: La condensazione del contesto mantiene ora una mappa leggera dei tuoi file—firme di funzione, dichiarazioni di classe e definizioni di tipo. Questo fornisce una migliore continuità dopo la condensazione e modifiche più intelligenti quando si fa riferimento al lavoro precedente."
},
"cloudAgents": {
"heading": "Novità nel Cloud:",
diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json
index 8e4fcb88815..011f242969c 100644
--- a/webview-ui/src/i18n/locales/ja/chat.json
+++ b/webview-ui/src/i18n/locales/ja/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "新機能:",
- "worktrees": "Worktrees: Git worktreesで複数のブランチに同時に取り組みます。各worktreeはRoo Codeを備えた独自のVS Codeウィンドウを取得し、ブランチ切り替えなしで並列開発を可能にします。試す"
+ "smartCodeFolding": "スマートコードフォールディング: コンテキスト圧縮により、ファイルの軽量マップが保持されるようになりました—関数シグネチャ、クラス宣言、型定義。これにより、圧縮後の継続性が向上し、以前の作業を参照する際にさらにスマートな編集が可能になります。"
},
"cloudAgents": {
"heading": "クラウドの新機能:",
diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json
index 93c62f6f7fb..4367fce1c4c 100644
--- a/webview-ui/src/i18n/locales/ko/chat.json
+++ b/webview-ui/src/i18n/locales/ko/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "새로운 기능:",
- "worktrees": "Worktrees: Git worktrees로 여러 브랜치에서 동시에 작업합니다. 각 worktree는 Roo Code가 있는 자체 VS Code 창을 얻으며, 브랜치 전환 없이 병렬 개발을 가능하게 합니다. 시도해보세요"
+ "smartCodeFolding": "스마트 코드 폴딩: 컨텍스트 응축이 이제 파일의 경량 맵을 보존합니다—함수 시그니처, 클래스 선언 및 타입 정의를 포함합니다. 이는 응축 후 더 나은 연속성과 이전 작업을 참조할 때 더 스마트한 편집을 제공합니다."
},
"cloudAgents": {
"heading": "클라우드의 새로운 기능:",
diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json
index 331c6d9832a..a889217ef9a 100644
--- a/webview-ui/src/i18n/locales/nl/chat.json
+++ b/webview-ui/src/i18n/locales/nl/chat.json
@@ -317,7 +317,7 @@
},
"release": {
"heading": "Wat is er nieuw:",
- "worktrees": "Worktrees: Werk gelijktijdig aan meerdere branches met Git worktrees. Elke worktree krijgt zijn eigen VS Code-venster met Roo Code, waardoor parallelle ontwikkeling zonder brancheswissel mogelijk is. Probeer het"
+ "smartCodeFolding": "Smart Code Folding: Contextcondensatie behoudt nu een lichte kaart van je bestanden—functiehandtekeningen, klasdeclaraties en typedefinities. Dit biedt betere continuïteit na condensatie en slimmere bewerkingen bij verwijzing naar vorig werk."
},
"cloudAgents": {
"heading": "Nieuw in de Cloud:",
diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json
index b1594f87097..5cee81a016a 100644
--- a/webview-ui/src/i18n/locales/pl/chat.json
+++ b/webview-ui/src/i18n/locales/pl/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Co nowego:",
- "worktrees": "Worktrees: Pracuj na wielu gałęziach jednocześnie za pomocą Git worktrees. Każde worktree ma własne okno VS Code z Roo Code, umożliwiając równoległy rozwój bez przełączania gałęzi. Spróbuj"
+ "smartCodeFolding": "Smart Code Folding: Kondensacja kontekstu teraz zachowuje lekką mapę twoich plików—sygnatury funkcji, deklaracje klas i definicje typów. Zapewnia to lepszą ciągłość po kondensacji i mądrzejsze edycje przy odwoływaniu się do poprzedniej pracy."
},
"cloudAgents": {
"heading": "Nowości w chmurze:",
diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json
index 4153d3b5355..175b64f1aea 100644
--- a/webview-ui/src/i18n/locales/pt-BR/chat.json
+++ b/webview-ui/src/i18n/locales/pt-BR/chat.json
@@ -340,7 +340,7 @@
},
"release": {
"heading": "Novidades:",
- "worktrees": "Worktrees: Trabalhe em múltiplas branches simultaneamente com Git worktrees. Cada worktree obtém sua própria janela VS Code com Roo Code, permitindo desenvolvimento paralelo sem troca de branch. Tente"
+ "smartCodeFolding": "Smart Code Folding: A condensação de contexto agora preserva um mapa leve de seus arquivos—assinaturas de função, declarações de classe e definições de tipo. Isso oferece melhor continuidade após condensação e edições mais inteligentes ao referenciar trabalho anterior."
},
"cloudAgents": {
"heading": "Novidades na Nuvem:",
diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json
index c1890f53b20..56220c248a9 100644
--- a/webview-ui/src/i18n/locales/ru/chat.json
+++ b/webview-ui/src/i18n/locales/ru/chat.json
@@ -318,7 +318,7 @@
},
"release": {
"heading": "Что нового:",
- "worktrees": "Worktrees: Работайте над несколькими ветками одновременно с Git worktrees. Каждое worktree получает собственное окно VS Code с Roo Code, позволяя параллельную разработку без переключения ветвей. Попробуйте"
+ "smartCodeFolding": "Smart Code Folding: Конденсация контекста теперь сохраняет легкую карту ваших файлов—сигнатуры функций, объявления классов и определения типов. Это обеспечивает лучшую непрерывность после конденсации и более умные правки при ссылке на предыдущую работу."
},
"cloudAgents": {
"heading": "Новое в облаке:",
diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json
index 112ac2f46ce..4db29e77778 100644
--- a/webview-ui/src/i18n/locales/tr/chat.json
+++ b/webview-ui/src/i18n/locales/tr/chat.json
@@ -341,7 +341,7 @@
},
"release": {
"heading": "Yenilikler:",
- "worktrees": "Worktrees: Git worktrees ile aynı anda birden fazla şubede çalışın. Her worktree, Roo Code'lu kendi VS Code penceresini alır ve şube değiştirmeden paralel geliştirmeyi sağlar. Deneyin"
+ "smartCodeFolding": "Smart Code Folding: Bağlam yoğunlaştırması şimdi dosyalarınızın hafif bir haritasını korur—fonksiyon imzaları, sınıf bildirimleri ve tür tanımları. Bu, yoğunlaştırmadan sonra daha iyi devamlılık ve önceki çalışmaya atıfta bulunurken daha akıllı düzenlemeler sağlar."
},
"cloudAgents": {
"heading": "Cloud'daki yenilikler:",
diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json
index 65389a063bc..8e8a02e69d6 100644
--- a/webview-ui/src/i18n/locales/vi/chat.json
+++ b/webview-ui/src/i18n/locales/vi/chat.json
@@ -341,7 +341,7 @@
},
"release": {
"heading": "Tính năng mới:",
- "worktrees": "Worktrees: Làm việc trên nhiều nhánh cùng lúc với Git worktrees. Mỗi worktree có cửa sổ VS Code riêng với Roo Code, cho phép phát triển song song mà không cần chuyển nhánh. Hãy thử"
+ "smartCodeFolding": "Smart Code Folding: Nén ngữ cảnh giờ đây bảo tồn một bản đồ nhẹ của các tệp của bạn—chữ ký hàm, khai báo lớp và định nghĩa kiểu. Điều này cung cấp tính liên tục tốt hơn sau nén và chỉnh sửa thông minh hơn khi tham chiếu công việc trước đó."
},
"cloudAgents": {
"heading": "Mới trên Cloud:",
diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json
index 057d4f66e77..dadd731691a 100644
--- a/webview-ui/src/i18n/locales/zh-CN/chat.json
+++ b/webview-ui/src/i18n/locales/zh-CN/chat.json
@@ -341,7 +341,7 @@
},
"release": {
"heading": "新增功能:",
- "worktrees": "Worktrees:使用 Git worktrees 同时在多个分支上工作。每个 worktree 都有自己的 VS Code 窗口和 Roo Code,可以实现无需切换分支的并行开发。试试看"
+ "smartCodeFolding": "智能代码折叠:上下文压缩现在保留文件的轻量级映射——函数签名、类声明和类型定义。 这在压缩后提供更好的连续性,引用之前工作时编辑更聪明。"
},
"cloudAgents": {
"heading": "云端新功能:",
diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json
index 1243caa76aa..e0f9e443122 100644
--- a/webview-ui/src/i18n/locales/zh-TW/chat.json
+++ b/webview-ui/src/i18n/locales/zh-TW/chat.json
@@ -346,7 +346,7 @@
},
"release": {
"heading": "新增功能:",
- "worktrees": "Worktrees:使用 Git worktrees 在多個分支上同時工作。每個 worktree 都配有自己的 VS Code 視窗和 Roo Code,實現無需切換分支的平行開發。試試看"
+ "smartCodeFolding": "智慧代碼摺疊:上下文壓縮現保留檔案的輕量級對應圖——函數簽章、類別宣告和型別定義。 這提供壓縮後更佳的連續性,以及引用之前工作時更聰慧的編輯。"
},
"cloudAgents": {
"heading": "雲端的新功能:",