From 07d7ed48412f0a2b61522f157be2e451ee64174b Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 25 Aug 2025 01:27:13 -0400 Subject: [PATCH 1/5] Sonic -> Grok Code Fast --- packages/types/src/providers/roo.ts | 8 ++++---- packages/types/src/providers/xai.ts | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/types/src/providers/roo.ts b/packages/types/src/providers/roo.ts index c95e500f5453..ee84bbe1b1bf 100644 --- a/packages/types/src/providers/roo.ts +++ b/packages/types/src/providers/roo.ts @@ -1,12 +1,12 @@ import type { ModelInfo } from "../model.js" // Roo provider with single model -export type RooModelId = "roo/sonic" +export type RooModelId = "xai/grok-code-fast-1" -export const rooDefaultModelId: RooModelId = "roo/sonic" +export const rooDefaultModelId: RooModelId = "xai/grok-code-fast-1" export const rooModels = { - "roo/sonic": { + "xai/grok-code-fast-1": { maxTokens: 16_384, contextWindow: 262_144, supportsImages: false, @@ -14,6 +14,6 @@ export const rooModels = { inputPrice: 0, outputPrice: 0, description: - "A stealth reasoning model that is blazing fast and excels at agentic coding, accessible for free through Roo Code Cloud for a limited time. (Note: prompts and completions are logged by the model creator and used to improve the model.)", + "A reasoning model that is blazing fast and excels at agentic coding, accessible for free through Roo Code Cloud for a limited time. (Note: the free prompts and completions are logged by xAI and used to improve the model.)", }, } as const satisfies Record diff --git a/packages/types/src/providers/xai.ts b/packages/types/src/providers/xai.ts index 12dc8a145c05..99b0ff63b197 100644 --- a/packages/types/src/providers/xai.ts +++ b/packages/types/src/providers/xai.ts @@ -6,6 +6,17 @@ export type XAIModelId = keyof typeof xaiModels export const xaiDefaultModelId: XAIModelId = "grok-4" export const xaiModels = { + "grok-code-fast-1": { + maxTokens: 16_384, + contextWindow: 262_144, + supportsImages: false, + supportsPromptCache: true, + inputPrice: 0.2, + outputPrice: 1.5, + cacheWritesPrice: 0.02, + cacheReadsPrice: 0.02, + description: "xAI's Grok Code Fast model with 256K context window", + }, "grok-4": { maxTokens: 8192, contextWindow: 256000, From f68f19179c34aec01d2412a044a661bb25cc0c9c Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 25 Aug 2025 02:06:14 -0400 Subject: [PATCH 2/5] Hack selected model display --- .../components/ui/hooks/useSelectedModel.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/webview-ui/src/components/ui/hooks/useSelectedModel.ts b/webview-ui/src/components/ui/hooks/useSelectedModel.ts index aeb90c3491a4..6455e2e31394 100644 --- a/webview-ui/src/components/ui/hooks/useSelectedModel.ts +++ b/webview-ui/src/components/ui/hooks/useSelectedModel.ts @@ -308,9 +308,21 @@ function getSelectedModel({ return { id, info } } case "roo": { - const id = apiConfiguration.apiModelId ?? rooDefaultModelId - const info = rooModels[id as keyof typeof rooModels] - return { id, info } + const requestedId = apiConfiguration.apiModelId + + // Check if the requested model exists in rooModels + if (requestedId && rooModels[requestedId as keyof typeof rooModels]) { + return { + id: requestedId, + info: rooModels[requestedId as keyof typeof rooModels], + } + } + + // Fallback to default model if requested model doesn't exist or is not specified + return { + id: rooDefaultModelId, + info: rooModels[rooDefaultModelId as keyof typeof rooModels], + } } case "qwen-code": { const id = apiConfiguration.apiModelId ?? qwenCodeDefaultModelId From 8c3b152ff9ffc550f603916eb39541ffc36e63d3 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 25 Aug 2025 13:16:24 -0400 Subject: [PATCH 3/5] Update announcement --- src/api/providers/__tests__/roo.spec.ts | 6 +- src/core/webview/ClineProvider.ts | 2 +- .../src/components/chat/Announcement.tsx | 62 +++++++++++++++---- .../chat/__tests__/Announcement.spec.tsx | 27 +++++--- webview-ui/src/i18n/locales/ca/chat.json | 8 +-- webview-ui/src/i18n/locales/de/chat.json | 6 +- webview-ui/src/i18n/locales/en/chat.json | 6 +- webview-ui/src/i18n/locales/es/chat.json | 8 +-- webview-ui/src/i18n/locales/fr/chat.json | 6 +- webview-ui/src/i18n/locales/hi/chat.json | 6 +- webview-ui/src/i18n/locales/id/chat.json | 6 +- webview-ui/src/i18n/locales/it/chat.json | 6 +- webview-ui/src/i18n/locales/ja/chat.json | 6 +- webview-ui/src/i18n/locales/ko/chat.json | 6 +- webview-ui/src/i18n/locales/nl/chat.json | 6 +- webview-ui/src/i18n/locales/pl/chat.json | 6 +- webview-ui/src/i18n/locales/pt-BR/chat.json | 6 +- webview-ui/src/i18n/locales/ru/chat.json | 6 +- webview-ui/src/i18n/locales/tr/chat.json | 6 +- webview-ui/src/i18n/locales/vi/chat.json | 6 +- webview-ui/src/i18n/locales/zh-CN/chat.json | 6 +- webview-ui/src/i18n/locales/zh-TW/chat.json | 6 +- 22 files changed, 129 insertions(+), 80 deletions(-) diff --git a/src/api/providers/__tests__/roo.spec.ts b/src/api/providers/__tests__/roo.spec.ts index 57b397b8f854..3b99b6576102 100644 --- a/src/api/providers/__tests__/roo.spec.ts +++ b/src/api/providers/__tests__/roo.spec.ts @@ -115,7 +115,7 @@ describe("RooHandler", () => { beforeEach(() => { mockOptions = { - apiModelId: "roo/sonic", + apiModelId: "xai/grok-code-fast-1", } // Set up CloudService mocks for successful authentication mockHasInstanceFn.mockReturnValue(true) @@ -313,8 +313,8 @@ describe("RooHandler", () => { const modelInfo = handler.getModel() expect(modelInfo.id).toBe(mockOptions.apiModelId) expect(modelInfo.info).toBeDefined() - // roo/sonic is a valid model in rooModels - expect(modelInfo.info).toBe(rooModels["roo/sonic"]) + // xai/grok-code-fast-1 is a valid model in rooModels + expect(modelInfo.info).toBe(rooModels["xai/grok-code-fast-1"]) }) it("should return default model when no model specified", () => { diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index b6c00ee37901..18fa70035b92 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -120,7 +120,7 @@ export class ClineProvider public isViewLaunched = false public settingsImportedAt?: number - public readonly latestAnnouncementId = "aug-20-2025-stealth-model" // Update for stealth model announcement + public readonly latestAnnouncementId = "aug-25-2025-grok-code-fast" // Update for Grok Code Fast announcement 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 90ad7dffb1c8..38f16acc0667 100644 --- a/webview-ui/src/components/chat/Announcement.tsx +++ b/webview-ui/src/components/chat/Announcement.tsx @@ -42,29 +42,65 @@ const Announcement = ({ hideAnnouncement }: AnnouncementProps) => { {t("chat:announcement.title", { version: Package.version })}
-
    -
  • - •{" "} +
    +
    , + code: , }} /> -
  • -
+
+ -

{t("chat:announcement.stealthModel.note")}

+
+ , + code: , + }} + /> +
{!cloudIsAuthenticated ? ( - +
+
+ , + settingsLink: ( + { + e.preventDefault() + setOpen(false) + hideAnnouncement() + window.postMessage( + { + type: "action", + action: "settingsButtonClicked", + values: { section: "provider" }, + }, + "*", + ) + }} + /> + ), + }} + /> +
+ +
) : (
({ return `🎉 Roo Code ${options?.version} Released` } if (key === "chat:announcement.stealthModel.feature") { - return "Stealth reasoning model with advanced capabilities" + return "The Sonic stealth model is now Grok Code Fast!" } if (key === "chat:announcement.stealthModel.note") { - return "Note: This is an experimental feature" + return "As a thank you for all the helpful feedback about Sonic, you'll also continue to have free access to the grok-code-fast-1 model for another week through the Roo Code Cloud provider." } if (key === "chat:announcement.stealthModel.connectButton") { return "Connect to Roo Code Cloud" @@ -43,10 +43,23 @@ vi.mock("@src/i18n/TranslationContext", () => ({ vi.mock("react-i18next", () => ({ Trans: ({ i18nKey, children }: { i18nKey?: string; children: React.ReactNode }) => { if (i18nKey === "chat:announcement.stealthModel.feature") { - return <>Stealth reasoning model with advanced capabilities + return ( + <> + The Sonic stealth model is now Grok Code Fast! The fast reasoning model is now available as + grok-code-fast-1 under the “xAI (Grok)” provider. + + ) } if (i18nKey === "chat:announcement.stealthModel.selectModel") { - return <>Please select the roo/sonic model in settings + return <>Visit Settings to get started + } + if (i18nKey === "chat:announcement.stealthModel.note") { + return ( + <> + As a thank you for all the helpful feedback about Sonic, you’ll also continue to have free + access to the grok-code-fast-1 model for another week through the Roo Code Cloud provider. + + ) } return <>{children} }, @@ -77,11 +90,11 @@ describe("Announcement", () => { // Check if the mocked version number is present in the title expect(screen.getByText(`🎉 Roo Code ${expectedVersion} Released`)).toBeInTheDocument() - // Check if the stealth model feature is displayed (using partial match due to bullet point) - expect(screen.getByText(/Stealth reasoning model with advanced capabilities/)).toBeInTheDocument() + // Check if the Grok Code Fast feature is displayed + expect(screen.getByText(/The Sonic stealth model is now Grok Code Fast!/)).toBeInTheDocument() // Check if the note is displayed - expect(screen.getByText("Note: This is an experimental feature")).toBeInTheDocument() + expect(screen.getByText(/As a thank you for all the helpful feedback about Sonic/)).toBeInTheDocument() // Check if the connect button is displayed (since cloudIsAuthenticated is false in the mock) expect(screen.getByText("Connect to Roo Code Cloud")).toBeInTheDocument() diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json index fc662af62595..9beddb9e276b 100644 --- a/webview-ui/src/i18n/locales/ca/chat.json +++ b/webview-ui/src/i18n/locales/ca/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} Llançat", "stealthModel": { - "feature": "Model stealth GRATUÏT per temps limitat - Un model de raonament ultraràpid que destaca en codificació agèntica amb una finestra de context de 262k, disponible a través de Roo Code Cloud.", - "note": "(Nota: els prompts i completacions són registrats pel creador del model i utilitzats per millorar-lo)", - "connectButton": "Connectar a Roo Code Cloud", - "selectModel": "Selecciona roo/sonic del proveïdor Roo Code Cloud a
Configuració per començar" + "feature": "El model stealth Sonic ara és Grok Code Fast! Aquest model de raonament d'alt rendiment està disponible com a grok-code-fast-1 sota el proveïdor xAI (Grok).", + "note": "Com a agraïment per tots els comentaris útils sobre Sonic, xAI està ampliant l'accés gratuït a grok-code-fast-1 durant una setmana més a través del proveïdor Roo Code Cloud.", + "connectButton": "Connectar amb Roo Code Cloud", + "selectModel": "Visita la Configuració per actualitzar la configuració del proveïdor." }, "description": "Roo Code {{version}} porta noves funcions potents i millores significatives per millorar el vostre flux de treball de desenvolupament.", "whatsNew": "Novetats", diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json index f33a194a9be6..bc0893acd05d 100644 --- a/webview-ui/src/i18n/locales/de/chat.json +++ b/webview-ui/src/i18n/locales/de/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} veröffentlicht", "stealthModel": { - "feature": "Zeitlich begrenztes KOSTENLOSES Stealth-Modell - Ein blitzschnelles Reasoning-Modell, das sich bei agentic coding mit einem 262k Kontextfenster auszeichnet, verfügbar über Roo Code Cloud.", - "note": "(Hinweis: Prompts und Vervollständigungen werden vom Modellersteller protokolliert und zur Verbesserung des Modells verwendet)", + "feature": "Das Sonic Stealth-Modell heißt jetzt Grok Code Fast! Dieses hochleistungsfähige Reasoning-Modell ist als grok-code-fast-1 unter dem xAI (Grok) Provider verfügbar.", + "note": "Als Dankeschön für all das hilfreiche Feedback zu Sonic erweitert xAI den kostenlosen Zugang zu grok-code-fast-1 für eine weitere Woche über den Roo Code Cloud-Anbieter.", "connectButton": "Mit Roo Code Cloud verbinden", - "selectModel": "Wähle roo/sonic vom Roo Code Cloud Provider in
Einstellungen um zu beginnen" + "selectModel": "Besuche die Einstellungen, um deine Provider-Konfiguration zu aktualisieren." }, "description": "Roo Code {{version}} bringt mächtige neue Funktionen und bedeutende Verbesserungen, um deinen Entwicklungsworkflow zu verbessern.", "whatsNew": "Was ist neu", diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index ff93fa6e0837..74bb3b0c792d 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -275,10 +275,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} Released", "stealthModel": { - "feature": "Limited-time FREE stealth model - A blazing fast reasoning model that excels at agentic coding with a 262k context window, available through Roo Code Cloud.", - "note": "(Note: prompts and completions are logged by the model creator to improve the model)", + "feature": "The Sonic stealth model is now Grok Code Fast! This high-performance reasoning model is available as grok-code-fast-1 under the xAI (Grok) provider.", + "note": "As a thank you for all the helpful feedback on Sonic, xAI is extending free access to grok-code-fast-1 for another week through the Roo Code Cloud provider.", "connectButton": "Connect to Roo Code Cloud", - "selectModel": "Select roo/sonic from the Roo Code Cloud provider in
Settings to get started" + "selectModel": "Visit Settings to update your provider configuration." } }, "reasoning": { diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json index 8902faa5af51..85d36ccd777f 100644 --- a/webview-ui/src/i18n/locales/es/chat.json +++ b/webview-ui/src/i18n/locales/es/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} publicado", "stealthModel": { - "feature": "Modelo stealth GRATUITO por tiempo limitado - Un modelo de razonamiento ultrarrápido que sobresale en codificación agéntica con una ventana de contexto de 262k, disponible a través de Roo Code Cloud.", - "note": "(Nota: los prompts y completaciones son registrados por el creador del modelo y utilizados para mejorarlo)", - "connectButton": "Conectar a Roo Code Cloud", - "selectModel": "Selecciona roo/sonic del proveedor Roo Code Cloud en
Configuración para comenzar" + "feature": "¡El modelo stealth Sonic ahora es Grok Code Fast! Este modelo de razonamiento de alto rendimiento está disponible como grok-code-fast-1 bajo el proveedor xAI (Grok).", + "note": "Como agradecimiento por todos los comentarios útiles sobre Sonic, xAI está extendiendo el acceso gratuito a grok-code-fast-1 por una semana más a través del proveedor Roo Code Cloud.", + "connectButton": "Conectar con Roo Code Cloud", + "selectModel": "Visita Configuración para actualizar tu configuración de proveedor." }, "description": "Roo Code {{version}} trae poderosas nuevas funcionalidades y mejoras significativas para mejorar tu flujo de trabajo de desarrollo.", "whatsNew": "Novedades", diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json index 83b0dda0e947..ed8e542753cd 100644 --- a/webview-ui/src/i18n/locales/fr/chat.json +++ b/webview-ui/src/i18n/locales/fr/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} est sortie", "stealthModel": { - "feature": "Modèle stealth GRATUIT pour une durée limitée - Un modèle de raisonnement ultra-rapide qui excelle dans le codage agentique avec une fenêtre de contexte de 262k, disponible via Roo Code Cloud.", - "note": "(Note : les prompts et complétions sont enregistrés par le créateur du modèle et utilisés pour l'améliorer)", + "feature": "Le modèle stealth Sonic devient Grok Code Fast ! Ce modèle de raisonnement haute performance est disponible sous grok-code-fast-1 chez le fournisseur xAI (Grok).", + "note": "En remerciement de tous vos commentaires utiles sur Sonic, xAI étend l'accès gratuit à grok-code-fast-1 pendant une semaine supplémentaire via le fournisseur Roo Code Cloud.", "connectButton": "Se connecter à Roo Code Cloud", - "selectModel": "Sélectionne roo/sonic du fournisseur Roo Code Cloud dans
Paramètres pour commencer" + "selectModel": "Visitez les Paramètres pour mettre à jour votre configuration de fournisseur." }, "description": "Roo Code {{version}} apporte de puissantes nouvelles fonctionnalités et des améliorations significatives pour améliorer ton flux de travail de développement.", "whatsNew": "Quoi de neuf", diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json index ff27bdcfc4bc..93efe3acee7b 100644 --- a/webview-ui/src/i18n/locales/hi/chat.json +++ b/webview-ui/src/i18n/locales/hi/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} रिलीज़ हुआ", "stealthModel": { - "feature": "सीमित समय के लिए मुफ़्त स्टेल्थ मॉडल - एक अत्यंत तेज़ रीज़निंग मॉडल जो 262k कॉन्टेक्स्ट विंडो के साथ एजेंटिक कोडिंग में उत्कृष्ट है, Roo Code Cloud के माध्यम से उपलब्ध।", - "note": "(नोट: प्रॉम्प्ट्स और कम्प्लीशन्स मॉडल निर्माता द्वारा लॉग किए जाते हैं और मॉडल को बेहतर बनाने के लिए उपयोग किए जाते हैं)", + "feature": "Sonic स्टेल्थ मॉडल अब Grok Code Fast है! यह उच्च-प्रदर्शन रीज़निंग मॉडल xAI (Grok) प्रोवाइडर के तहत grok-code-fast-1 के रूप में उपलब्ध है।", + "note": "Sonic के बारे में सभी सहायक फीडबैक के लिए धन्यवाद के रूप में, xAI Roo Code Cloud प्रदाता के माध्यम से एक और सप्ताह के लिए grok-code-fast-1 तक मुफ्त पहुंच बढ़ा रहा है।", "connectButton": "Roo Code Cloud से कनेक्ट करें", - "selectModel": "
सेटिंग्स में Roo Code Cloud प्रोवाइडर से roo/sonic चुनें और शुरू करें" + "selectModel": "अपने प्रोवाइडर कॉन्फ़िगरेशन को अपडेट करने के लिए सेटिंग्स देखें।" }, "description": "Roo Code {{version}} आपके विकास वर्कफ़्लो को बेहतर बनाने के लिए शक्तिशाली नई सुविधाएं और महत्वपूर्ण सुधार लेकर आया है।", "whatsNew": "नया क्या है", diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json index 211506a04e6f..63157aa9895b 100644 --- a/webview-ui/src/i18n/locales/id/chat.json +++ b/webview-ui/src/i18n/locales/id/chat.json @@ -278,10 +278,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} Dirilis", "stealthModel": { - "feature": "Model stealth GRATIS waktu terbatas - Model penalaran super cepat yang unggul dalam coding agentik dengan jendela konteks 262k, tersedia melalui Roo Code Cloud.", - "note": "(Catatan: prompt dan completion dicatat oleh pembuat model dan digunakan untuk meningkatkan model)", + "feature": "Model stealth Sonic kini adalah Grok Code Fast! Model penalaran berperforma tinggi ini tersedia sebagai grok-code-fast-1 di bawah penyedia xAI (Grok).", + "note": "Sebagai ucapan terima kasih atas semua masukan berguna tentang Sonic, xAI memperpanjang akses gratis ke grok-code-fast-1 selama satu minggu lagi melalui penyedia Roo Code Cloud.", "connectButton": "Hubungkan ke Roo Code Cloud", - "selectModel": "Pilih roo/sonic dari penyedia Roo Code Cloud di
Pengaturan untuk memulai" + "selectModel": "Kunjungi Pengaturan untuk memperbarui konfigurasi penyedia." }, "description": "Roo Code {{version}} menghadirkan fitur-fitur baru yang kuat dan peningkatan signifikan untuk meningkatkan alur kerja pengembangan Anda.", "whatsNew": "Yang Baru", diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json index c84dd9b40404..10c1c9826d95 100644 --- a/webview-ui/src/i18n/locales/it/chat.json +++ b/webview-ui/src/i18n/locales/it/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Rilasciato Roo Code {{version}}", "stealthModel": { - "feature": "Modello stealth GRATUITO per tempo limitato - Un modello di ragionamento velocissimo che eccelle nella programmazione agentica con una finestra di contesto di 262k, disponibile tramite Roo Code Cloud.", - "note": "(Nota: i prompt e le completazioni sono registrati dal creatore del modello e utilizzati per migliorarlo)", + "feature": "Il modello stealth Sonic ora è Grok Code Fast! Questo modello di ragionamento ad alte prestazioni è disponibile come grok-code-fast-1 sotto il provider xAI (Grok).", + "note": "Come ringraziamento per tutti i feedback utili su Sonic, xAI sta estendendo l'accesso gratuito a grok-code-fast-1 per un'altra settimana tramite il provider Roo Code Cloud.", "connectButton": "Connetti a Roo Code Cloud", - "selectModel": "Seleziona roo/sonic dal provider Roo Code Cloud in
Impostazioni per iniziare" + "selectModel": "Visita le Impostazioni per aggiornare la configurazione del provider." }, "description": "Roo Code {{version}} porta nuove potenti funzionalità e miglioramenti significativi per potenziare il tuo flusso di lavoro di sviluppo.", "whatsNew": "Novità", diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json index 2b0551888539..30fc6a2cf9d3 100644 --- a/webview-ui/src/i18n/locales/ja/chat.json +++ b/webview-ui/src/i18n/locales/ja/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} リリース", "stealthModel": { - "feature": "期間限定無料ステルスモデル - 262kコンテキストウィンドウを持つ、エージェンティックコーディングに優れた超高速推論モデル、Roo Code Cloud経由で利用可能。", - "note": "(注意:プロンプトと補完はモデル作成者によってログに記録され、モデルの改善に使用されます)", + "feature": "Sonicステルスモデルが今、Grok Code Fastに!この高性能推論モデルがxAI (Grok)プロバイダーの下でgrok-code-fast-1として利用できるようになりました。", + "note": "Sonicに関するすべての有用なフィードバックに感謝して、xAIはRoo Code Cloudプロバイダーを通じてgrok-code-fast-1への無料アクセスをもう1週間延長しています。", "connectButton": "Roo Code Cloudに接続", - "selectModel": "
設定でRoo Code Cloudプロバイダーからroo/sonicを選択して開始" + "selectModel": "プロバイダー設定を更新するために設定にアクセスしてください。" }, "description": "Roo Code {{version}}は、開発ワークフローを向上させる強力な新機能と重要な改善をもたらします。", "whatsNew": "新機能", diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json index 1a3999d1ba39..3fbde1f3533c 100644 --- a/webview-ui/src/i18n/locales/ko/chat.json +++ b/webview-ui/src/i18n/locales/ko/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} 출시", "stealthModel": { - "feature": "기간 한정 무료 스텔스 모델 - 262k 컨텍스트 윈도우를 가진 에이전틱 코딩에 뛰어난 초고속 추론 모델, Roo Code Cloud를 통해 이용 가능.", - "note": "(참고: 프롬프트와 완성은 모델 제작자에 의해 기록되고 모델 개선에 사용됩니다)", + "feature": "Sonic 스텔스 모델이 이제 Grok Code Fast입니다! 이 고성능 추론 모델은 xAI (Grok) 제공업체 하에서 grok-code-fast-1로 이용 가능합니다.", + "note": "Sonic에 대한 모든 유용한 피드백에 대한 감사의 표시로, xAI는 Roo Code Cloud 제공업체를 통해 grok-code-fast-1에 대한 무료 액세스를 한 주 더 연장합니다.", "connectButton": "Roo Code Cloud에 연결", - "selectModel": "
설정에서 Roo Code Cloud 제공업체의 roo/sonic을 선택하여 시작" + "selectModel": "제공업체 설정을 업데이트하려면 설정을 방문하세요." }, "description": "Roo Code {{version}}은 개발 워크플로우를 향상시키는 강력한 새 기능과 중요한 개선사항을 제공합니다.", "whatsNew": "새로운 기능", diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json index 0d9168328c16..a53f148bf268 100644 --- a/webview-ui/src/i18n/locales/nl/chat.json +++ b/webview-ui/src/i18n/locales/nl/chat.json @@ -251,10 +251,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} uitgebracht", "stealthModel": { - "feature": "Beperkt tijd GRATIS stealth model - Een bliksemsnelle redeneermodel die uitblinkt in agentische programmering met een 262k contextvenster, beschikbaar via Roo Code Cloud.", - "note": "(Opmerking: prompts en aanvullingen worden gelogd door de modelmaker en gebruikt om het model te verbeteren)", + "feature": "Het Sonic stealth model is nu Grok Code Fast! Dit hoogperformante redeneermodel is beschikbaar als grok-code-fast-1 onder de xAI (Grok) provider.", + "note": "Als dank voor alle nuttige feedback over Sonic, breidt xAI de gratis toegang tot grok-code-fast-1 uit voor nog een week via de Roo Code Cloud-provider.", "connectButton": "Verbinden met Roo Code Cloud", - "selectModel": "Selecteer roo/sonic van de Roo Code Cloud provider in
Instellingen om te beginnen" + "selectModel": "Ga naar Instellingen om je provider configuratie bij te werken." }, "description": "Roo Code {{version}} brengt krachtige nieuwe functies en significante verbeteringen om je ontwikkelingsworkflow te verbeteren.", "whatsNew": "Wat is er nieuw", diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json index 3fc13d2cf5c0..391aa7b3194a 100644 --- a/webview-ui/src/i18n/locales/pl/chat.json +++ b/webview-ui/src/i18n/locales/pl/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} wydany", "stealthModel": { - "feature": "Darmowy model stealth na ograniczony czas - Błyskawiczny model rozumowania, który doskonale radzi sobie z kodowaniem agentowym z oknem kontekstu 262k, dostępny przez Roo Code Cloud.", - "note": "(Uwaga: prompty i uzupełnienia są rejestrowane przez twórcę modelu i używane do jego ulepszania)", + "feature": "Model stealth Sonic to teraz Grok Code Fast! Ten wysokowydajny model rozumowania jest dostępny jako grok-code-fast-1 u dostawcy xAI (Grok).", + "note": "W podzięce za wszystkie pomocne opinie o Sonic, xAI rozszerza bezpłatny dostęp do grok-code-fast-1 na kolejny tydzień za pośrednictwem dostawcy Roo Code Cloud.", "connectButton": "Połącz z Roo Code Cloud", - "selectModel": "Wybierz roo/sonic od dostawcy Roo Code Cloud w
Ustawieniach aby rozpocząć" + "selectModel": "Odwiedź Ustawienia, aby zaktualizować konfigurację dostawcy." }, "description": "Roo Code {{version}} wprowadza potężne nowe funkcje i znaczące ulepszenia, aby ulepszyć Twój przepływ pracy programistycznej.", "whatsNew": "Co nowego", diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json index 1473fd304ab4..12fa6932ae2b 100644 --- a/webview-ui/src/i18n/locales/pt-BR/chat.json +++ b/webview-ui/src/i18n/locales/pt-BR/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} Lançado", "stealthModel": { - "feature": "Modelo stealth GRATUITO por tempo limitado - Um modelo de raciocínio ultrarrápido que se destaca em codificação agêntica com uma janela de contexto de 262k, disponível através do Roo Code Cloud.", - "note": "(Nota: prompts e completações são registrados pelo criador do modelo e usados para melhorá-lo)", + "feature": "O modelo stealth Sonic agora é Grok Code Fast! Este modelo de raciocínio de alta performance está disponível como grok-code-fast-1 no provedor xAI (Grok).", + "note": "Como agradecimento por todo o feedback útil sobre o Sonic, a xAI está estendendo o acesso gratuito ao grok-code-fast-1 por mais uma semana através do provedor Roo Code Cloud.", "connectButton": "Conectar ao Roo Code Cloud", - "selectModel": "Selecione roo/sonic do provedor Roo Code Cloud em
Configurações para começar" + "selectModel": "Visite as Configurações para atualizar sua configuração de provedor." }, "description": "Roo Code {{version}} traz novos recursos poderosos e melhorias significativas para aprimorar seu fluxo de trabalho de desenvolvimento.", "whatsNew": "O que há de novo", diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json index 23c58f0099bd..0288c2bc9475 100644 --- a/webview-ui/src/i18n/locales/ru/chat.json +++ b/webview-ui/src/i18n/locales/ru/chat.json @@ -251,10 +251,10 @@ "announcement": { "title": "🎉 Выпущен Roo Code {{version}}", "stealthModel": { - "feature": "Бесплатная скрытая модель на ограниченное время - Сверхбыстрая модель рассуждений, которая превосходно справляется с агентным программированием с окном контекста 262k, доступна через Roo Code Cloud.", - "note": "(Примечание: промпты и дополнения записываются создателем модели и используются для её улучшения)", + "feature": "Скрытая модель Sonic теперь называется Grok Code Fast! Эта высокопроизводительная модель рассуждения доступна как grok-code-fast-1 у провайдера xAI (Grok).", + "note": "В благодарность за все полезные отзывы о Sonic, xAI продлевает бесплатный доступ к grok-code-fast-1 ещё на одну неделю через провайдера Roo Code Cloud.", "connectButton": "Подключиться к Roo Code Cloud", - "selectModel": "Выберите roo/sonic от провайдера Roo Code Cloud в
Настройках для начала" + "selectModel": "Перейдите в Настройки для обновления конфигурации провайдера." }, "description": "Roo Code {{version}} приносит мощные новые функции и значительные улучшения для совершенствования вашего рабочего процесса разработки.", "whatsNew": "Что нового", diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json index e2f4dd04c0f9..c8dea0d545a7 100644 --- a/webview-ui/src/i18n/locales/tr/chat.json +++ b/webview-ui/src/i18n/locales/tr/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} Yayınlandı", "stealthModel": { - "feature": "Sınırlı süre ÜCRETSİZ gizli model - 262k bağlam penceresi ile ajantik kodlamada mükemmel olan çok hızlı akıl yürütme modeli, Roo Code Cloud üzerinden kullanılabilir.", - "note": "(Not: istemler ve tamamlamalar model yaratıcısı tarafından kaydedilir ve modeli geliştirmek için kullanılır)", + "feature": "Sonic gizli model artık Grok Code Fast! Bu yüksek performanslı akıl yürütme modeli xAI (Grok) sağlayıcısı altında grok-code-fast-1 olarak mevcut.", + "note": "Sonic hakkındaki tüm yararlı geri bildirimler için teşekkür olarak, xAI grok-code-fast-1'e ücretsiz erişimi Roo Code Cloud sağlayıcısı üzerinden bir hafta daha uzatıyor.", "connectButton": "Roo Code Cloud'a bağlan", - "selectModel": "
Ayarlar'da Roo Code Cloud sağlayıcısından roo/sonic'i seç ve başla" + "selectModel": "Sağlayıcı yapılandırmanızı güncellemek için Ayarlar'ı ziyaret edin." }, "description": "Roo Code {{version}}, geliştirme iş akışınızı geliştirmek için güçlü yeni özellikler ve önemli iyileştirmeler getiriyor.", "whatsNew": "Yenilikler", diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json index ad40e08038dd..c4d56a71af80 100644 --- a/webview-ui/src/i18n/locales/vi/chat.json +++ b/webview-ui/src/i18n/locales/vi/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} Đã phát hành", "stealthModel": { - "feature": "Mô hình stealth MIỄN PHÍ có thời hạn - Một mô hình lý luận cực nhanh xuất sắc trong lập trình agentic với cửa sổ ngữ cảnh 262k, có sẵn qua Roo Code Cloud.", - "note": "(Lưu ý: các prompt và completion được ghi lại bởi người tạo mô hình và được sử dụng để cải thiện mô hình)", + "feature": "Mô hình stealth Sonic giờ là Grok Code Fast! Mô hình lý luận hiệu năng cao này có sẵn dưới dạng grok-code-fast-1 trong nhà cung cấp xAI (Grok).", + "note": "Để cảm ơn tất cả các phản hồi hữu ích về Sonic, xAI đang mở rộng quyền truy cập miễn phí vào grok-code-fast-1 thêm một tuần nữa thông qua nhà cung cấp Roo Code Cloud.", "connectButton": "Kết nối với Roo Code Cloud", - "selectModel": "Chọn roo/sonic từ nhà cung cấp Roo Code Cloud trong
Cài đặt để bắt đầu" + "selectModel": "Truy cập Cài đặt để cập nhật cấu hình nhà cung cấp của bạn." }, "description": "Roo Code {{version}} mang đến các tính năng mạnh mẽ mới và cải tiến đáng kể để nâng cao quy trình phát triển của bạn.", "whatsNew": "Có gì mới", diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index 866056e0dab3..ac95f8920904 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -266,10 +266,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} 已发布", "stealthModel": { - "feature": "限时免费隐形模型 - 一个在代理编程方面表现出色的超快推理模型,拥有 262k 上下文窗口,通过 Roo Code Cloud 提供。", - "note": "(注意:提示词和补全内容会被模型创建者记录并用于改进模型)", + "feature": "Sonic 隐形模型现在是 Grok Code Fast!这个高性能推理模型可在 xAI (Grok) 提供商下作为 grok-code-fast-1 使用。", + "note": "作为对所有关于 Sonic 有用反馈的感谢,xAI 将通过 Roo Code Cloud 提供商延长对 grok-code-fast-1 的免费访问权限再一周。", "connectButton": "连接到 Roo Code Cloud", - "selectModel": "在
设置中从 Roo Code Cloud 提供商选择 roo/sonic 开始使用" + "selectModel": "访问设置更新你的提供商配置。" }, "description": "Roo Code {{version}} 带来强大的新功能和重大改进,提升您的开发工作流程。", "whatsNew": "新特性", diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json index f97f7796baac..8df11705d4cb 100644 --- a/webview-ui/src/i18n/locales/zh-TW/chat.json +++ b/webview-ui/src/i18n/locales/zh-TW/chat.json @@ -275,10 +275,10 @@ "announcement": { "title": "🎉 Roo Code {{version}} 已發布", "stealthModel": { - "feature": "限時免費隱形模型 - 一個在代理程式編程方面表現出色的超快推理模型,擁有 262k 上下文視窗,透過 Roo Code Cloud 提供。", - "note": "(注意:提示和完成會被模型創建者記錄並用於改進模型)", + "feature": "Sonic 隱形模型現在是 Grok Code Fast!這個高效能推理模型現已作為 grok-code-fast-1xAI (Grok) 提供商下提供。", + "note": "作為對 Sonic 所有寶貴回饋的感謝,xAI 將透過 Roo Code Cloud 提供商延長 grok-code-fast-1 的免費存取一週。", "connectButton": "連接到 Roo Code Cloud", - "selectModel": "在
設定中從 Roo Code Cloud 提供商選擇 roo/sonic 開始使用" + "selectModel": "造訪設定更新你的提供商設定。" }, "description": "Roo Code {{version}} 帶來強大的新功能和重大改進,提升您的開發工作流程。", "whatsNew": "新功能", From 5ff263562002d4f8eaaa4ee16736a20f568132e5 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 25 Aug 2025 16:30:45 -0400 Subject: [PATCH 4/5] Make grok code fast the default --- packages/types/src/providers/xai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/providers/xai.ts b/packages/types/src/providers/xai.ts index 99b0ff63b197..3189e593da30 100644 --- a/packages/types/src/providers/xai.ts +++ b/packages/types/src/providers/xai.ts @@ -3,7 +3,7 @@ import type { ModelInfo } from "../model.js" // https://docs.x.ai/docs/api-reference export type XAIModelId = keyof typeof xaiModels -export const xaiDefaultModelId: XAIModelId = "grok-4" +export const xaiDefaultModelId: XAIModelId = "grok-code-fast-1" export const xaiModels = { "grok-code-fast-1": { From f8b3d4a4326f072e266dd0db6ebfc54b7c1ec09e Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 26 Aug 2025 10:47:26 -0400 Subject: [PATCH 5/5] Update the single file read models --- packages/types/src/single-file-read-models.ts | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/packages/types/src/single-file-read-models.ts b/packages/types/src/single-file-read-models.ts index 4e6f4e1f5776..b83a781507cc 100644 --- a/packages/types/src/single-file-read-models.ts +++ b/packages/types/src/single-file-read-models.ts @@ -4,29 +4,11 @@ * instead of the more complex multi-file args format */ -// List of model IDs (or patterns) that should use single file reads only -export const SINGLE_FILE_READ_MODELS = new Set(["roo/sonic"]) - /** * Check if a model should use single file read format * @param modelId The model ID to check * @returns true if the model should use single file reads */ export function shouldUseSingleFileRead(modelId: string): boolean { - // Direct match - if (SINGLE_FILE_READ_MODELS.has(modelId)) { - return true - } - - // Pattern matching for model families - // Check if model ID starts with any configured pattern - // Using Array.from for compatibility with older TypeScript targets - const patterns = Array.from(SINGLE_FILE_READ_MODELS) - for (const pattern of patterns) { - if (pattern.endsWith("*") && modelId.startsWith(pattern.slice(0, -1))) { - return true - } - } - - return false + return modelId.includes("grok-code-fast-1") }