From 2494eaaa32e50018f480fad44e408cdecc2e0828 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 15 Jan 2026 19:32:34 +0800 Subject: [PATCH] feat(opencode): hide proxy UI for OpenCode OpenCode uses additive provider management (multiple providers coexist), so proxy/failover features are not applicable. This commit: - Conditionally renders ProxyToggle only for non-OpenCode apps - Fixes toast message label to properly handle opencode app type --- src/App.tsx | 4 +++- src/hooks/useProxyStatus.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 32673da69..404e93d49 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -740,7 +740,9 @@ function App() { )} {currentView === "providers" && ( <> - + {activeApp !== "opencode" && ( + + )} diff --git a/src/hooks/useProxyStatus.ts b/src/hooks/useProxyStatus.ts index fb69f1915..d2faa2a8f 100644 --- a/src/hooks/useProxyStatus.ts +++ b/src/hooks/useProxyStatus.ts @@ -101,7 +101,9 @@ export function useProxyStatus() { ? "Claude" : variables.appType === "codex" ? "Codex" - : "Gemini"; + : variables.appType === "gemini" + ? "Gemini" + : "OpenCode"; toast.success( variables.enabled