From 685ee219d864072392daf3ef96234133a45e9167 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sat, 27 Jun 2026 00:11:19 -0400 Subject: [PATCH] fix: remove unused disabled prop, throttle SW update checks, precache icon --- frontend/plugins/sw-precache-manifest.ts | 7 ++++++- frontend/src/components/agent/AgentQuickSelect.tsx | 5 +---- .../src/components/message/PromptInput.stt.test.tsx | 1 - frontend/src/components/message/PromptInput.tsx | 13 +++---------- frontend/src/hooks/useOpenCode.ts | 1 - frontend/src/lib/serviceWorker.ts | 4 ++++ 6 files changed, 14 insertions(+), 17 deletions(-) diff --git a/frontend/plugins/sw-precache-manifest.ts b/frontend/plugins/sw-precache-manifest.ts index 31cac5ff..c41d7f26 100644 --- a/frontend/plugins/sw-precache-manifest.ts +++ b/frontend/plugins/sw-precache-manifest.ts @@ -5,7 +5,12 @@ import type { Plugin } from "vite"; const SW_FILENAME = "sw.js"; const PRECACHE_DIR_PREFIXES = ["assets/"]; -const PRECACHE_ROOT_FILES = ["index.html", "manifest.json", "favicon.svg"]; +const PRECACHE_ROOT_FILES = [ + "index.html", + "manifest.json", + "favicon.svg", + "icons/icon-192x192.png", +]; async function collectFiles(dir: string, base = dir): Promise { const entries = await readdir(dir, { withFileTypes: true }); diff --git a/frontend/src/components/agent/AgentQuickSelect.tsx b/frontend/src/components/agent/AgentQuickSelect.tsx index 2943fe67..26fcc2b3 100644 --- a/frontend/src/components/agent/AgentQuickSelect.tsx +++ b/frontend/src/components/agent/AgentQuickSelect.tsx @@ -17,7 +17,6 @@ interface AgentQuickSelectProps { currentAgent: string onAgentChange: (agent: string) => void isBashMode?: boolean - disabled?: boolean } interface AgentInfo { @@ -55,7 +54,6 @@ export function AgentQuickSelect({ currentAgent, onAgentChange, isBashMode = false, - disabled = false, }: AgentQuickSelectProps) { const { data: agents = [] } = useAgents(opcodeUrl, directory) @@ -79,7 +77,6 @@ export function AgentQuickSelect({ const buttonContent = (