diff --git a/src/components/ThemeSwitcher.tsx b/src/components/ThemeSwitcher.tsx index e2e2073e..8dc67b09 100644 --- a/src/components/ThemeSwitcher.tsx +++ b/src/components/ThemeSwitcher.tsx @@ -46,7 +46,7 @@ function getStoredTheme(): Theme { return stored as Theme; } } catch { - // localStorage unavailable + // localStorage unavailable (e.g. private browsing, SSR) } return 'app'; } @@ -55,7 +55,7 @@ function storeTheme(theme: Theme): void { try { localStorage.setItem(STORAGE_KEY, theme); } catch { - // localStorage unavailable + // localStorage unavailable (e.g. private browsing, SSR) } } diff --git a/src/lib/llm/kilo.ts b/src/lib/llm/kilo.ts index 22156a6e..bbf27890 100644 --- a/src/lib/llm/kilo.ts +++ b/src/lib/llm/kilo.ts @@ -101,7 +101,7 @@ export class KiloGatewayProvider implements LLMProvider { yield { content, done: false }; } } catch { - // Skip invalid JSON + // Expected: SSE chunk not yet complete or invalid JSON } } } diff --git a/src/lib/llm/openrouter.ts b/src/lib/llm/openrouter.ts index e24864c2..2395a11b 100644 --- a/src/lib/llm/openrouter.ts +++ b/src/lib/llm/openrouter.ts @@ -101,7 +101,7 @@ export class OpenRouterProvider implements LLMProvider { yield { content, done: false }; } } catch { - // Skip invalid JSON + // Expected: SSE chunk not yet complete or invalid JSON } } } diff --git a/src/lib/perf/core.ts b/src/lib/perf/core.ts index 308541b7..5330b5f9 100644 --- a/src/lib/perf/core.ts +++ b/src/lib/perf/core.ts @@ -52,7 +52,7 @@ export const perf = { try { performance.mark(`${PERF_PREFIX}${name}`); } catch { - // silently ignore in unsupported environments + // Performance API unavailable (e.g. SSR, older browsers) } }, @@ -86,7 +86,7 @@ export const perf = { performance.clearMarks(); performance.clearMeasures(); } catch { - // ignore + // Performance API unavailable } },