From 4273f00dea63cbf16a24e03a11509efc2513a545 Mon Sep 17 00:00:00 2001 From: feifei Date: Fri, 14 Mar 2025 17:56:48 +0800 Subject: [PATCH 1/8] refactor(i18n): enhance welcome page text for internationalization Signed-off-by: feifei --- webview-ui/src/components/welcome/WelcomeView.tsx | 15 ++++++--------- webview-ui/src/i18n/locales/ar/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ca/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/cs/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/de/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/en/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/es/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/fr/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/hi/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/hu/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/it/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ja/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ko/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/pl/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/pt-BR/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/pt/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/ru/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/tr/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/zh-CN/welcome.json | 6 ++++++ webview-ui/src/i18n/locales/zh-TW/welcome.json | 6 ++++++ 20 files changed, 120 insertions(+), 9 deletions(-) create mode 100644 webview-ui/src/i18n/locales/ar/welcome.json create mode 100644 webview-ui/src/i18n/locales/ca/welcome.json create mode 100644 webview-ui/src/i18n/locales/cs/welcome.json create mode 100644 webview-ui/src/i18n/locales/de/welcome.json create mode 100644 webview-ui/src/i18n/locales/en/welcome.json create mode 100644 webview-ui/src/i18n/locales/es/welcome.json create mode 100644 webview-ui/src/i18n/locales/fr/welcome.json create mode 100644 webview-ui/src/i18n/locales/hi/welcome.json create mode 100644 webview-ui/src/i18n/locales/hu/welcome.json create mode 100644 webview-ui/src/i18n/locales/it/welcome.json create mode 100644 webview-ui/src/i18n/locales/ja/welcome.json create mode 100644 webview-ui/src/i18n/locales/ko/welcome.json create mode 100644 webview-ui/src/i18n/locales/pl/welcome.json create mode 100644 webview-ui/src/i18n/locales/pt-BR/welcome.json create mode 100644 webview-ui/src/i18n/locales/pt/welcome.json create mode 100644 webview-ui/src/i18n/locales/ru/welcome.json create mode 100644 webview-ui/src/i18n/locales/tr/welcome.json create mode 100644 webview-ui/src/i18n/locales/zh-CN/welcome.json create mode 100644 webview-ui/src/i18n/locales/zh-TW/welcome.json diff --git a/webview-ui/src/components/welcome/WelcomeView.tsx b/webview-ui/src/components/welcome/WelcomeView.tsx index 651ce71dff..937c59a5f1 100644 --- a/webview-ui/src/components/welcome/WelcomeView.tsx +++ b/webview-ui/src/components/welcome/WelcomeView.tsx @@ -7,9 +7,11 @@ import { vscode } from "../../utils/vscode" import ApiOptions from "../settings/ApiOptions" import { Tab, TabContent } from "../common/Tab" import { Alert } from "../common/Alert" +import { useAppTranslation } from "../../i18n/TranslationContext" const WelcomeView = () => { const { apiConfiguration, currentApiConfigName, setApiConfiguration, uriScheme } = useExtensionState() + const { t } = useAppTranslation() const [errorMessage, setErrorMessage] = useState(undefined) @@ -28,14 +30,9 @@ const WelcomeView = () => { return ( -

Hi, I'm Roo!

-
- I can do all kinds of tasks thanks to the latest breakthroughs in agentic coding capabilities and - access to tools that let me create & edit files, explore complex projects, use the browser, and - execute terminal commands (with your permission, of course). I can even use MCP to create new tools - and extend my own capabilities. -
- To get started, this extension needs an API provider. +

{t("welcome:greeting")}

+
{t("welcome:introduction")}
+ {t("welcome:notice")} {
- Let's go! + {t("welcome:start")} {errorMessage &&
{errorMessage}
}
diff --git a/webview-ui/src/i18n/locales/ar/welcome.json b/webview-ui/src/i18n/locales/ar/welcome.json new file mode 100644 index 0000000000..744f4361ca --- /dev/null +++ b/webview-ui/src/i18n/locales/ar/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "مرحبًا، أنا رو!", + "introduction": "يمكنني القيام بجميع أنواع المهام بفضل أحدث التطورات في قدرات الترميز الذكية والوصول إلى الأدوات التي تتيح لي إنشاء وتحرير الملفات واستكشاف المشاريع المعقدة واستخدام المتصفح وتنفيذ أوامر الطرفية (بإذنك، بالطبع). يمكنني حتى استخدام MCP لإنشاء أدوات جديدة وتوسيع قدراتي الخاصة.", + "notice": "للبدء، يحتاج هذا الامتداد إلى موفر API.", + "start": "لنبدأ!" +} diff --git a/webview-ui/src/i18n/locales/ca/welcome.json b/webview-ui/src/i18n/locales/ca/welcome.json new file mode 100644 index 0000000000..7ba0089389 --- /dev/null +++ b/webview-ui/src/i18n/locales/ca/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Hola, sóc en Roo!", + "introduction": "Puc fer tot tipus de tasques gràcies als últims avenços en capacitats de codificació agent i accés a eines que em permeten crear i editar fitxers, explorar projectes complexos, utilitzar el navegador i executar ordres de terminal (amb el teu permís, és clar). Fins i tot puc utilitzar MCP per crear noves eines i ampliar les meves pròpies capacitats.", + "notice": "Per començar, aquesta extensió necessita un proveïdor d'API.", + "start": "Som-hi!" +} diff --git a/webview-ui/src/i18n/locales/cs/welcome.json b/webview-ui/src/i18n/locales/cs/welcome.json new file mode 100644 index 0000000000..07bd935f76 --- /dev/null +++ b/webview-ui/src/i18n/locales/cs/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Ahoj, já jsem Roo!", + "introduction": "Díky nejnovějším průlomům v agentních kódovacích schopnostech a přístupu k nástrojům, které mi umožňují vytvářet a upravovat soubory, prozkoumávat složité projekty, používat prohlížeč a spouštět terminálové příkazy (s vaším svolením, samozřejmě), mohu dělat všechny druhy úkolů. Dokonce mohu použít MCP k vytváření nových nástrojů a rozšiřování svých vlastních schopností.", + "notice": "Pro začátek toto rozšíření potřebuje poskytovatele API.", + "start": "Jdeme na to!" +} diff --git a/webview-ui/src/i18n/locales/de/welcome.json b/webview-ui/src/i18n/locales/de/welcome.json new file mode 100644 index 0000000000..a9e9b7a618 --- /dev/null +++ b/webview-ui/src/i18n/locales/de/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Hallo, ich bin Roo!", + "introduction": "Ich kann alle Arten von Aufgaben erledigen, dank der neuesten Durchbrüche in agentenbasierten Codierungsfähigkeiten und dem Zugang zu Tools, die es mir ermöglichen, Dateien zu erstellen und zu bearbeiten, komplexe Projekte zu erkunden, den Browser zu verwenden und Terminalbefehle auszuführen (natürlich mit Ihrer Erlaubnis). Ich kann sogar MCP verwenden, um neue Tools zu erstellen und meine eigenen Fähigkeiten zu erweitern.", + "notice": "Um loszulegen, benötigt diese Erweiterung einen API-Anbieter.", + "start": "Los geht's!" +} diff --git a/webview-ui/src/i18n/locales/en/welcome.json b/webview-ui/src/i18n/locales/en/welcome.json new file mode 100644 index 0000000000..f03a791b43 --- /dev/null +++ b/webview-ui/src/i18n/locales/en/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Hi, I'm Roo!", + "introduction": "I can do all kinds of tasks thanks to the latest breakthroughs in agentic coding capabilities and access to tools that let me create & edit files, explore complex projects, use the browser, and execute terminal commands (with your permission, of course). I can even use MCP to create new tools and extend my own capabilities.", + "notice": "To get started, this extension needs an API provider.", + "start": "Let's go!" +} diff --git a/webview-ui/src/i18n/locales/es/welcome.json b/webview-ui/src/i18n/locales/es/welcome.json new file mode 100644 index 0000000000..9ccd57b36f --- /dev/null +++ b/webview-ui/src/i18n/locales/es/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "¡Hola, soy Roo!", + "introduction": "Puedo realizar todo tipo de tareas gracias a los últimos avances en capacidades de codificación agentica y acceso a herramientas que me permiten crear y editar archivos, explorar proyectos complejos, usar el navegador y ejecutar comandos de terminal (con tu permiso, por supuesto). Incluso puedo usar MCP para crear nuevas herramientas y ampliar mis propias capacidades.", + "notice": "Para comenzar, esta extensión necesita un proveedor de API.", + "start": "¡Vamos!" +} diff --git a/webview-ui/src/i18n/locales/fr/welcome.json b/webview-ui/src/i18n/locales/fr/welcome.json new file mode 100644 index 0000000000..423b1ec3a8 --- /dev/null +++ b/webview-ui/src/i18n/locales/fr/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Salut, je suis Roo !", + "introduction": "Je peux effectuer toutes sortes de tâches grâce aux dernières avancées en matière de capacités de codage agentique et à l'accès à des outils qui me permettent de créer et de modifier des fichiers, d'explorer des projets complexes, d'utiliser le navigateur et d'exécuter des commandes terminal (avec votre permission, bien sûr). Je peux même utiliser MCP pour créer de nouveaux outils et étendre mes propres capacités.", + "notice": "Pour commencer, cette extension a besoin d'un fournisseur d'API.", + "start": "C'est parti !" +} diff --git a/webview-ui/src/i18n/locales/hi/welcome.json b/webview-ui/src/i18n/locales/hi/welcome.json new file mode 100644 index 0000000000..f26f0def48 --- /dev/null +++ b/webview-ui/src/i18n/locales/hi/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "नमस्ते, मैं रू हूँ!", + "introduction": "मैं सभी प्रकार के कार्य कर सकता हूँ, एजेंटिक कोडिंग क्षमताओं में नवीनतम सफलताओं और उन टूल्स तक पहुंच के लिए धन्यवाद जो मुझे फाइलें बनाने और संपादित करने, जटिल परियोजनाओं का पता लगाने, ब्राउज़र का उपयोग करने और टर्मिनल कमांड निष्पादित करने की अनुमति देते हैं (आपकी अनुमति से, बिल्कुल)। मैं MCP का उपयोग करके नए टूल बना सकता हूँ और अपनी क्षमताओं का विस्तार कर सकता हूँ।", + "notice": "शुरू करने के लिए, इस एक्सटेंशन को एक API प्रदाता की आवश्यकता है।", + "start": "चलो शुरू करें!" +} diff --git a/webview-ui/src/i18n/locales/hu/welcome.json b/webview-ui/src/i18n/locales/hu/welcome.json new file mode 100644 index 0000000000..19ad5d7f07 --- /dev/null +++ b/webview-ui/src/i18n/locales/hu/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Szia, én Roo vagyok!", + "introduction": "Mindenféle feladatot el tudok látni az ügynök-alapú kódolási képességek legújabb áttöréseinek és az eszközökhez való hozzáférésnek köszönhetően, amelyek lehetővé teszik számomra fájlok létrehozását és szerkesztését, összetett projektek felfedezését, böngésző használatát és terminálparancsok végrehajtását (természetesen az Ön engedélyével). Még az MCP-t is használhatom új eszközök létrehozására és saját képességeim bővítésére.", + "notice": "A kezdéshez ez a bővítmény egy API szolgáltatót igényel.", + "start": "Gyerünk!" +} diff --git a/webview-ui/src/i18n/locales/it/welcome.json b/webview-ui/src/i18n/locales/it/welcome.json new file mode 100644 index 0000000000..aa507fec01 --- /dev/null +++ b/webview-ui/src/i18n/locales/it/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Ciao, sono Roo!", + "introduction": "Posso svolgere tutti i tipi di attività grazie ai più recenti progressi nelle capacità di codifica agentica e all'accesso a strumenti che mi permettono di creare e modificare file, esplorare progetti complessi, utilizzare il browser ed eseguire comandi terminal (con il tuo permesso, ovviamente). Posso persino utilizzare MCP per creare nuovi strumenti ed estendere le mie capacità.", + "notice": "Per iniziare, questa estensione necessita di un fornitore di API.", + "start": "Andiamo!" +} diff --git a/webview-ui/src/i18n/locales/ja/welcome.json b/webview-ui/src/i18n/locales/ja/welcome.json new file mode 100644 index 0000000000..f10b5d4276 --- /dev/null +++ b/webview-ui/src/i18n/locales/ja/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "こんにちは、私はルーです!", + "introduction": "エージェント型コーディング能力の最新の進歩と、ファイルの作成・編集、複雑なプロジェクトの探索、ブラウザの使用、ターミナルコマンドの実行(もちろんあなたの許可を得て)を可能にするツールへのアクセスにより、あらゆる種類のタスクを実行できます。MCPを使用して新しいツールを作成し、自分の能力を拡張することもできます。", + "notice": "開始するには、この拡張機能にはAPIプロバイダーが必要です。", + "start": "さあ、始めましょう!" +} diff --git a/webview-ui/src/i18n/locales/ko/welcome.json b/webview-ui/src/i18n/locales/ko/welcome.json new file mode 100644 index 0000000000..fbe13c0f58 --- /dev/null +++ b/webview-ui/src/i18n/locales/ko/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "안녕하세요, 저는 루입니다!", + "introduction": "에이전트 코딩 능력의 최신 발전과 파일 생성 및 편집, 복잡한 프로젝트 탐색, 브라우저 사용, 터미널 명령 실행(물론 사용자의 허락 하에)을 가능하게 하는 도구에 대한 접근 덕분에 모든 종류의 작업을 수행할 수 있습니다. MCP를 사용하여 새로운 도구를 만들고 제 능력을 확장할 수도 있습니다.", + "notice": "시작하려면 이 확장 프로그램에 API 공급자가 필요합니다.", + "start": "시작해 봅시다!" +} diff --git a/webview-ui/src/i18n/locales/pl/welcome.json b/webview-ui/src/i18n/locales/pl/welcome.json new file mode 100644 index 0000000000..a3e71a8c42 --- /dev/null +++ b/webview-ui/src/i18n/locales/pl/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Cześć, jestem Roo!", + "introduction": "Mogę wykonywać wszelkiego rodzaju zadania dzięki najnowszym osiągnięciom w zakresie możliwości kodowania agentowego i dostępu do narzędzi, które pozwalają mi tworzyć i edytować pliki, eksplorować złożone projekty, korzystać z przeglądarki i wykonywać polecenia terminalowe (oczywiście za Twoją zgodą). Mogę nawet używać MCP do tworzenia nowych narzędzi i rozszerzania własnych możliwości.", + "notice": "Aby rozpocząć, to rozszerzenie potrzebuje dostawcy API.", + "start": "Zaczynajmy!" +} diff --git a/webview-ui/src/i18n/locales/pt-BR/welcome.json b/webview-ui/src/i18n/locales/pt-BR/welcome.json new file mode 100644 index 0000000000..fc629351a5 --- /dev/null +++ b/webview-ui/src/i18n/locales/pt-BR/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Olá, eu sou o Roo!", + "introduction": "Posso realizar todos os tipos de tarefas graças aos últimos avanços nas capacidades de codificação agentica e ao acesso a ferramentas que me permitem criar e editar arquivos, explorar projetos complexos, usar o navegador e executar comandos de terminal (com sua permissão, é claro). Posso até usar o MCP para criar novas ferramentas e expandir minhas próprias capacidades.", + "notice": "Para começar, esta extensão precisa de um provedor de API.", + "start": "Vamos lá!" +} diff --git a/webview-ui/src/i18n/locales/pt/welcome.json b/webview-ui/src/i18n/locales/pt/welcome.json new file mode 100644 index 0000000000..fc629351a5 --- /dev/null +++ b/webview-ui/src/i18n/locales/pt/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Olá, eu sou o Roo!", + "introduction": "Posso realizar todos os tipos de tarefas graças aos últimos avanços nas capacidades de codificação agentica e ao acesso a ferramentas que me permitem criar e editar arquivos, explorar projetos complexos, usar o navegador e executar comandos de terminal (com sua permissão, é claro). Posso até usar o MCP para criar novas ferramentas e expandir minhas próprias capacidades.", + "notice": "Para começar, esta extensão precisa de um provedor de API.", + "start": "Vamos lá!" +} diff --git a/webview-ui/src/i18n/locales/ru/welcome.json b/webview-ui/src/i18n/locales/ru/welcome.json new file mode 100644 index 0000000000..d6277ad603 --- /dev/null +++ b/webview-ui/src/i18n/locales/ru/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Привет, я Ру!", + "introduction": "Я могу выполнять все виды задач благодаря последним достижениям в области агентных возможностей кодирования и доступу к инструментам, которые позволяют мне создавать и редактировать файлы, исследовать сложные проекты, использовать браузер и выполнять команды терминала (с вашего разрешения, конечно). Я даже могу использовать MCP для создания новых инструментов и расширения своих возможностей.", + "notice": "Для начала этому расширению нужен API-провайдер.", + "start": "Поехали!" +} diff --git a/webview-ui/src/i18n/locales/tr/welcome.json b/webview-ui/src/i18n/locales/tr/welcome.json new file mode 100644 index 0000000000..b5a1138e50 --- /dev/null +++ b/webview-ui/src/i18n/locales/tr/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "Merhaba, ben Roo!", + "introduction": "Ajan tabanlı kodlama yeteneklerindeki son gelişmeler ve dosya oluşturma ve düzenleme, karmaşık projeleri keşfetme, tarayıcı kullanma ve terminal komutları çalıştırma (tabii ki sizin izninizle) gibi işlemleri yapmamı sağlayan araçlara erişim sayesinde her türlü görevi gerçekleştirebilirim. Hatta MCP'yi kullanarak yeni araçlar oluşturabilir ve kendi yeteneklerimi genişletebilirim.", + "notice": "Başlamak için bu eklentinin bir API sağlayıcısına ihtiyacı var.", + "start": "Hadi başlayalım!" +} diff --git a/webview-ui/src/i18n/locales/zh-CN/welcome.json b/webview-ui/src/i18n/locales/zh-CN/welcome.json new file mode 100644 index 0000000000..c3eba070b2 --- /dev/null +++ b/webview-ui/src/i18n/locales/zh-CN/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "你好,我是 Roo!", + "introduction": "得益于最新的代理编码能力突破和对各种工具的访问权限,我可以完成各种任务。我可以创建和编辑文件、探索复杂项目、使用浏览器,以及执行终端命令(当然,需要你的许可)。我甚至可以使用 MCP 创建新工具并扩展自己的能力。", + "notice": "首先,请配置一个大模型 API 服务商。", + "start": "开始吧!" +} diff --git a/webview-ui/src/i18n/locales/zh-TW/welcome.json b/webview-ui/src/i18n/locales/zh-TW/welcome.json new file mode 100644 index 0000000000..e8770d1300 --- /dev/null +++ b/webview-ui/src/i18n/locales/zh-TW/welcome.json @@ -0,0 +1,6 @@ +{ + "greeting": "嗨,我是 Roo!", + "introduction": "由於最新的代理編碼能力突破,以及能夠讓我創建和編輯文件、探索複雜項目、使用瀏覽器和執行終端命令的工具(當然是在您的許可下),我可以完成各種任務。我甚至可以使用 MCP 創建新工具並擴展自己的能力。", + "notice": "要開始使用,此擴展需要一個 API 提供者。", + "start": "我們開始吧!" +} From a679c95412a76d63f809d2f9f5aa5fd621e50d29 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 14 Mar 2025 09:45:31 -0400 Subject: [PATCH 2/8] Create new context management section in settings --- .../components/settings/AdvancedSettings.tsx | 75 +------------- .../settings/ContextManagementSettings.tsx | 99 +++++++++++++++++++ .../src/components/settings/SettingsView.tsx | 17 +++- .../ContextManagementSettings.test.tsx | 58 +++++++++++ 4 files changed, 172 insertions(+), 77 deletions(-) create mode 100644 webview-ui/src/components/settings/ContextManagementSettings.tsx create mode 100644 webview-ui/src/components/settings/__tests__/ContextManagementSettings.test.tsx diff --git a/webview-ui/src/components/settings/AdvancedSettings.tsx b/webview-ui/src/components/settings/AdvancedSettings.tsx index c04f28f88e..e25366331e 100644 --- a/webview-ui/src/components/settings/AdvancedSettings.tsx +++ b/webview-ui/src/components/settings/AdvancedSettings.tsx @@ -13,29 +13,16 @@ import { Section } from "./Section" type AdvancedSettingsProps = HTMLAttributes & { rateLimitSeconds: number - terminalOutputLineLimit?: number - maxOpenTabsContext: number diffEnabled?: boolean fuzzyMatchThreshold?: number - showRooIgnoredFiles?: boolean - setCachedStateField: SetCachedStateField< - | "rateLimitSeconds" - | "terminalOutputLineLimit" - | "maxOpenTabsContext" - | "diffEnabled" - | "fuzzyMatchThreshold" - | "showRooIgnoredFiles" - > + setCachedStateField: SetCachedStateField<"rateLimitSeconds" | "diffEnabled" | "fuzzyMatchThreshold"> experiments: Record setExperimentEnabled: SetExperimentEnabled } export const AdvancedSettings = ({ rateLimitSeconds, - terminalOutputLineLimit, - maxOpenTabsContext, diffEnabled, fuzzyMatchThreshold, - showRooIgnoredFiles, setCachedStateField, experiments, setExperimentEnabled, @@ -71,52 +58,6 @@ export const AdvancedSettings = ({

Minimum time between API requests.

-
-
- Terminal output limit -
- - setCachedStateField("terminalOutputLineLimit", parseInt(e.target.value)) - } - className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" - /> - {terminalOutputLineLimit ?? 500} -
-
-

- Maximum number of lines to include in terminal output when executing commands. When exceeded - lines will be removed from the middle, saving tokens. -

-
- -
-
- Open tabs context limit -
- setCachedStateField("maxOpenTabsContext", parseInt(e.target.value))} - className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" - /> - {maxOpenTabsContext ?? 20} -
-
-

- Maximum number of VSCode open tabs to include in context. Higher values provide more context but - increase token usage. -

-
-
)}
- -
- { - setCachedStateField("showRooIgnoredFiles", e.target.checked) - }}> - Show .rooignore'd files in lists and searches - -

- When enabled, files matching patterns in .rooignore will be shown in lists with a lock symbol. - When disabled, these files will be completely hidden from file lists and searches. -

-
) diff --git a/webview-ui/src/components/settings/ContextManagementSettings.tsx b/webview-ui/src/components/settings/ContextManagementSettings.tsx new file mode 100644 index 0000000000..f8563071f2 --- /dev/null +++ b/webview-ui/src/components/settings/ContextManagementSettings.tsx @@ -0,0 +1,99 @@ +import { HTMLAttributes } from "react" +import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react" +import { Database } from "lucide-react" + +import { cn } from "@/lib/utils" + +import { SetCachedStateField } from "./types" +import { sliderLabelStyle } from "./styles" +import { SectionHeader } from "./SectionHeader" +import { Section } from "./Section" + +type ContextManagementSettingsProps = HTMLAttributes & { + terminalOutputLineLimit?: number + maxOpenTabsContext: number + showRooIgnoredFiles?: boolean + setCachedStateField: SetCachedStateField<"terminalOutputLineLimit" | "maxOpenTabsContext" | "showRooIgnoredFiles"> +} + +export const ContextManagementSettings = ({ + terminalOutputLineLimit, + maxOpenTabsContext, + showRooIgnoredFiles, + setCachedStateField, + className, + ...props +}: ContextManagementSettingsProps) => { + return ( +
+ +
+ +
Context Management
+
+
+ +
+
+
+ Terminal output limit +
+ + setCachedStateField("terminalOutputLineLimit", parseInt(e.target.value)) + } + className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" + /> + {terminalOutputLineLimit ?? 500} +
+
+

+ Maximum number of lines to include in terminal output when executing commands. When exceeded + lines will be removed from the middle, saving tokens. +

+
+ +
+
+ Open tabs context limit +
+ setCachedStateField("maxOpenTabsContext", parseInt(e.target.value))} + className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" + /> + {maxOpenTabsContext ?? 20} +
+
+

+ Maximum number of VSCode open tabs to include in context. Higher values provide more context but + increase token usage. +

+
+ +
+ { + setCachedStateField("showRooIgnoredFiles", e.target.checked) + }}> + Show .rooignore'd files in lists and searches + +

+ When enabled, files matching patterns in .rooignore will be shown in lists with a lock symbol. + When disabled, these files will be completely hidden from file lists and searches. +

+
+
+
+ ) +} diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx index d49ed2d03a..c267acfee1 100644 --- a/webview-ui/src/components/settings/SettingsView.tsx +++ b/webview-ui/src/components/settings/SettingsView.tsx @@ -11,6 +11,7 @@ import { AlertTriangle, } from "lucide-react" +import { Database } from "lucide-react" import { ExperimentId } from "../../../../src/shared/experiments" import { TelemetrySetting } from "../../../../src/shared/TelemetrySetting" import { ApiConfiguration } from "../../../../src/shared/api" @@ -39,6 +40,7 @@ import { AutoApproveSettings } from "./AutoApproveSettings" import { BrowserSettings } from "./BrowserSettings" import { CheckpointSettings } from "./CheckpointSettings" import { NotificationSettings } from "./NotificationSettings" +import { ContextManagementSettings } from "./ContextManagementSettings" import { AdvancedSettings } from "./AdvancedSettings" import { SettingsFooter } from "./SettingsFooter" import { Section } from "./Section" @@ -230,6 +232,7 @@ const SettingsView = forwardRef(({ onDone }, const browserRef = useRef(null) const checkpointRef = useRef(null) const notificationsRef = useRef(null) + const contextRef = useRef(null) const advancedRef = useRef(null) const experimentalRef = useRef(null) @@ -242,6 +245,7 @@ const SettingsView = forwardRef(({ onDone }, { id: "browser", icon: SquareMousePointer, ref: browserRef }, { id: "checkpoint", icon: GitBranch, ref: checkpointRef }, { id: "notifications", icon: Bell, ref: notificationsRef }, + { id: "context", icon: Database, ref: contextRef }, { id: "advanced", icon: Cog, ref: advancedRef }, { id: "experimental", icon: FlaskConical, ref: experimentalRef }, ], @@ -255,6 +259,7 @@ const SettingsView = forwardRef(({ onDone }, { ref: browserRef, id: "browser" }, { ref: checkpointRef, id: "checkpoint" }, { ref: notificationsRef, id: "notifications" }, + { ref: contextRef, id: "context" }, { ref: advancedRef, id: "advanced" }, { ref: experimentalRef, id: "experimental" }, ] @@ -401,14 +406,20 @@ const SettingsView = forwardRef(({ onDone }, /> +
+ +
+
{ + const defaultProps = { + terminalOutputLineLimit: 500, + maxOpenTabsContext: 20, + showRooIgnoredFiles: false, + setCachedStateField: jest.fn(), + } + + beforeEach(() => { + jest.clearAllMocks() + }) + + it("renders all controls", () => { + render() + + // Terminal output limit + expect(screen.getByText("Terminal output limit")).toBeInTheDocument() + expect(screen.getByRole("slider", { name: /Terminal output limit/i })).toHaveValue("500") + + // Open tabs context limit + expect(screen.getByText("Open tabs context limit")).toBeInTheDocument() + expect(screen.getByRole("slider", { name: /Open tabs context limit/i })).toHaveValue("20") + + // Show .rooignore'd files + expect(screen.getByText("Show .rooignore'd files in lists and searches")).toBeInTheDocument() + expect(screen.getByRole("checkbox")).not.toBeChecked() + }) + + it("updates terminal output limit", () => { + render() + + const slider = screen.getByRole("slider", { name: /Terminal output limit/i }) + fireEvent.change(slider, { target: { value: "1000" } }) + + expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("terminalOutputLineLimit", 1000) + }) + + it("updates open tabs context limit", () => { + render() + + const slider = screen.getByRole("slider", { name: /Open tabs context limit/i }) + fireEvent.change(slider, { target: { value: "50" } }) + + expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("maxOpenTabsContext", 50) + }) + + it("updates show rooignored files setting", () => { + render() + + const checkbox = screen.getByRole("checkbox") + fireEvent.click(checkbox) + + expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("showRooIgnoredFiles", true) + }) +}) From 9bbbaf22886f2f421c3798dcf676c64e19ebb214 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 14 Mar 2025 11:11:16 -0400 Subject: [PATCH 3/8] Add a new setting to control the number of workspace files included in the system prompt --- src/core/Cline.ts | 6 ++-- src/core/webview/ClineProvider.ts | 8 +++++ .../webview/__tests__/ClineProvider.test.ts | 12 +++++++ src/exports/roo-code.d.ts | 1 + src/shared/ExtensionMessage.ts | 1 + src/shared/WebviewMessage.ts | 1 + src/shared/globalState.ts | 1 + webview-ui/src/__mocks__/lucide-react.ts | 1 + .../settings/ContextManagementSettings.tsx | 36 +++++++++++++++++-- .../src/components/settings/SettingsView.tsx | 3 ++ .../ContextManagementSettings.test.tsx | 26 ++++++++++---- .../src/context/ExtensionStateContext.tsx | 4 +++ .../__tests__/ExtensionStateContext.test.tsx | 1 + 13 files changed, 90 insertions(+), 11 deletions(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index c50d48b6cc..8b5afe9806 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -3501,7 +3501,7 @@ export class Cline extends EventEmitter { async getEnvironmentDetails(includeFileDetails: boolean = false) { let details = "" - const { terminalOutputLineLimit } = (await this.providerRef.deref()?.getState()) ?? {} + const { terminalOutputLineLimit, maxWorkspaceFiles } = (await this.providerRef.deref()?.getState()) ?? {} // It could be useful for cline to know if the user went from one or no file to another between messages, so we always include this context details += "\n\n# VSCode Visible Files" @@ -3509,6 +3509,7 @@ export class Cline extends EventEmitter { ?.map((editor) => editor.document?.uri?.fsPath) .filter(Boolean) .map((absolutePath) => path.relative(cwd, absolutePath)) + .slice(0, maxWorkspaceFiles ?? 200) // Filter paths through rooIgnoreController const allowedVisibleFiles = this.rooIgnoreController @@ -3715,7 +3716,8 @@ export class Cline extends EventEmitter { // don't want to immediately access desktop since it would show permission popup details += "(Desktop files not shown automatically. Use list_files to explore if needed.)" } else { - const [files, didHitLimit] = await listFiles(cwd, true, 200) + const maxFiles = maxWorkspaceFiles ?? 200 + const [files, didHitLimit] = await listFiles(cwd, true, maxFiles) const { showRooIgnoredFiles } = (await this.providerRef.deref()?.getState()) ?? {} const result = formatResponse.formatFilesList( cwd, diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index b98934400d..87f33dc418 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1518,6 +1518,11 @@ export class ClineProvider implements vscode.WebviewViewProvider { await this.updateGlobalState("maxOpenTabsContext", tabCount) await this.postStateToWebview() break + case "maxWorkspaceFiles": + const fileCount = Math.min(Math.max(0, message.value ?? 200), 500) + await this.updateGlobalState("maxWorkspaceFiles", fileCount) + await this.postStateToWebview() + break case "browserToolEnabled": await this.updateGlobalState("browserToolEnabled", message.bool ?? true) await this.postStateToWebview() @@ -2297,6 +2302,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { autoApprovalEnabled, experiments, maxOpenTabsContext, + maxWorkspaceFiles, browserToolEnabled, telemetrySetting, showRooIgnoredFiles, @@ -2359,6 +2365,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { experiments: experiments ?? experimentDefault, mcpServers: this.mcpHub?.getAllServers() ?? [], maxOpenTabsContext: maxOpenTabsContext ?? 20, + maxWorkspaceFiles: maxWorkspaceFiles ?? 200, cwd, browserToolEnabled: browserToolEnabled ?? true, telemetrySetting, @@ -2516,6 +2523,7 @@ export class ClineProvider implements vscode.WebviewViewProvider { autoApprovalEnabled: stateValues.autoApprovalEnabled ?? false, customModes, maxOpenTabsContext: stateValues.maxOpenTabsContext ?? 20, + maxWorkspaceFiles: stateValues.maxWorkspaceFiles ?? 200, openRouterUseMiddleOutTransform: stateValues.openRouterUseMiddleOutTransform ?? true, browserToolEnabled: stateValues.browserToolEnabled ?? true, telemetrySetting: stateValues.telemetrySetting || "unset", diff --git a/src/core/webview/__tests__/ClineProvider.test.ts b/src/core/webview/__tests__/ClineProvider.test.ts index abe7a8475a..7530052b85 100644 --- a/src/core/webview/__tests__/ClineProvider.test.ts +++ b/src/core/webview/__tests__/ClineProvider.test.ts @@ -448,6 +448,7 @@ describe("ClineProvider", () => { customModes: [], experiments: experimentDefault, maxOpenTabsContext: 20, + maxWorkspaceFiles: 200, browserToolEnabled: true, telemetrySetting: "unset", showRooIgnoredFiles: true, @@ -794,6 +795,17 @@ describe("ClineProvider", () => { expect(state.customModePrompts).toEqual({}) }) + test("handles maxWorkspaceFiles message", async () => { + await provider.resolveWebviewView(mockWebviewView) + const messageHandler = (mockWebviewView.webview.onDidReceiveMessage as jest.Mock).mock.calls[0][0] + + await messageHandler({ type: "maxWorkspaceFiles", value: 300 }) + + expect(mockContextProxy.updateGlobalState).toHaveBeenCalledWith("maxWorkspaceFiles", 300) + expect(mockContext.globalState.update).toHaveBeenCalledWith("maxWorkspaceFiles", 300) + expect(mockPostMessage).toHaveBeenCalled() + }) + test.only("uses mode-specific custom instructions in Cline initialization", async () => { // Setup mock state const modeCustomInstructions = "Code mode instructions" diff --git a/src/exports/roo-code.d.ts b/src/exports/roo-code.d.ts index e5338bd737..1c45dec84b 100644 --- a/src/exports/roo-code.d.ts +++ b/src/exports/roo-code.d.ts @@ -211,6 +211,7 @@ export type GlobalStateKey = | "modelMaxTokens" | "mistralCodestralUrl" | "maxOpenTabsContext" + | "maxWorkspaceFiles" | "browserToolEnabled" | "lmStudioSpeculativeDecodingEnabled" | "lmStudioDraftModelId" diff --git a/src/shared/ExtensionMessage.ts b/src/shared/ExtensionMessage.ts index c0bcb4ed65..5b018ec22e 100644 --- a/src/shared/ExtensionMessage.ts +++ b/src/shared/ExtensionMessage.ts @@ -147,6 +147,7 @@ export interface ExtensionState { customModes: ModeConfig[] toolRequirements?: Record // Map of tool names to their requirements (e.g. {"apply_diff": true} if diffEnabled) maxOpenTabsContext: number // Maximum number of VSCode open tabs to include in context (0-500) + maxWorkspaceFiles: number // Maximum number of files to include in current working directory details (0-500) cwd?: string // Current working directory telemetrySetting: TelemetrySetting telemetryKey?: string diff --git a/src/shared/WebviewMessage.ts b/src/shared/WebviewMessage.ts index e9a64d891b..bb77ea7203 100644 --- a/src/shared/WebviewMessage.ts +++ b/src/shared/WebviewMessage.ts @@ -97,6 +97,7 @@ export interface WebviewMessage { | "checkpointRestore" | "deleteMcpServer" | "maxOpenTabsContext" + | "maxWorkspaceFiles" | "humanRelayResponse" | "humanRelayCancel" | "browserToolEnabled" diff --git a/src/shared/globalState.ts b/src/shared/globalState.ts index 9896c37697..cec7bdf9ce 100644 --- a/src/shared/globalState.ts +++ b/src/shared/globalState.ts @@ -116,6 +116,7 @@ export const GLOBAL_STATE_KEYS = [ "telemetrySetting", "showRooIgnoredFiles", "remoteBrowserEnabled", + "maxWorkspaceFiles", ] as const type CheckGlobalStateKeysExhaustiveness = diff --git a/webview-ui/src/__mocks__/lucide-react.ts b/webview-ui/src/__mocks__/lucide-react.ts index d85cd25d6a..64ab05eb34 100644 --- a/webview-ui/src/__mocks__/lucide-react.ts +++ b/webview-ui/src/__mocks__/lucide-react.ts @@ -4,3 +4,4 @@ export const Check = () => React.createElement("div") export const ChevronsUpDown = () => React.createElement("div") export const Loader = () => React.createElement("div") export const X = () => React.createElement("div") +export const Database = (props: any) => React.createElement("span", { "data-testid": "database-icon", ...props }) diff --git a/webview-ui/src/components/settings/ContextManagementSettings.tsx b/webview-ui/src/components/settings/ContextManagementSettings.tsx index f8563071f2..d5f4c33f9a 100644 --- a/webview-ui/src/components/settings/ContextManagementSettings.tsx +++ b/webview-ui/src/components/settings/ContextManagementSettings.tsx @@ -12,13 +12,17 @@ import { Section } from "./Section" type ContextManagementSettingsProps = HTMLAttributes & { terminalOutputLineLimit?: number maxOpenTabsContext: number + maxWorkspaceFiles: number showRooIgnoredFiles?: boolean - setCachedStateField: SetCachedStateField<"terminalOutputLineLimit" | "maxOpenTabsContext" | "showRooIgnoredFiles"> + setCachedStateField: SetCachedStateField< + "terminalOutputLineLimit" | "maxOpenTabsContext" | "maxWorkspaceFiles" | "showRooIgnoredFiles" + > } export const ContextManagementSettings = ({ terminalOutputLineLimit, maxOpenTabsContext, + maxWorkspaceFiles, showRooIgnoredFiles, setCachedStateField, className, @@ -26,7 +30,7 @@ export const ContextManagementSettings = ({ }: ContextManagementSettingsProps) => { return (
- +
Context Management
@@ -48,6 +52,7 @@ export const ContextManagementSettings = ({ setCachedStateField("terminalOutputLineLimit", parseInt(e.target.value)) } className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" + data-testid="terminal-output-limit-slider" /> {terminalOutputLineLimit ?? 500}
@@ -70,6 +75,7 @@ export const ContextManagementSettings = ({ value={maxOpenTabsContext ?? 20} onChange={(e) => setCachedStateField("maxOpenTabsContext", parseInt(e.target.value))} className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" + data-testid="open-tabs-limit-slider" /> {maxOpenTabsContext ?? 20}
@@ -80,12 +86,36 @@ export const ContextManagementSettings = ({

+
+
+ Workspace files context limit +
+ setCachedStateField("maxWorkspaceFiles", parseInt(e.target.value))} + className="h-2 focus:outline-0 w-4/5 accent-vscode-button-background" + data-testid="workspace-files-limit-slider" + /> + {maxWorkspaceFiles ?? 200} +
+
+

+ Maximum number of files to include in current working directory details. Higher values provide + more context but increase token usage. +

+
+
{ setCachedStateField("showRooIgnoredFiles", e.target.checked) - }}> + }} + data-testid="show-rooignored-files-checkbox"> Show .rooignore'd files in lists and searches

diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx index c267acfee1..1cdc1d00fa 100644 --- a/webview-ui/src/components/settings/SettingsView.tsx +++ b/webview-ui/src/components/settings/SettingsView.tsx @@ -85,6 +85,7 @@ const SettingsView = forwardRef(({ onDone }, experiments, fuzzyMatchThreshold, maxOpenTabsContext, + maxWorkspaceFiles, mcpEnabled, rateLimitSeconds, requestDelaySeconds, @@ -196,6 +197,7 @@ const SettingsView = forwardRef(({ onDone }, vscode.postMessage({ type: "requestDelaySeconds", value: requestDelaySeconds }) vscode.postMessage({ type: "rateLimitSeconds", value: rateLimitSeconds }) vscode.postMessage({ type: "maxOpenTabsContext", value: maxOpenTabsContext }) + vscode.postMessage({ type: "maxWorkspaceFiles", value: maxWorkspaceFiles ?? 200 }) vscode.postMessage({ type: "showRooIgnoredFiles", bool: showRooIgnoredFiles }) vscode.postMessage({ type: "currentApiConfigName", text: currentApiConfigName }) vscode.postMessage({ type: "updateExperimental", values: experiments }) @@ -410,6 +412,7 @@ const SettingsView = forwardRef(({ onDone }, diff --git a/webview-ui/src/components/settings/__tests__/ContextManagementSettings.test.tsx b/webview-ui/src/components/settings/__tests__/ContextManagementSettings.test.tsx index 98ea4f78f5..25e7fa3e50 100644 --- a/webview-ui/src/components/settings/__tests__/ContextManagementSettings.test.tsx +++ b/webview-ui/src/components/settings/__tests__/ContextManagementSettings.test.tsx @@ -5,6 +5,7 @@ describe("ContextManagementSettings", () => { const defaultProps = { terminalOutputLineLimit: 500, maxOpenTabsContext: 20, + maxWorkspaceFiles: 200, showRooIgnoredFiles: false, setCachedStateField: jest.fn(), } @@ -18,21 +19,25 @@ describe("ContextManagementSettings", () => { // Terminal output limit expect(screen.getByText("Terminal output limit")).toBeInTheDocument() - expect(screen.getByRole("slider", { name: /Terminal output limit/i })).toHaveValue("500") + expect(screen.getByTestId("terminal-output-limit-slider")).toHaveValue("500") // Open tabs context limit expect(screen.getByText("Open tabs context limit")).toBeInTheDocument() - expect(screen.getByRole("slider", { name: /Open tabs context limit/i })).toHaveValue("20") + expect(screen.getByTestId("open-tabs-limit-slider")).toHaveValue("20") + + // Workspace files limit + expect(screen.getByText("Workspace files context limit")).toBeInTheDocument() + expect(screen.getByTestId("workspace-files-limit-slider")).toHaveValue("200") // Show .rooignore'd files expect(screen.getByText("Show .rooignore'd files in lists and searches")).toBeInTheDocument() - expect(screen.getByRole("checkbox")).not.toBeChecked() + expect(screen.getByTestId("show-rooignored-files-checkbox")).not.toBeChecked() }) it("updates terminal output limit", () => { render() - const slider = screen.getByRole("slider", { name: /Terminal output limit/i }) + const slider = screen.getByTestId("terminal-output-limit-slider") fireEvent.change(slider, { target: { value: "1000" } }) expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("terminalOutputLineLimit", 1000) @@ -41,16 +46,25 @@ describe("ContextManagementSettings", () => { it("updates open tabs context limit", () => { render() - const slider = screen.getByRole("slider", { name: /Open tabs context limit/i }) + const slider = screen.getByTestId("open-tabs-limit-slider") fireEvent.change(slider, { target: { value: "50" } }) expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("maxOpenTabsContext", 50) }) + it("updates workspace files contextlimit", () => { + render() + + const slider = screen.getByTestId("workspace-files-limit-slider") + fireEvent.change(slider, { target: { value: "50" } }) + + expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("maxWorkspaceFiles", 50) + }) + it("updates show rooignored files setting", () => { render() - const checkbox = screen.getByRole("checkbox") + const checkbox = screen.getByTestId("show-rooignored-files-checkbox") fireEvent.click(checkbox) expect(defaultProps.setCachedStateField).toHaveBeenCalledWith("showRooIgnoredFiles", true) diff --git a/webview-ui/src/context/ExtensionStateContext.tsx b/webview-ui/src/context/ExtensionStateContext.tsx index d79f263e83..b05a1a9f24 100644 --- a/webview-ui/src/context/ExtensionStateContext.tsx +++ b/webview-ui/src/context/ExtensionStateContext.tsx @@ -69,6 +69,8 @@ export interface ExtensionStateContextType extends ExtensionState { customModes: ModeConfig[] setCustomModes: (value: ModeConfig[]) => void setMaxOpenTabsContext: (value: number) => void + maxWorkspaceFiles: number + setMaxWorkspaceFiles: (value: number) => void setTelemetrySetting: (value: TelemetrySetting) => void remoteBrowserEnabled?: boolean setRemoteBrowserEnabled: (value: boolean) => void @@ -137,6 +139,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode autoApprovalEnabled: false, customModes: [], maxOpenTabsContext: 20, + maxWorkspaceFiles: 200, cwd: "", browserToolEnabled: true, telemetrySetting: "unset", @@ -280,6 +283,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode setAutoApprovalEnabled: (value) => setState((prevState) => ({ ...prevState, autoApprovalEnabled: value })), setCustomModes: (value) => setState((prevState) => ({ ...prevState, customModes: value })), setMaxOpenTabsContext: (value) => setState((prevState) => ({ ...prevState, maxOpenTabsContext: value })), + setMaxWorkspaceFiles: (value) => setState((prevState) => ({ ...prevState, maxWorkspaceFiles: value })), setBrowserToolEnabled: (value) => setState((prevState) => ({ ...prevState, browserToolEnabled: value })), setTelemetrySetting: (value) => setState((prevState) => ({ ...prevState, telemetrySetting: value })), setShowRooIgnoredFiles: (value) => setState((prevState) => ({ ...prevState, showRooIgnoredFiles: value })), diff --git a/webview-ui/src/context/__tests__/ExtensionStateContext.test.tsx b/webview-ui/src/context/__tests__/ExtensionStateContext.test.tsx index f8acf4f4d3..6b7742ba06 100644 --- a/webview-ui/src/context/__tests__/ExtensionStateContext.test.tsx +++ b/webview-ui/src/context/__tests__/ExtensionStateContext.test.tsx @@ -116,6 +116,7 @@ describe("mergeExtensionState", () => { experiments: {} as Record, customModes: [], maxOpenTabsContext: 20, + maxWorkspaceFiles: 100, apiConfiguration: { providerId: "openrouter" } as ApiConfiguration, telemetrySetting: "unset", showRooIgnoredFiles: true, From 76d4cf514a71bf25288c809da8b41d278fc06489 Mon Sep 17 00:00:00 2001 From: mrubens Date: Fri, 14 Mar 2025 16:11:54 +0000 Subject: [PATCH 4/8] docs: update contributors list [skip ci] --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b059fb8321..2fb2e89a92 100644 --- a/README.md +++ b/README.md @@ -176,21 +176,21 @@ We love community contributions! Here’s how to get involved: Thanks to all our contributors who have helped make Roo Code better! -| mrubens
mrubens
| saoudrizwan
saoudrizwan
| cte
cte
| samhvw8
samhvw8
| daniel-lxs
daniel-lxs
| a8trejo
a8trejo
| -| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | -| ColemanRoo
ColemanRoo
| stea9499
stea9499
| joemanley201
joemanley201
| System233
System233
| jquanton
jquanton
| nissa-seru
nissa-seru
| -| hannesrudolph
hannesrudolph
| MuriloFP
MuriloFP
| NyxJae
NyxJae
| punkpeye
punkpeye
| d-oit
d-oit
| monotykamary
monotykamary
| -| lloydchang
lloydchang
| vigneshsubbiah16
vigneshsubbiah16
| Szpadel
Szpadel
| lupuletic
lupuletic
| cannuri
cannuri
| Smartsheet-JB-Brown
Smartsheet-JB-Brown
| -| Premshay
Premshay
| psv2522
psv2522
| olweraltuve
olweraltuve
| RaySinner
RaySinner
| qdaxb
qdaxb
| afshawnlotfi
afshawnlotfi
| -| emshvac
emshvac
| Lunchb0ne
Lunchb0ne
| sammcj
sammcj
| dtrugman
dtrugman
| aitoroses
aitoroses
| yt3trees
yt3trees
| -| yongjer
yongjer
| vincentsong
vincentsong
| pugazhendhi-m
pugazhendhi-m
| eonghk
eonghk
| philfung
philfung
| pdecat
pdecat
| -| napter
napter
| mdp
mdp
| jcbdev
jcbdev
| anton-otee
anton-otee
| AMHesch
AMHesch
| bannzai
bannzai
| -| dairui1
dairui1
| dqroid
dqroid
| kinandan
kinandan
| kohii
kohii
| lightrabbit
lightrabbit
| olup
olup
| -| moqimoqidea
moqimoqidea
| mosleyit
mosleyit
| oprstchn
oprstchn
| philipnext
philipnext
| refactorthis
refactorthis
| samir-nimbly
samir-nimbly
| -| shaybc
shaybc
| shohei-ihaya
shohei-ihaya
| student20880
student20880
| PretzelVector
PretzelVector
| adamwlarson
adamwlarson
| alarno
alarno
| -| andreastempsch
andreastempsch
| Atlogit
Atlogit
| dleen
dleen
| dbasclpy
dbasclpy
| celestial-vault
celestial-vault
| DeXtroTip
DeXtroTip
| -| hesara
hesara
| eltociear
eltociear
| libertyteeth
libertyteeth
| mamertofabian
mamertofabian
| marvijo-code
marvijo-code
| Sarke
Sarke
| -| tgfjt
tgfjt
| vladstudio
vladstudio
| ashktn
ashktn
| | | | +| mrubens
mrubens
| saoudrizwan
saoudrizwan
| cte
cte
| samhvw8
samhvw8
| daniel-lxs
daniel-lxs
| a8trejo
a8trejo
| +| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | +| ColemanRoo
ColemanRoo
| stea9499
stea9499
| joemanley201
joemanley201
| System233
System233
| jquanton
jquanton
| nissa-seru
nissa-seru
| +| hannesrudolph
hannesrudolph
| MuriloFP
MuriloFP
| NyxJae
NyxJae
| punkpeye
punkpeye
| d-oit
d-oit
| monotykamary
monotykamary
| +| lloydchang
lloydchang
| vigneshsubbiah16
vigneshsubbiah16
| Szpadel
Szpadel
| lupuletic
lupuletic
| cannuri
cannuri
| Smartsheet-JB-Brown
Smartsheet-JB-Brown
| +| Premshay
Premshay
| psv2522
psv2522
| olweraltuve
olweraltuve
| RaySinner
RaySinner
| qdaxb
qdaxb
| afshawnlotfi
afshawnlotfi
| +| emshvac
emshvac
| Lunchb0ne
Lunchb0ne
| sammcj
sammcj
| dtrugman
dtrugman
| aitoroses
aitoroses
| yt3trees
yt3trees
| +| yongjer
yongjer
| vincentsong
vincentsong
| pugazhendhi-m
pugazhendhi-m
| eonghk
eonghk
| philfung
philfung
| pdecat
pdecat
| +| napter
napter
| mdp
mdp
| jcbdev
jcbdev
| anton-otee
anton-otee
| bannzai
bannzai
| dairui1
dairui1
| +| dqroid
dqroid
| feifei325
feifei325
| kinandan
kinandan
| kohii
kohii
| lightrabbit
lightrabbit
| olup
olup
| +| moqimoqidea
moqimoqidea
| mosleyit
mosleyit
| oprstchn
oprstchn
| philipnext
philipnext
| refactorthis
refactorthis
| samir-nimbly
samir-nimbly
| +| shaybc
shaybc
| shohei-ihaya
shohei-ihaya
| student20880
student20880
| PretzelVector
PretzelVector
| AMHesch
AMHesch
| adamwlarson
adamwlarson
| +| alarno
alarno
| andreastempsch
andreastempsch
| Atlogit
Atlogit
| dleen
dleen
| dbasclpy
dbasclpy
| celestial-vault
celestial-vault
| +| DeXtroTip
DeXtroTip
| hesara
hesara
| eltociear
eltociear
| libertyteeth
libertyteeth
| mamertofabian
mamertofabian
| marvijo-code
marvijo-code
| +| Sarke
Sarke
| tgfjt
tgfjt
| vladstudio
vladstudio
| ashktn
ashktn
| | | From ce28b4418ae7ba16b7d0f330f4ad305e12eca609 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 14 Mar 2025 12:12:40 -0400 Subject: [PATCH 5/8] CODE_OF_CONDUCT and CONTRIBUTING from Cline --- CODE_OF_CONDUCT.md | 76 ++++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 92 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..cbbb6f2bae --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +- The use of sexualized language or imagery and unwelcome sexual attention or + advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic + address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at hi@cline.bot. All complaints +will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..ce24b906bf --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,92 @@ +# Contributing to Cline + +We're thrilled you're interested in contributing to Cline. Whether you're fixing a bug, adding a feature, or improving our docs, every contribution makes Cline smarter! To keep our community vibrant and welcoming, all members must adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). + +## Reporting Bugs or Issues + +Bug reports help make Cline better for everyone! Before creating a new issue, please [search existing ones](https://github.com/cline/cline/issues) to avoid duplicates. When you're ready to report a bug, head over to our [issues page](https://github.com/cline/cline/issues/new/choose) where you'll find a template to help you with filling out the relevant information. + +

+ 🔐 Important: If you discover a security vulnerability, please use the Github security tool to report it privately. +
+ +## Deciding What to Work On + +Looking for a good first contribution? Check out issues labeled ["good first issue"](https://github.com/cline/cline/labels/good%20first%20issue) or ["help wanted"](https://github.com/cline/cline/labels/help%20wanted). These are specifically curated for new contributors and areas where we'd love some help! + +We also welcome contributions to our [documentation](https://github.com/cline/cline/tree/main/docs)! Whether it's fixing typos, improving existing guides, or creating new educational content - we'd love to build a community-driven repository of resources that helps everyone get the most out of Cline. You can start by diving into `/docs` and looking for areas that need improvement. + +If you're planning to work on a bigger feature, please create a [feature request](https://github.com/cline/cline/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop) first so we can discuss whether it aligns with Cline's vision. + +## Development Setup + +1. **VS Code Extensions** + + - When opening the project, VS Code will prompt you to install recommended extensions + - These extensions are required for development - please accept all installation prompts + - If you dismissed the prompts, you can install them manually from the Extensions panel + +2. **Local Development** + - Run `npm run install:all` to install dependencies + - Run `npm run test` to run tests locally + - Before submitting PR, run `npm run format:fix` to format your code + +## Writing and Submitting Code + +Anyone can contribute code to Cline, but we ask that you follow these guidelines to ensure your contributions can be smoothly integrated: + +1. **Keep Pull Requests Focused** + + - Limit PRs to a single feature or bug fix + - Split larger changes into smaller, related PRs + - Break changes into logical commits that can be reviewed independently + +2. **Code Quality** + + - Run `npm run lint` to check code style + - Run `npm run format` to automatically format code + - All PRs must pass CI checks which include both linting and formatting + - Address any ESLint warnings or errors before submitting + - Follow TypeScript best practices and maintain type safety + +3. **Testing** + + - Add tests for new features + - Run `npm test` to ensure all tests pass + - Update existing tests if your changes affect them + - Include both unit tests and integration tests where appropriate + +4. **Version Management with Changesets** + + - Create a changeset for any user-facing changes using `npm run changeset` + - Choose the appropriate version bump: + - `major` for breaking changes (1.0.0 → 2.0.0) + - `minor` for new features (1.0.0 → 1.1.0) + - `patch` for bug fixes (1.0.0 → 1.0.1) + - Write clear, descriptive changeset messages that explain the impact + - Documentation-only changes don't require changesets + +5. **Commit Guidelines** + + - Write clear, descriptive commit messages + - Use conventional commit format (e.g., "feat:", "fix:", "docs:") + - Reference relevant issues in commits using #issue-number + +6. **Before Submitting** + + - Rebase your branch on the latest main + - Ensure your branch builds successfully + - Double-check all tests are passing + - Review your changes for any debugging code or console logs + +7. **Pull Request Description** + - Clearly describe what your changes do + - Include steps to test the changes + - List any breaking changes + - Add screenshots for UI changes + +## Contribution Agreement + +By submitting a pull request, you agree that your contributions will be licensed under the same license as the project ([Apache 2.0](LICENSE)). + +Remember: Contributing to Cline isn't just about writing code - it's about being part of a community that's shaping the future of AI-assisted development. Let's build something amazing together! 🚀 From 687d880bdedd06e18fb13281b8fb9dd2c1de5786 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 14 Mar 2025 12:13:44 -0400 Subject: [PATCH 6/8] Update email and attribution --- CODE_OF_CONDUCT.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index cbbb6f2bae..bb04e1abc2 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -55,7 +55,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at hi@cline.bot. All complaints +reported by contacting the project team at support@roocode.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. @@ -67,9 +67,10 @@ members of the project's leadership. ## Attribution -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +This Code of Conduct is adapted from [Cline's version][cline_coc] of the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html +[cline_coc]: https://github.com/cline/cline/blob/main/CODE_OF_CONDUCT.md [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see From 27499433de4d5c0ca19807664d706c6d09fcfa44 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 14 Mar 2025 12:26:12 -0400 Subject: [PATCH 7/8] Updating instructions for contributing --- CONTRIBUTING.md | 78 ++++++++++++++++++++++++++++--------------------- README.md | 7 +---- 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ce24b906bf..aadbe0512c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,39 +1,63 @@ -# Contributing to Cline +# Contributing to Roo Code -We're thrilled you're interested in contributing to Cline. Whether you're fixing a bug, adding a feature, or improving our docs, every contribution makes Cline smarter! To keep our community vibrant and welcoming, all members must adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). +We're thrilled you're interested in contributing to Roo Code. Whether you're fixing a bug, adding a feature, or improving our docs, every contribution makes Roo Code smarter! To keep our community vibrant and welcoming, all members must adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). ## Reporting Bugs or Issues -Bug reports help make Cline better for everyone! Before creating a new issue, please [search existing ones](https://github.com/cline/cline/issues) to avoid duplicates. When you're ready to report a bug, head over to our [issues page](https://github.com/cline/cline/issues/new/choose) where you'll find a template to help you with filling out the relevant information. +Bug reports help make Roo Code better for everyone! Before creating a new issue, please [search existing ones](https://github.com/RooVetGit/Roo-Code/issues) to avoid duplicates. When you're ready to report a bug, head over to our [issues page](https://github.com/RooVetGit/Roo-Code/issues/new/choose) where you'll find a template to help you with filling out the relevant information.
- 🔐 Important: If you discover a security vulnerability, please use the Github security tool to report it privately. + 🔐 Important: If you discover a security vulnerability, please use the Github security tool to report it privately.
## Deciding What to Work On -Looking for a good first contribution? Check out issues labeled ["good first issue"](https://github.com/cline/cline/labels/good%20first%20issue) or ["help wanted"](https://github.com/cline/cline/labels/help%20wanted). These are specifically curated for new contributors and areas where we'd love some help! +Looking for a good first contribution? Check out issues in the "Issue [Unassigned]" section of our [Roo Code Issues](https://github.com/orgs/RooVetGit/projects/1) Github Project. These are specifically curated for new contributors and areas where we'd love some help! -We also welcome contributions to our [documentation](https://github.com/cline/cline/tree/main/docs)! Whether it's fixing typos, improving existing guides, or creating new educational content - we'd love to build a community-driven repository of resources that helps everyone get the most out of Cline. You can start by diving into `/docs` and looking for areas that need improvement. +We also welcome contributions to our [documentation](https://docs.roocode.com/)! Whether it's fixing typos, improving existing guides, or creating new educational content - we'd love to build a community-driven repository of resources that helps everyone get the most out of Roo Code. You can click "Edit this page" on any page to quickly get to the right spot in Github to edit the file, or you can dive directly into https://github.com/RooVetGit/Roo-Code-Docs. -If you're planning to work on a bigger feature, please create a [feature request](https://github.com/cline/cline/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop) first so we can discuss whether it aligns with Cline's vision. +If you're planning to work on a bigger feature, please create a [feature request](https://github.com/RooVetGit/Roo-Code/discussions/categories/feature-requests?discussions_q=is%3Aopen+category%3A%22Feature+Requests%22+sort%3Atop) first so we can discuss whether it aligns with Roo Code's vision. ## Development Setup -1. **VS Code Extensions** +1. **Clone** the repo: - - When opening the project, VS Code will prompt you to install recommended extensions - - These extensions are required for development - please accept all installation prompts - - If you dismissed the prompts, you can install them manually from the Extensions panel +```sh +git clone https://github.com/RooVetGit/Roo-Code.git +``` -2. **Local Development** - - Run `npm run install:all` to install dependencies - - Run `npm run test` to run tests locally - - Before submitting PR, run `npm run format:fix` to format your code +2. **Install dependencies**: + +```sh +npm run install:all +``` + +3. **Start the webview (Vite/React app with HMR)**: + +```sh +npm run dev +``` + +4. **Debug**: + Press `F5` (or **Run** → **Start Debugging**) in VSCode to open a new session with Roo Code loaded. + +Changes to the webview will appear immediately. Changes to the core extension will require a restart of the extension host. + +Alternatively you can build a .vsix and install it directly in VSCode: + +```sh +npm run build +``` + +A `.vsix` file will appear in the `bin/` directory which can be installed with: + +```sh +code --install-extension bin/roo-cline-.vsix +``` ## Writing and Submitting Code -Anyone can contribute code to Cline, but we ask that you follow these guidelines to ensure your contributions can be smoothly integrated: +Anyone can contribute code to Roo Code, but we ask that you follow these guidelines to ensure your contributions can be smoothly integrated: 1. **Keep Pull Requests Focused** @@ -43,10 +67,9 @@ Anyone can contribute code to Cline, but we ask that you follow these guidelines 2. **Code Quality** - - Run `npm run lint` to check code style - - Run `npm run format` to automatically format code - All PRs must pass CI checks which include both linting and formatting - Address any ESLint warnings or errors before submitting + - Respond to all feedback from Ellipsis, our automated code review tool - Follow TypeScript best practices and maintain type safety 3. **Testing** @@ -56,30 +79,19 @@ Anyone can contribute code to Cline, but we ask that you follow these guidelines - Update existing tests if your changes affect them - Include both unit tests and integration tests where appropriate -4. **Version Management with Changesets** - - - Create a changeset for any user-facing changes using `npm run changeset` - - Choose the appropriate version bump: - - `major` for breaking changes (1.0.0 → 2.0.0) - - `minor` for new features (1.0.0 → 1.1.0) - - `patch` for bug fixes (1.0.0 → 1.0.1) - - Write clear, descriptive changeset messages that explain the impact - - Documentation-only changes don't require changesets - -5. **Commit Guidelines** +4. **Commit Guidelines** - Write clear, descriptive commit messages - - Use conventional commit format (e.g., "feat:", "fix:", "docs:") - Reference relevant issues in commits using #issue-number -6. **Before Submitting** +5. **Before Submitting** - Rebase your branch on the latest main - Ensure your branch builds successfully - Double-check all tests are passing - Review your changes for any debugging code or console logs -7. **Pull Request Description** +6. **Pull Request Description** - Clearly describe what your changes do - Include steps to test the changes - List any breaking changes @@ -88,5 +100,3 @@ Anyone can contribute code to Cline, but we ask that you follow these guidelines ## Contribution Agreement By submitting a pull request, you agree that your contributions will be licensed under the same license as the project ([Apache 2.0](LICENSE)). - -Remember: Contributing to Cline isn't just about writing code - it's about being part of a community that's shaping the future of AI-assisted development. Let's build something amazing together! 🚀 diff --git a/README.md b/README.md index b059fb8321..ee6d78ac10 100644 --- a/README.md +++ b/README.md @@ -161,12 +161,7 @@ We use [changesets](https://github.com/changesets/changesets) for versioning and ## Contributing -We love community contributions! Here’s how to get involved: - -1. **Check Issues & Requests**: See [open issues](https://github.com/RooVetGit/Roo-Code/issues) or [feature requests](https://github.com/RooVetGit/Roo-Code/discussions/categories/feature-requests). -2. **Fork & branch** off `main`. -3. **Submit a Pull Request** once your feature or fix is ready. -4. **Join** our [Reddit community](https://www.reddit.com/r/RooCode/) and [Discord](https://roocode.com/discord) for feedback, tips, and announcements. +We love community contributions! Get started by reading our [CONTRIBUTING.md](CONTRIBUTING.md). --- From b1615a37352755f75561fdde3c297981792a9906 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 14 Mar 2025 12:30:57 -0400 Subject: [PATCH 8/8] Add plug for Discord --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aadbe0512c..ff31a9176a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,16 @@ We're thrilled you're interested in contributing to Roo Code. Whether you're fixing a bug, adding a feature, or improving our docs, every contribution makes Roo Code smarter! To keep our community vibrant and welcoming, all members must adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). +## Join Our Community + +We strongly encourage all contributors to join our [Discord community](https://discord.gg/roocode)! Being part of our Discord server helps you: + +- Get real-time help and guidance on your contributions +- Connect with other contributors and core team members +- Stay updated on project developments and priorities +- Participate in discussions that shape Roo Code's future +- Find collaboration opportunities with other developers + ## Reporting Bugs or Issues Bug reports help make Roo Code better for everyone! Before creating a new issue, please [search existing ones](https://github.com/RooVetGit/Roo-Code/issues) to avoid duplicates. When you're ready to report a bug, head over to our [issues page](https://github.com/RooVetGit/Roo-Code/issues/new/choose) where you'll find a template to help you with filling out the relevant information.